Commit 4034f172 authored by Rémy Coutable's avatar Rémy Coutable

Merge branch '36933-failed-scheduled-review-clean-up-job-with-403-on-gitlab-api' into 'master'

Fix reassigned variable name

Closes #36933

See merge request gitlab-org/gitlab!20527
parents 2663eff4 6dbdfc1f
......@@ -75,8 +75,8 @@ class AutomatedCleanup
deployed_at = Time.parse(last_deploy)
if deployed_at < delete_threshold
environment = delete_environment(environment, deployment)
if environment
deleted_environment = delete_environment(environment, deployment)
if deleted_environment
release = Quality::HelmClient::Release.new(environment.slug, 1, deployed_at.to_s, nil, nil, review_apps_namespace)
releases_to_delete << release
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment