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