Skip to content

Preserve artifacts dir from deleting

In some cases artifacts dir might be empty, so without mindepth option find deletes it, leading to error on gitlab backup, e.g.

rake aborted!
Errno::ENOENT: No such file or directory @ rb_check_realpath_internal - /var/opt/gitlab/gitlab-rails/shared/artifacts

Merge request reports

Loading