Skip to content

Commit

Permalink
Issue #224 - [Jenkinsfile] Try withMaven wrapper
Browse files Browse the repository at this point in the history
Signed-off-by: Mickael Istria <mistria@redhat.com>
  • Loading branch information
mickaelistria committed Sep 9, 2019
1 parent a12c5e4 commit 66ab04c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@ pipeline {
stages {
stage('Build') {
steps {
wrap([$class: 'Xvnc', useXauthority: true]) {
sh 'mvn -Dmaven.repo.local=$WORKSPACE/.m2 clean verify -Dmaven.test.error.ignore=true -Dmaven.test.failure.ignore=true -PpackAndSign'
withMaven(maven:'apache-maven-latest', mavenLocalRepo: '$WORKSPACE/.m2') {
wrap([$class: 'Xvnc', useXauthority: true]) {
sh 'mvn clean verify -Dmaven.test.error.ignore=true -Dmaven.test.failure.ignore=true -PpackAndSign'
}
}
}
post {
Expand Down

0 comments on commit 66ab04c

Please sign in to comment.