Skip to content

Commit

Permalink
Jenkinsfile update to container
Browse files Browse the repository at this point in the history
  • Loading branch information
enricovianello committed Dec 14, 2017
1 parent bca68b1 commit b465101
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,37 +10,40 @@ pipeline {
triggers { cron('@daily') }

stages {
stage('prepare'){
steps {
checkout scm
}
}

stage('build') {
steps {
sh 'mvn -B clean compile'
container('maven-runner') {
sh 'mvn -B clean compile'
}
}
}

stage('test') {
steps {
sh 'mvn -B clean test'
container('maven-runner') {
sh 'mvn -B clean test'
}
script {
currentBuild.result = 'SUCCESS'
}
}

post {
always {
junit '**/target/surefire-reports/TEST-*.xml'
container('maven-runner') {
junit '**/target/surefire-reports/TEST-*.xml'
}
}
}
}


stage('package') {
steps {
sh 'mvn -B -DskipTests=true clean package'
container('maven-runner') {
sh 'mvn -B -DskipTests=true clean package'
}
}
}
}
Expand All @@ -61,4 +64,4 @@ pipeline {
}
}

}
}

0 comments on commit b465101

Please sign in to comment.