1
0

Update Jenkinsfile

This commit is contained in:
Andrea Cavalli 2020-10-03 14:15:58 +02:00
parent f06fbfada9
commit cecfca8d6d

10
Jenkinsfile vendored
View File

@ -3,9 +3,16 @@
pipeline {
environment {
JAVA_TOOL_OPTIONS = '-Duser.home=/var/maven'
MVN_SET = credentials('maven_settings')
}
agent { docker { image 'maven:3.6.3' } }
agent {
docker {
image 'maven:3.6.3'
args '-v $HOME:/var/maven'
reuseNode true
}
}
triggers {
pollSCM "* * * * *"
}
@ -23,6 +30,7 @@ pipeline {
stage("Compile C++") {
steps {
sh "./jenkins/scripts/compile.sh"
JAVA_TOOL_OPTIONS = '-Duser.home=/var/maven'
}
}