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 { pipeline {
environment { environment {
JAVA_TOOL_OPTIONS = '-Duser.home=/var/maven'
MVN_SET = credentials('maven_settings') 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 { triggers {
pollSCM "* * * * *" pollSCM "* * * * *"
} }
@ -23,6 +30,7 @@ pipeline {
stage("Compile C++") { stage("Compile C++") {
steps { steps {
sh "./jenkins/scripts/compile.sh" sh "./jenkins/scripts/compile.sh"
JAVA_TOOL_OPTIONS = '-Duser.home=/var/maven'
} }
} }