This commit is contained in:
ammer 2023-03-06 23:05:50 -08:00
parent ca055dbbe1
commit c060525d9a

24
spc.main Normal file
View 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'
}
}
}
}