added jenkinsfile

This commit is contained in:
satya 2023-08-17 23:11:51 +05:30
parent 0a529015bc
commit bf8e179e0c

24
Jenkinsfile vendored Normal file
View file

@ -0,0 +1,24 @@
pipeline {
agent { label 'JDK-17-MVN-3.6' }
triggers {
cron('* * * * *')
}
stages {
stage('vcs') {
steps {
git url: 'https://github.com/satya36-cpu/spring-petclinicnew.git',
branch: 'main'
}
}
stage('build and package') {
steps {
sh 'clean package'
}
}
stage('archive results') {
steps {
junit '**/surefire-reports/*.xml'
}
}
}
}