added .groovy file

This commit is contained in:
Venkatesh 2022-10-22 17:10:46 +05:30
parent 08c9ff37c6
commit 0e135e30ea

18
vars/jenkinsfile.groovy Normal file
View file

@ -0,0 +1,18 @@
def call() {
pipeline {
agent { label 'JDK-11' }
stages {
stage('clone') {
steps {
git url: 'https://github.com/GUDAPATIVENKATESH/spring-petclinic.git',
branch: 'main'
}
}
stage('build') {
steps {
sh 'mvn package'
}
}
}
}
}