diff --git a/Jenkinsfile b/Jenkinsfile index dffdc95..657091f 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,5 +1,10 @@ pipeline { - agent any + agent { + node { + label 'master' + } + + } stages { stage('Checkout') { steps { @@ -7,11 +12,15 @@ pipeline { } } stage('Archive') { + agent { + node { + label 'master' + } + + } steps { - sh '''if [ -e python.tgz ]; then - rm -f python.tgz -fi -tar --exclude=".git" --exclude="Jenkinsfile" -zcvf python.tgz ./*''' + sh "tar --exclude=\".git\" --exclude=\"Jenkinsfile\" -zcvf python-${GIT_COMMIT.substring(0,6)}.tgz ./*" + archiveArtifacts '*.tgz' } } }