mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-18 13:35: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'
|
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'])
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue