Add container directive to Jenkinsfile
parent
13053c2487
commit
86e696a8c5
|
@ -10,16 +10,21 @@ pipeline {
|
||||||
|
|
||||||
triggers { cron('@daily') }
|
triggers { cron('@daily') }
|
||||||
|
|
||||||
parameters {
|
|
||||||
string(name: 'BRANCH', defaultValue: 'devel', description: '' )
|
|
||||||
}
|
|
||||||
|
|
||||||
stages {
|
stages {
|
||||||
|
|
||||||
stage('deploy'){
|
stage('deploy'){
|
||||||
steps {
|
steps {
|
||||||
sh "mvn -U -B clean deploy"
|
container('maven-runner'){
|
||||||
script { currentBuild.result = 'SUCCESS' }
|
sh "mvn -U -B clean deploy"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
stage('result'){
|
||||||
|
steps {
|
||||||
|
script {
|
||||||
|
currentBuild.result = 'SUCCESS'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue