mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-21 23:35:50 +00:00
added pipeline
This commit is contained in:
parent
8b8304fa25
commit
e75fbb6469
1 changed files with 22 additions and 0 deletions
22
Jenkins
Normal file
22
Jenkins
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
pipeline{
|
||||||
|
agent{label "MAVEN"}
|
||||||
|
options{
|
||||||
|
timeout (time: 30,unit:'MINUTES')
|
||||||
|
}
|
||||||
|
tiggers{
|
||||||
|
pollSCM('* * * * *')
|
||||||
|
}
|
||||||
|
stages{
|
||||||
|
stage ('git') {
|
||||||
|
step {
|
||||||
|
git url :'https://github.com/dhille98/spring-petclinic.git'
|
||||||
|
branch:'dev'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
stage('bulid') {
|
||||||
|
steps {
|
||||||
|
sh 'mvn clean package'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in a new issue