updated pipeline commands

This commit is contained in:
joe 2017-08-17 13:35:27 -06:00
parent 89a8b0c3df
commit 5dac10f444

View file

@ -2,7 +2,7 @@ echo 'Hello from Pipeline Demo'
stage 'Compile' stage 'Compile'
node { node {
git url: 'https://github.com/nachofree/spring-petclinic.git' 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' stage 'Test'
node{ node{
@ -12,3 +12,4 @@ echo 'Hello from Pipeline Demo'
step([$class: 'ArtifactArchiver', artifacts: '**/target/*.war', fingerprint: true]) step([$class: 'ArtifactArchiver', artifacts: '**/target/*.war', fingerprint: true])
step([$class: 'JUnitResultArchiver', testResults: '**/target/surefire-reports/TEST-*.xml']) step([$class: 'JUnitResultArchiver', testResults: '**/target/surefire-reports/TEST-*.xml'])
} }