diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2020-10-05 17:54:19 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-05 17:54:19 +0200 |
commit | 1b16fcfd14b9e761849e53ac2b83c964ad8ac5a9 (patch) | |
tree | 059da1b2154604884391c287f9c65f8ef81f96f9 /contrib/cirrus/lib.sh | |
parent | caace52d54c846c948c88a62f973f4d11808532e (diff) | |
parent | 0f04cf27c50a7905a12c3d6741410ba87b3cd7b0 (diff) | |
download | podman-1b16fcfd14b9e761849e53ac2b83c964ad8ac5a9.tar.gz podman-1b16fcfd14b9e761849e53ac2b83c964ad8ac5a9.tar.bz2 podman-1b16fcfd14b9e761849e53ac2b83c964ad8ac5a9.zip |
Merge pull request #7920 from cevich/fix_new_ci_smoke
Cirrus: Fix branch-validation failure
Diffstat (limited to 'contrib/cirrus/lib.sh')
-rw-r--r-- | contrib/cirrus/lib.sh | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/contrib/cirrus/lib.sh b/contrib/cirrus/lib.sh index b57aee1af..23987938b 100644 --- a/contrib/cirrus/lib.sh +++ b/contrib/cirrus/lib.sh @@ -76,11 +76,12 @@ CIRRUS_CI="${CIRRUS_CI:-false}" DEST_BRANCH="${DEST_BRANCH:-master}" CONTINUOUS_INTEGRATION="${CONTINUOUS_INTEGRATION:-false}" CIRRUS_REPO_NAME=${CIRRUS_REPO_NAME:-podman} -CIRRUS_BASE_SHA=${CIRRUS_BASE_SHA:-unknown$(date +%s)} # difficult to reliably discover +# N/B: CIRRUS_BASE_SHA is empty on branch and tag push. +CIRRUS_BASE_SHA=${CIRRUS_BASE_SHA:-${CIRRUS_LAST_GREEN_CHANGE:-YOU_FOUND_A_BUG}} CIRRUS_BUILD_ID=${CIRRUS_BUILD_ID:-$RANDOM$(date +%s)} # must be short and unique -# Needed for linting and code validation -EPOCH_TEST_COMMIT=${CIRRUS_BASE_SHA:-$CIRRUS_LAST_GREEN_CHANGE} +# The starting place for linting and code validation +EPOCH_TEST_COMMIT="$CIRRUS_BASE_SHA" # Regex of env. vars. to explicitly pass when executing tests # inside a container or as a rootless user |