diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-03-06 18:08:08 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-03-06 18:08:08 +0000 |
commit | 83731155d997ae24c7e0cd5ffa6f0dba41bec6dc (patch) | |
tree | 31f785012137fda4ac9a470f4f07c961b42d0299 /scripts | |
parent | 57a37ce99f297cddae12cb4d982b6d572f932bb4 (diff) | |
download | gitlab-ce-83731155d997ae24c7e0cd5ffa6f0dba41bec6dc.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/review_apps/automated_cleanup.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/review_apps/automated_cleanup.rb b/scripts/review_apps/automated_cleanup.rb index 323a1deedfc..93412b658f6 100755 --- a/scripts/review_apps/automated_cleanup.rb +++ b/scripts/review_apps/automated_cleanup.rb @@ -81,7 +81,7 @@ class AutomatedCleanup release = Quality::HelmClient::Release.new(environment.slug, 1, deployed_at.to_s, nil, nil, review_apps_namespace) releases_to_delete << release end - elsif deployed_at < stop_threshold + elsif environment.state != 'stopped' && deployed_at < stop_threshold stop_environment(environment, deployment) else print_release_state(subject: 'Review App', release_name: environment.slug, release_date: last_deploy, action: 'leaving') |