Added the name change in pipeline

This commit is contained in:
n 2023-03-07 15:39:02 +05:30
parent c03613da5a
commit 27734ce912

12
Jenkinsfile vendored
View file

@ -13,10 +13,16 @@ pipeline {
sh 'mvn package' sh 'mvn package'
} }
} }
stage( 'post build' ) { stage('build') {
steps { steps {
archiveArtifacts artifacts: '**/spring-petclinic-3.0.0.jar', sh 'export PATH="/usr/lib/jvm/java-1.17.0-openjdk-amd64/bin:$PATH" && mvn package'
junit testResults: '**/test-results/test/TEST-*.xml' }
}
stage('postbuild')
{
archiveArtifacts artifacts: '**/target/spring-petclinic.war',
followSymlinks: false
junit '**/surefire-reports/TEST-*.xml'
} }
} }
} }