Update Jenkinsfile
This commit is contained in:
parent
a4312ac4c5
commit
e39c2779e1
14
Jenkinsfile
vendored
14
Jenkinsfile
vendored
@ -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()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user