From 5897248cc1577736d00af047a180e9292dd0e156 Mon Sep 17 00:00:00 2001 From: Leonid Pliushch Date: Mon, 6 May 2019 15:33:50 +0300 Subject: [PATCH] CI: backlog-resetting tag should work for all tasks --- .cirrus.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.cirrus.yml b/.cirrus.yml index c753b102f..d5ce33e6f 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -71,7 +71,13 @@ publish_task: # Publish. upload_to_bintray_script: | - MODIFIED_PACKAGES=$(./scripts/build/ci/determine_git_changes.sh) + 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}"