mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-26 01:15:50 +00:00
Added changes in Jenkinsfile
This commit is contained in:
parent
38b9ae7782
commit
fefc1c53b0
2 changed files with 29 additions and 1 deletions
28
Jenkinsfile
vendored
28
Jenkinsfile
vendored
|
@ -0,0 +1,28 @@
|
|||
pipeline {
|
||||
agent { label 'JDK_17' }
|
||||
triggers { pollSCM ('* * * * *') }
|
||||
}
|
||||
stages {
|
||||
stage('vcs') {
|
||||
steps {
|
||||
git url: 'https://github.com/Aseerwadham/spring-petclinic.git',
|
||||
branch: 'main'
|
||||
}
|
||||
}
|
||||
stage('package') {
|
||||
tools {
|
||||
jdk 'JDK_17'
|
||||
}
|
||||
steps {
|
||||
sh "mvn package"
|
||||
}
|
||||
}
|
||||
stage('post build') {
|
||||
steps {
|
||||
archiveArtifacts artifacts: '**/target/spring-petclinic-3.0.0-SNAPSHOT.jar',
|
||||
onlyIfSuccessful: true
|
||||
junit testResults: '**/surefire-reports/TEST-*.xml'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
2
pom.xml
2
pom.xml
|
@ -382,5 +382,5 @@
|
|||
</build>
|
||||
</profile>
|
||||
</profiles>
|
||||
|
||||
|
||||
</project>
|
||||
|
|
Loading…
Reference in a new issue