Browse Source

CI: prevent running of scheduled cleanup task if multiple Gitlab CI/CD schedules are set

emacs-27
Leonid Plyushch 6 years ago
parent
commit
72c4a2be51
  1. 5
      .gitlab-ci.yml

5
.gitlab-ci.yml

@ -81,7 +81,10 @@ repository-cleanup:
only:
- schedules
script:
- ./scripts/package_uploader.sh --cleanup $(cd ./packages; echo *)
- |
if [ -n "$SCHEDULED_REPOSITORY_CLEANUP" ]; then
./scripts/package_uploader.sh --cleanup $(cd ./packages; echo *)
fi
retry:
max: 2
when:

Loading…
Cancel
Save