Skip to content

Commit c64f591

Browse files
Merge pull request #23 from singleplatform-eng/HS-13804_django32
Refactor Jenkinsfile
2 parents 618c9b0 + 7408f93 commit c64f591

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

Jenkinsfile

Lines changed: 15 additions & 1 deletion
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 {
@@ -14,6 +19,15 @@ pipeline {
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)