diff options
Diffstat (limited to 'jenkins-helpers.sh')
-rw-r--r-- | jenkins-helpers.sh | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/jenkins-helpers.sh b/jenkins-helpers.sh index 2c11c12b..251da529 100644 --- a/jenkins-helpers.sh +++ b/jenkins-helpers.sh @@ -952,9 +952,18 @@ get_baseline_git () { ( set -euf -o pipefail + + local base_artifacts + + if test_array rr && [[ -v rr[base_artifacts] ]]; then + base_artifacts=${rr[base_artifacts]} + else + base_artifacts="base-artifacts" + fi + assert_with_msg "ERROR: No $1 in baseline git" \ - [ -f "${rr[base_artifacts]}/git/$1" ] - cat "${rr[base_artifacts]}/git/$1" + [ -f "$base_artifacts/git/$1" ] + cat "$base_artifacts/git/$1" ) } |