Skip to content

Commit 5d66e7a

Browse files
tqchentmoreau89
authored andcommitted
[CI] Set workspace to be per executor (#4336)
1 parent cf83d50 commit 5d66e7a

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

Jenkinsfile

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ docker_run = 'docker/bash.sh'
6464
// timeout in minutes
6565
max_time = 120
6666

67-
workspace = 'workspace/exec_${EXECUTOR_NUMBER}'
67+
workspace = "workspace/exec_${env.EXECUTOR_NUMBER}"
6868

6969
// initialize source codes
7070
def init_git() {
@@ -88,7 +88,7 @@ def init_git_win() {
8888
stage("Sanity Check") {
8989
timeout(time: max_time, unit: 'MINUTES') {
9090
node('CPU') {
91-
ws('${workspace}/tvm/sanity') {
91+
ws("${workspace}/tvm/sanity") {
9292
init_git()
9393
sh "${docker_run} ${ci_lint} ./tests/scripts/task_lint.sh"
9494
}
@@ -136,7 +136,7 @@ def unpack_lib(name, libs) {
136136
stage('Build') {
137137
parallel 'BUILD: GPU': {
138138
node('GPUBUILD') {
139-
ws('${workspace}/tvm/build-gpu') {
139+
ws("${workspace}/tvm/build-gpu") {
140140
init_git()
141141
sh """
142142
mkdir -p build
@@ -184,7 +184,7 @@ stage('Build') {
184184
},
185185
'BUILD: CPU': {
186186
node('CPU') {
187-
ws('${workspace}/tvm/build-cpu') {
187+
ws("${workspace}/tvm/build-cpu") {
188188
init_git()
189189
sh """
190190
mkdir -p build
@@ -216,7 +216,7 @@ stage('Build') {
216216
},
217217
'BUILD : i386': {
218218
node('CPU') {
219-
ws('${workspace}/tvm/build-i386') {
219+
ws("${workspace}/tvm/build-i386") {
220220
init_git()
221221
sh """
222222
mkdir -p build
@@ -241,7 +241,7 @@ stage('Build') {
241241
stage('Unit Test') {
242242
parallel 'python3: GPU': {
243243
node('TensorCore') {
244-
ws('${workspace}/tvm/ut-python-gpu') {
244+
ws("${workspace}/tvm/ut-python-gpu") {
245245
init_git()
246246
unpack_lib('gpu', tvm_multilib)
247247
timeout(time: max_time, unit: 'MINUTES') {
@@ -253,7 +253,7 @@ stage('Unit Test') {
253253
},
254254
'python3: i386': {
255255
node('CPU') {
256-
ws('${workspace}/tvm/ut-python-i386') {
256+
ws("${workspace}/tvm/ut-python-i386") {
257257
init_git()
258258
unpack_lib('i386', tvm_multilib)
259259
timeout(time: max_time, unit: 'MINUTES') {
@@ -266,7 +266,7 @@ stage('Unit Test') {
266266
},
267267
'java: GPU': {
268268
node('GPU') {
269-
ws('${workspace}/tvm/ut-java') {
269+
ws("${workspace}/tvm/ut-java") {
270270
init_git()
271271
unpack_lib('gpu', tvm_multilib)
272272
timeout(time: max_time, unit: 'MINUTES') {
@@ -280,7 +280,7 @@ stage('Unit Test') {
280280
stage('Integration Test') {
281281
parallel 'topi: GPU': {
282282
node('GPU') {
283-
ws('${workspace}/tvm/topi-python-gpu') {
283+
ws("${workspace}/tvm/topi-python-gpu") {
284284
init_git()
285285
unpack_lib('gpu', tvm_multilib)
286286
timeout(time: max_time, unit: 'MINUTES') {
@@ -291,7 +291,7 @@ stage('Integration Test') {
291291
},
292292
'frontend: GPU': {
293293
node('GPU') {
294-
ws('${workspace}/tvm/frontend-python-gpu') {
294+
ws("${workspace}/tvm/frontend-python-gpu") {
295295
init_git()
296296
unpack_lib('gpu', tvm_multilib)
297297
timeout(time: max_time, unit: 'MINUTES') {
@@ -302,7 +302,7 @@ stage('Integration Test') {
302302
},
303303
'legacy: GPU': {
304304
node('GPU') {
305-
ws('${workspace}/tvm/legacy-python-gpu') {
305+
ws("${workspace}/tvm/legacy-python-gpu") {
306306
init_git()
307307
unpack_lib('gpu', tvm_multilib)
308308
timeout(time: max_time, unit: 'MINUTES') {
@@ -313,7 +313,7 @@ stage('Integration Test') {
313313
},
314314
'docs: GPU': {
315315
node('GPU') {
316-
ws('${workspace}/tvm/docs-python-gpu') {
316+
ws("${workspace}/tvm/docs-python-gpu") {
317317
init_git()
318318
unpack_lib('gpu', tvm_multilib)
319319
timeout(time: max_time, unit: 'MINUTES') {
@@ -345,7 +345,7 @@ stage('Build packages') {
345345

346346
stage('Deploy') {
347347
node('doc') {
348-
ws('${workspace}/tvm/deploy-docs') {
348+
ws("${workspace}/tvm/deploy-docs") {
349349
if (env.BRANCH_NAME == "master") {
350350
unpack_lib('mydocs', 'docs.tgz')
351351
sh "tar xf docs.tgz -C /var/docs"

0 commit comments

Comments
 (0)