mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-22 15:55:49 +00:00
added jenkinsfile
added fix
This commit is contained in:
parent
923e2b7aa3
commit
6044671bdd
1 changed files with 27 additions and 0 deletions
27
Jenkinsfile
vendored
Normal file
27
Jenkinsfile
vendored
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
pipeline {
|
||||||
|
agent any
|
||||||
|
triggers { pollSCM('* * * * *')}
|
||||||
|
stages {
|
||||||
|
stage('VCS'){
|
||||||
|
steps {
|
||||||
|
git url: 'https://github.com/dumyrepositories/spring-petclinic-multibranch.git',
|
||||||
|
branch: 'main'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
stage('Build'){
|
||||||
|
steps {
|
||||||
|
sh 'mvn package'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
stage('Post Build') {
|
||||||
|
steps {
|
||||||
|
archiveArtifacts artifacts: '**/target/*.jar',
|
||||||
|
onlyIfSuccessful: true
|
||||||
|
junit testResults: '**/surefire-reports/TEST-*.xml',
|
||||||
|
allowEmptyResults: false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in a new issue