mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-18 13:35:50 +00:00
added my pipeline script
This commit is contained in:
parent
40a0a87e93
commit
1ddebc7fdc
1 changed files with 14 additions and 0 deletions
14
joespipeline
Normal file
14
joespipeline
Normal file
|
@ -0,0 +1,14 @@
|
|||
echo 'Hello from Pipeline Demo'
|
||||
stage 'Compile'
|
||||
node {
|
||||
git url: 'https://github.com/mitesh51/spring-petclinic.git'
|
||||
sh "/usr/bin/mvn -B compile"
|
||||
}
|
||||
stage 'Test'
|
||||
node('TestServer') {
|
||||
git url: 'https://github.com/mitesh51/spring-petclinic.git'
|
||||
sh "/usr/bin/mvn -B verify"
|
||||
|
||||
step([$class: 'ArtifactArchiver', artifacts: '**/target/*.war', fingerprint: true])
|
||||
step([$class: 'JUnitResultArchiver', testResults: '**/target/surefire-reports/TEST-*.xml'])
|
||||
}
|
Loading…
Reference in a new issue