Automator: update common-files@master in istio/istio.io@master (#13656)

This commit is contained in:
Istio Automation 2023-07-28 07:55:49 -07:00 committed by GitHub
parent 67ed160d17
commit b84d3b5d70
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 4 deletions

View File

@ -1 +1 @@
fcd31eb2297bc18a96ee4bafefcb3e1e298dc330
aea3a48610b7476dccd70e84b3f84668e7fa7dca

View File

@ -37,8 +37,10 @@ function _genattrs() {
# No upstream standard, so copy from https://github.com/jenkinsci/opentelemetry-plugin/blob/master/docs/job-traces.md
if [[ -n "${PULL_NUMBER:=}" ]]
then
# Presubmit
url="https://prow.istio.io/view/gs/istio-prow/pr-logs/pull/${REPO_OWNER}_${REPO_NAME}/${PULL_NUMBER}/${JOB_NAME}/${BUILD_ID},"
else
# Postsubmit or periodic
url="https://prow.istio.io/view/gs/istio-prow/pr-logs/${JOB_NAME}/${BUILD_ID},"
fi
# Use printf instead of echo to avoid spaces between args
@ -47,9 +49,9 @@ function _genattrs() {
"ci.pipeline.run.url=${url}"\
"ci.pipeline.run.number=${BUILD_ID},"\
"ci.pipeline.run.id=${PROW_JOB_ID},"\
"ci.pipeline.run.repo=${REPO_OWNER}/${REPO_NAME},"\
"ci.pipeline.run.base=${PULL_BASE_REF},"\
"ci.pipeline.run.pull_number=${PULL_NUMBER},"\
"ci.pipeline.run.repo=${REPO_OWNER:-unknown}/${REPO_NAME:-unknown},"\
"ci.pipeline.run.base=${PULL_BASE_REF:-none},"\
"ci.pipeline.run.pull_number=${PULL_NUMBER:-none},"\
"ci.pipeline.run.pull_sha=${PULL_PULL_SHA:-${PULL_BASE_SHA:-none}}"
}