CI: modify behaviour of tag "%ci:reset-backlog"
Now it will build current commit and skip anything else.
This commit is contained in:
parent
18f66dfeb1
commit
f086ecdfda
14
.cirrus.yml
14
.cirrus.yml
@ -30,12 +30,11 @@ build_task:
|
|||||||
# Determine changes in repository and build modified packages.
|
# Determine changes in repository and build modified packages.
|
||||||
build_script: |
|
build_script: |
|
||||||
if grep -qiP '^\s*%ci:reset-backlog\s*$' <(git log --format="%B" -n 1 "$CIRRUS_CHANGE_IN_REPO"); then
|
if grep -qiP '^\s*%ci:reset-backlog\s*$' <(git log --format="%B" -n 1 "$CIRRUS_CHANGE_IN_REPO"); then
|
||||||
# If commit message contains line '%ci:reset-backlog', no builds
|
# If commit message contains line '%ci:reset-backlog', builds will be done
|
||||||
# should be done and CI should stop with "green" status.
|
# only for current commit.
|
||||||
MODIFIED_PACKAGES=""
|
unset CIRRUS_LAST_GREEN_CHANGE
|
||||||
else
|
|
||||||
MODIFIED_PACKAGES=$(./scripts/build/ci/determine_git_changes.sh)
|
|
||||||
fi
|
fi
|
||||||
|
MODIFIED_PACKAGES=$(./scripts/build/ci/determine_git_changes.sh)
|
||||||
for package in $MODIFIED_PACKAGES; do
|
for package in $MODIFIED_PACKAGES; do
|
||||||
if [ -n "$CIRRUS_PR" ]; then
|
if [ -n "$CIRRUS_PR" ]; then
|
||||||
# Perform full builds for PR.
|
# Perform full builds for PR.
|
||||||
@ -72,10 +71,9 @@ publish_task:
|
|||||||
# Publish.
|
# Publish.
|
||||||
upload_to_bintray_script: |
|
upload_to_bintray_script: |
|
||||||
if grep -qiP '^\s*%ci:reset-backlog\s*$' <(git log --format="%B" -n 1 "$CIRRUS_CHANGE_IN_REPO"); then
|
if grep -qiP '^\s*%ci:reset-backlog\s*$' <(git log --format="%B" -n 1 "$CIRRUS_CHANGE_IN_REPO"); then
|
||||||
MODIFIED_PACKAGES=""
|
unset CIRRUS_LAST_GREEN_CHANGE
|
||||||
else
|
|
||||||
MODIFIED_PACKAGES=$(./scripts/build/ci/determine_git_changes.sh)
|
|
||||||
fi
|
fi
|
||||||
|
MODIFIED_PACKAGES=$(./scripts/build/ci/determine_git_changes.sh)
|
||||||
if [ -n "$MODIFIED_PACKAGES" ]; then
|
if [ -n "$MODIFIED_PACKAGES" ]; then
|
||||||
for arch in aarch64 arm i686 x86_64; do
|
for arch in aarch64 arm i686 x86_64; do
|
||||||
curl -s -o "/tmp/debs-${arch}.tar.gz" "http://$CIRRUS_HTTP_CACHE_HOST/debs-${arch}-${CIRRUS_CHANGE_IN_REPO}"
|
curl -s -o "/tmp/debs-${arch}.tar.gz" "http://$CIRRUS_HTTP_CACHE_HOST/debs-${arch}-${CIRRUS_CHANGE_IN_REPO}"
|
||||||
|
Loading…
Reference in New Issue
Block a user