diff --git a/joespipeline b/joespipeline index c659ba26a..5ef199d6c 100644 --- a/joespipeline +++ b/joespipeline @@ -2,7 +2,7 @@ echo 'Hello from Pipeline Demo' stage 'Compile' node { git url: 'https://github.com/nachofree/spring-petclinic.git' - sh "/usr/bin/mvn -B compile" + sh "/usr/bin/mvn -B compile war:war" } stage 'Test' node{ @@ -12,3 +12,4 @@ echo 'Hello from Pipeline Demo' step([$class: 'ArtifactArchiver', artifacts: '**/target/*.war', fingerprint: true]) step([$class: 'JUnitResultArchiver', testResults: '**/target/surefire-reports/TEST-*.xml']) } +