From 24dbc1fe80440e591773992f87668790679ca5ac Mon Sep 17 00:00:00 2001 From: vishnu1411 Date: Sat, 16 Dec 2023 11:00:25 -0500 Subject: [PATCH] Jenkinsfile_SP3 --- Jenkinsfile | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 4e62c5156..ca36e5b27 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -3,14 +3,13 @@ //build step git branch: 'main', url: 'https://github.com/vishnu1411/spring-petclinic.git' } - stage('Build and package'){ + stage('Build and install'){ //building using maven and install - sh 'mvn clean package' + sh 'mvn clean install' } - stage('Install & Archive test results'){ + stage('Archive test results'){ //insteall & archive test reuslts - shh 'mvn clean install' junit '**/surefire-reports/*xml' - archiveArtifacts artifacts: '**/*.war', followSymlinks: false + archiveArtifacts artifacts: '**/*.jar', followSymlinks: false } } \ No newline at end of file