Add container directive to Jenkinsfile

pull/1611/head
Marco Caberletti 2017-12-06 10:58:35 +01:00
parent 13053c2487
commit 86e696a8c5
1 changed files with 11 additions and 6 deletions

17
Jenkinsfile vendored
View File

@ -10,16 +10,21 @@ pipeline {
triggers { cron('@daily') }
parameters {
string(name: 'BRANCH', defaultValue: 'devel', description: '' )
}
stages {
stage('deploy'){
steps {
sh "mvn -U -B clean deploy"
script { currentBuild.result = 'SUCCESS' }
container('maven-runner'){
sh "mvn -U -B clean deploy"
}
}
}
stage('result'){
steps {
script {
currentBuild.result = 'SUCCESS'
}
}
}
}