File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 1
- fcd31eb2297bc18a96ee4bafefcb3e1e298dc330
1
+ aea3a48610b7476dccd70e84b3f84668e7fa7dca
Original file line number Diff line number Diff line change @@ -37,8 +37,10 @@ function _genattrs() {
37
37
# No upstream standard, so copy from https://github.com/jenkinsci/opentelemetry-plugin/blob/master/docs/job-traces.md
38
38
if [[ -n " ${PULL_NUMBER:= } " ]]
39
39
then
40
+ # Presubmit
40
41
url=" https://prow.istio.io/view/gs/istio-prow/pr-logs/pull/${REPO_OWNER} _${REPO_NAME} /${PULL_NUMBER} /${JOB_NAME} /${BUILD_ID} ,"
41
42
else
43
+ # Postsubmit or periodic
42
44
url=" https://prow.istio.io/view/gs/istio-prow/pr-logs/${JOB_NAME} /${BUILD_ID} ,"
43
45
fi
44
46
# Use printf instead of echo to avoid spaces between args
@@ -47,9 +49,9 @@ function _genattrs() {
47
49
" ci.pipeline.run.url=${url} " \
48
50
" ci.pipeline.run.number=${BUILD_ID} ," \
49
51
" ci.pipeline.run.id=${PROW_JOB_ID} ," \
50
- " ci.pipeline.run.repo=${REPO_OWNER} /${REPO_NAME} ," \
51
- " ci.pipeline.run.base=${PULL_BASE_REF} ," \
52
- " ci.pipeline.run.pull_number=${PULL_NUMBER} ," \
52
+ " ci.pipeline.run.repo=${REPO_OWNER:- unknown } /${REPO_NAME:- unknown } ," \
53
+ " ci.pipeline.run.base=${PULL_BASE_REF:- none } ," \
54
+ " ci.pipeline.run.pull_number=${PULL_NUMBER:- none } ," \
53
55
" ci.pipeline.run.pull_sha=${PULL_PULL_SHA:- ${PULL_BASE_SHA:- none} } "
54
56
}
55
57
You can’t perform that action at this time.
0 commit comments