From 27734ce912d94a3be6d4875db8b64fe09fc49d34 Mon Sep 17 00:00:00 2001 From: n Date: Tue, 7 Mar 2023 15:39:02 +0530 Subject: [PATCH] Added the name change in pipeline --- Jenkinsfile | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 951c3e6ae..a361d6f2c 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -13,10 +13,16 @@ pipeline { sh 'mvn package' } } - stage( 'post build' ) { + stage('build') { steps { - archiveArtifacts artifacts: '**/spring-petclinic-3.0.0.jar', - junit testResults: '**/test-results/test/TEST-*.xml' + sh 'export PATH="/usr/lib/jvm/java-1.17.0-openjdk-amd64/bin:$PATH" && mvn package' + } + } + stage('postbuild') + { + archiveArtifacts artifacts: '**/target/spring-petclinic.war', + followSymlinks: false + junit '**/surefire-reports/TEST-*.xml' } } }