CI: backlog-resetting tag should work for all tasks

This commit is contained in:
Leonid Pliushch 2019-05-06 15:33:50 +03:00
parent 7c8fc5ed04
commit 5897248cc1
1 changed files with 7 additions and 1 deletions

View File

@ -71,7 +71,13 @@ publish_task:
# Publish.
upload_to_bintray_script: |
if grep -qiP '^%ci:reset-backlog$' <(echo "$CIRRUS_CHANGE_MESSAGE"); then
# If commit message contains line '%ci:reset-backlog', no builds
# should be done and CI should stop with "green" status.
MODIFIED_PACKAGES=""
else
MODIFIED_PACKAGES=$(./scripts/build/ci/determine_git_changes.sh)
fi
if [ -n "$MODIFIED_PACKAGES" ]; then
for arch in aarch64 arm i686 x86_64; do
curl -s -o "/tmp/debs-${arch}.tar.gz" "http://$CIRRUS_HTTP_CACHE_HOST/debs-${arch}"