mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-22 07:45:49 +00:00
added the pipeline
This commit is contained in:
parent
8b8304fa25
commit
f6e9e65865
1 changed files with 46 additions and 0 deletions
46
jenkins
Normal file
46
jenkins
Normal file
|
@ -0,0 +1,46 @@
|
|||
pipeline {
|
||||
|
||||
agent { label 'MAVEN' }
|
||||
|
||||
options {
|
||||
|
||||
timeout(time: 30, unit: 'MINUTES')
|
||||
|
||||
}
|
||||
|
||||
triggers {
|
||||
|
||||
pollSCM('* * * * *')
|
||||
|
||||
}
|
||||
|
||||
stages {
|
||||
|
||||
stage('git') {
|
||||
|
||||
steps {
|
||||
|
||||
git url: 'https://github.com/dummyrepos/spring-petclinic-nov23.git',
|
||||
|
||||
branch: 'dev'
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
stage('build') {
|
||||
|
||||
steps {
|
||||
|
||||
sh 'mvn clean package'
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
Loading…
Reference in a new issue