mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-23 08:15:49 +00:00
added jenkinsfile
This commit is contained in:
parent
0a529015bc
commit
bf8e179e0c
1 changed files with 24 additions and 0 deletions
24
Jenkinsfile
vendored
Normal file
24
Jenkinsfile
vendored
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
pipeline {
|
||||||
|
agent { label 'JDK-17-MVN-3.6' }
|
||||||
|
triggers {
|
||||||
|
cron('* * * * *')
|
||||||
|
}
|
||||||
|
stages {
|
||||||
|
stage('vcs') {
|
||||||
|
steps {
|
||||||
|
git url: 'https://github.com/satya36-cpu/spring-petclinicnew.git',
|
||||||
|
branch: 'main'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
stage('build and package') {
|
||||||
|
steps {
|
||||||
|
sh 'clean package'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
stage('archive results') {
|
||||||
|
steps {
|
||||||
|
junit '**/surefire-reports/*.xml'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in a new issue