diff options
author | Chris Evich <cevich@redhat.com> | 2019-07-31 09:01:49 -0400 |
---|---|---|
committer | Chris Evich <cevich@redhat.com> | 2019-07-31 09:42:52 -0400 |
commit | cb2ea1a27bb1f9f49f20b0cfcf48206ff2a33b68 (patch) | |
tree | 43dadba51f680d2fb67369c4489a64961002b682 | |
parent | 680a3838748b297b7c3c462f98b58f82e39218e8 (diff) | |
download | podman-cb2ea1a27bb1f9f49f20b0cfcf48206ff2a33b68.tar.gz podman-cb2ea1a27bb1f9f49f20b0cfcf48206ff2a33b68.tar.bz2 podman-cb2ea1a27bb1f9f49f20b0cfcf48206ff2a33b68.zip |
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>
-rwxr-xr-x | contrib/cirrus/cache_release_archive.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/cirrus/cache_release_archive.sh b/contrib/cirrus/cache_release_archive.sh index 639bc9801..2365f7593 100755 --- a/contrib/cirrus/cache_release_archive.sh +++ b/contrib/cirrus/cache_release_archive.sh @@ -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 |