1
0

Update Jenkinsfile

This commit is contained in:
Andrea Cavalli 2020-10-04 18:35:11 +02:00
parent a4312ac4c5
commit e39c2779e1

14
Jenkinsfile vendored
View File

@ -26,7 +26,7 @@ pipeline {
dir 'jenkins/docker'
filename 'dockerfile'
additionalBuildArgs '--build-arg version=1.0.0 --build-arg UID=$(id -u) --build-arg GID=$(id -g) --build-arg UNAME=jenkins'
args "-v \"${env.WORKSPACE}/tdlight-java/src/main:/home/jenkins/output\" -v \"$HOME/.m2:/home/jenkins/.m2\" -v \"$HOME/.ccache:/home/jenkins/.ccache\" -v \"${env.WORKSPACE}:/home/jenkins/work\""
args "-v \"${env.WORKSPACE}/tdlight-java/src/main:/home/jenkins/output\" -v \"${env.WORKSPACE}/.m2:/home/jenkins/.m2\" -v \"${env.WORKSPACE}/.ccache:/home/jenkins/.ccache\" -v \"${env.WORKSPACE}:/home/jenkins/work\""
reuseNode false
}
}
@ -79,7 +79,17 @@ pipeline {
}
post {
always {
deleteDir()
dir("${workspace}/tdlight-java") {
deleteDir()
}
/* clean up tmp directory */
dir("${workspace}@tmp") {
deleteDir()
}
/* clean up script directory */
dir("${workspace}@script") {
deleteDir()
}
}
}
}