Cirrus: Fix re-run of release task into no-op.

This task depends upon other tasks caching their binaries.  If for
whatever reason the `release` task is re-run and/or is out-of-order
with it's dependents, the state of cache will be undefined. Previously
this would result in an error, and failing of the release task.
This commit alters this behavior to issue a warning instead.

Signed-off-by: Chris Evich <cevich@redhat.com>
This commit is contained in:
Chris Evich
2019-07-31 09:01:49 -04:00
parent 680a383874
commit cb2ea1a27b

View File

@ -93,7 +93,7 @@ elif [[ "$(basename $0)" == "uncache_release_archives.sh" ]]
then
req_env_var CIRRUS_BUILD_ID CI_NODE_TOTAL GCPJSON GCPNAME GCPROJECT
[[ "${CI_NODE_INDEX}" -eq "$[CI_NODE_TOTAL-1]" ]] || \
die 8 "The release task must be executed last to guarantee archive cache is complete"
die 0 "WARNING: This task depends on cache data from other tasks, otherwise it is a no-op."
if [[ -n "$CIRRUS_PR" ]]
then