Skip to content

Resolve "`gitlab-rake gitlab:cleanup:orphan_job_artifact_files DRY_RUN=false` is not removing artifacts"

What does this MR do?

Fixes bug that prevents users from cleaning up orphaned artifacts

The trailing newline was actually causing the FileUtils.rm_rf() call to look like it was working, but was in fact not deleting at all.

Screenshots

Does this MR meet the acceptance criteria?

Conformity

Performance and Testing

Closes #32534 (closed)

Edited by Thong Kuah

Merge request reports