added the pipeline

This commit is contained in:
dhille 2023-11-29 19:58:18 +05:30
parent 8b8304fa25
commit f6e9e65865

46
jenkins Normal file
View 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'
}
}
}
}