Skip to content

Commit

Permalink
[chore](ci) adjust cloud_p0 regression-conf-custom.groovy (apache#44264)
Browse files Browse the repository at this point in the history
  • Loading branch information
hello-stephen authored Nov 19, 2024
1 parent 4b32de3 commit 7480478
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions regression-test/pipeline/cloud_p0/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ if [[ -z "${teamcity_build_checkoutDir}" ]]; then echo "ERROR: env teamcity_buil
if [[ -z "${pr_num_from_trigger}" ]]; then echo "ERROR: env pr_num_from_trigger not set" && exit 1; fi
if [[ -z "${commit_id_from_trigger}" ]]; then echo "ERROR: env commit_id_from_trigger not set" && exit 1; fi
if [[ -z "${s3SourceAk}" || -z "${s3SourceSk}" ]]; then echo "ERROR: env s3SourceAk or s3SourceSk not set" && exit 1; fi
if [[ -z "${hwYunAk}" || -z "${hwYunSk}" ]]; then echo "WARNING: env hwYunAk or hwYunSk not set"; fi
if [[ -z "${txYunAk}" || -z "${txYunSk}" ]]; then echo "WARNING: env txYunAk or txYunSk not set"; fi

# shellcheck source=/dev/null
source "$(bash "${teamcity_build_checkoutDir}"/regression-test/pipeline/common/get-or-set-tmp-env.sh 'get')"
Expand All @@ -55,6 +57,10 @@ run() {
echo # add a new line to prevent two config items from being combined, which will cause the error "No signature of method"
echo "ak='${s3SourceAk}'"
echo "sk='${s3SourceSk}'"
echo "hwYunAk='${hwYunAk:-}'"
echo "hwYunSk='${hwYunSk:-}'"
echo "txYunAk='${txYunAk:-}'"
echo "txYunSk='${txYunSk:-}'"
} >>"${teamcity_build_checkoutDir}"/regression-test/pipeline/cloud_p0/conf/regression-conf-custom.groovy
cp -f "${teamcity_build_checkoutDir}"/regression-test/pipeline/cloud_p0/conf/regression-conf-custom.groovy \
"${teamcity_build_checkoutDir}"/regression-test/conf/
Expand Down

0 comments on commit 7480478

Please sign in to comment.