Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit aba4b11

Browse files
author
Takashi Matsuo
committed
pass down Kokoro dynamic variables
1 parent 0b2cdb0 commit aba4b11

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.kokoro/trampoline_v2.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,14 @@ required_envvars=(
148148
)
149149

150150
pass_down_envvars=(
151-
# Default empty list.
151+
# KOKORO dynamic variables.
152+
"KOKORO_BUILD_NUMBER"
153+
"KOKORO_BUILD_ID"
154+
"KOKORO_JOB_NAME"
155+
"KOKORO_GIT_COMMIT"
156+
"KOKORO_GITHUB_COMMIT"
157+
"KOKORO_GITHUB_PULL_REQUEST_NUMBER"
158+
"KOKORO_GITHUB_PULL_REQUEST_COMMIT"
152159
)
153160

154161
if [[ -f "${PROJECT_ROOT}/.trampolinerc" ]]; then

0 commit comments

Comments
 (0)