mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-28 10:25:49 +00:00
aad
This commit is contained in:
parent
ca055dbbe1
commit
c060525d9a
1 changed files with 24 additions and 0 deletions
24
spc.main
Normal file
24
spc.main
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
pipeline {
|
||||||
|
agent { label 'MAVEN_JDK8' }
|
||||||
|
triggers: { pollSCM ('* 21 * * 1-5') }
|
||||||
|
stages {
|
||||||
|
stage('vcs') {
|
||||||
|
steps {
|
||||||
|
git url: 'https://github.com/arjun9963/spring-petclinic.git',
|
||||||
|
branch: 'dev'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
stage('package') {
|
||||||
|
steps {
|
||||||
|
sh 'mvn package'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
stage('post build') {
|
||||||
|
steps {
|
||||||
|
archiveArtifacts artifacts: '**/target/spring-petclinic.war',
|
||||||
|
onlyIfSuccessful: true
|
||||||
|
junit testResults: '**/surefire-reports/TEST-*.xml'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in a new issue