1
0

Update Jenkinsfile

This commit is contained in:
Andrea Cavalli 2020-10-03 15:20:35 +02:00
parent 0766bc196c
commit 14c6c819f9

18
Jenkinsfile vendored
View File

@ -6,9 +6,7 @@ pipeline {
MVN_SET = credentials('maven_settings')
JAVA_TOOL_OPTIONS = '-Duser.home=/var/maven'
}
agent {
any
}
agent any
triggers {
pollSCM "* * * * *"
}
@ -35,6 +33,13 @@ pipeline {
}
stage("Release") {
agent {
docker {
image 'maven:3.6.3'
args '-v $HOME:/var/maven'
reuseNode true
}
}
when {
expression { params.RELEASE }
}
@ -44,6 +49,13 @@ pipeline {
}
}
stage('Deliver') {
agent {
docker {
image 'maven:3.6.3'
args '-v $HOME:/var/maven'
reuseNode true
}
}
steps {
sh './jenkins/scripts/deliver.sh'
}