Jenkinsfile

This commit is contained in:
Srinath 2021-06-03 21:47:28 +05:30
parent 436fb51833
commit c26c2bdcc3

18
Jenkinsfile vendored Normal file
View file

@ -0,0 +1,18 @@
node {
stage('git springpetclinic'){
//git clone
git branch: 'Dev', url: 'https://github.com/Srinath246/spring-petclinic.git'
}
stage('package the spring'){
//maven package
sh 'mvn package'
}
stage('archival'){
//archiving artifactory
archive 'target/*.jar'
}
stage('test result'){
junit 'target/surefire-reports/*.xml'
}
}