Declarative jenkinsfile

This commit is contained in:
Bharatkumar5690 2023-03-08 11:46:34 +05:30
parent 9ecdc1111e
commit b4347e2be4

17
Jenkinsfile vendored Normal file
View file

@ -0,0 +1,17 @@
pipeline {
agent { label 'Master'}
triggers { pollSCM('* * * * *') }
stages{
stage('vcs') {
steps {
git branch: 'master',
url: 'https://github.com/Bharatkumar5690/spring-petclinic.git'
}
}
stage('Build') {
steps {
sh 'mvn package'
}
}
}
}