From d0c48c7e5b05fea3a6c1fa447f1ee68d17ba8866 Mon Sep 17 00:00:00 2001 From: SandeshKutwade <165891300+SandeshKutwade@users.noreply.github.com> Date: Thu, 11 Apr 2024 11:10:48 +0530 Subject: [PATCH] Update jenkinsfiles --- jenkinsfiles | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/jenkinsfiles b/jenkinsfiles index 7e0087933..982efb48c 100644 --- a/jenkinsfiles +++ b/jenkinsfiles @@ -11,10 +11,12 @@ pipeline { } } } - post { - success { - // Archive the artifacts - archiveArtifacts artifacts: '**/surefire-reports/*.xml' - } + stage('build'){ + steps { + sh 'mvn clean package' + junit testResults: '**/surefire-reports/*_xml' + archive '**/target/spring-petclinic-*.jar } + } + }