mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-18 05:25:50 +00:00
updated pipeline commands
This commit is contained in:
parent
89a8b0c3df
commit
5dac10f444
1 changed files with 2 additions and 1 deletions
|
@ -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'])
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue