Skip to content

Commit 681aa83

Browse files
Update Jenkinsfile
1 parent 70ba1b5 commit 681aa83

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

Jenkinsfile

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
1+
library 'sp-jenkins'
2+
13
pipeline {
24
agent any
5+
environment {
6+
BUILD_WORKDIR = "/tmp/${env.BUILD_TAG}/"
7+
}
38
stages {
49
stage('build') {
510
when {
@@ -8,12 +13,21 @@ pipeline {
813
branch 'production'
914
branch 'release_candidate'
1015
changeRequest title: ".*JENKINSFILE_TESTING.*", comparator: 'REGEXP'
11-
buildingTag()
16+
tag 'release-*'
1217
}
1318
}
1419
steps {
1520
publishWheels codeBuildEnv: '[ { RUN_TESTS, false },{ pip_version, pip3.8 } ]'
1621
}
17-
}
1822
}
23+
}
24+
post {
25+
cleanup {
26+
echo "Deleting working directory ${env.BUILD_WORKDIR}"
27+
sh 'rm -rf $BUILD_WORKDIR'
28+
}
29+
always {
30+
buildNotification()
31+
}
32+
}
1933
}

0 commit comments

Comments
 (0)