Skip to content

Commit 11f01ce

Browse files
authored
Merge pull request #1162 from Kaggle/djherbis-patch-1
Hide sensitive output in jenkins
2 parents b03eace + e1e98f4 commit 11f01ce

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Jenkinsfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,10 +180,13 @@ pipeline {
180180
# Login to docker to get access to gcr.io/cloud-tpu-v2-images/libtpu
181181
182182
# To grant access to a SA, start a TPU VM with that SA once.
183+
# Disable echo to avoid printing sensitive tokens:
184+
set +x
183185
METADATA=http://metadata.google.internal/computeMetadata/v1
184186
SVC_ACCT=$METADATA/instance/service-accounts/default
185187
ACCESS_TOKEN=$(/usr/bin/curl -s -H 'Metadata-Flavor: Google' $SVC_ACCT/token | cut -d'"' -f 4)
186188
docker login --username oauth2accesstoken --password $ACCESS_TOKEN https://gcr.io
189+
set -x
187190
188191
./tpu/build | ts
189192
./push --tpu ${PRETEST_TAG}

0 commit comments

Comments
 (0)