File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ pipeline {
58
58
}
59
59
stage(' tensorflow TPU' ) {
60
60
options {
61
- timeout(time : 360 , unit : ' MINUTES' )
61
+ timeout(time : 240 , unit : ' MINUTES' )
62
62
}
63
63
steps {
64
64
sh ''' #!/bin/bash
@@ -177,6 +177,14 @@ pipeline {
177
177
sh ''' #!/bin/bash
178
178
set -exo pipefail
179
179
180
+ # Login to docker to get access to gcr.io/cloud-tpu-v2-images/libtpu
181
+ # SA: jenkins-test@kaggle-playground-170215.iam.gserviceaccount.com
182
+ # To grant access to a SA, start a TPU VM with that SA once.
183
+ METADATA=http://metadata.google.internal/computeMetadata/v1
184
+ SVC_ACCT=$METADATA/instance/service-accounts/default
185
+ ACCESS_TOKEN=$(/usr/bin/curl -s -H 'Metadata-Flavor: Google' $SVC_ACCT/token | cut -d'"' -f 4)
186
+ docker login --username oauth2accesstoken --password $ACCESS_TOKEN https://gcr.io
187
+
180
188
./tpu/build | ts
181
189
./push --tpu ${PRETEST_TAG}
182
190
'''
You can’t perform that action at this time.
0 commit comments