added pipeline

This commit is contained in:
dhille 2023-11-30 13:20:38 +05:30
parent 8b8304fa25
commit e75fbb6469

22
Jenkins Normal file
View 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'
}
}
}
}