Added the package shell in jenkinsfile

This commit is contained in:
n 2023-03-07 15:18:25 +05:30
parent 23f1ebfe4d
commit 8ea5c95dd2

7
Jenkinsfile vendored
View file

@ -8,9 +8,14 @@ pipeliene {
branch: 'main'
}
}
stage ('package') {
steps {
sh 'mvn package'
}
}
stage( 'post build' ) {
steps {
archiveArtifacts artifacts: '**/libs/spring-petclinic-3.0.0.jar'
archiveArtifacts artifacts: '**/spring-petclinic-3.0.0.jar'
onlyIfSuccesful: true
junit testResults: '**/test-results/test/TEST-*.xml'
}