Jenkinsfile_SP3

This commit is contained in:
vishnu1411 2023-12-16 11:00:25 -05:00
parent 8b606f85ae
commit 24dbc1fe80

9
Jenkinsfile vendored
View file

@ -3,14 +3,13 @@
//build step //build step
git branch: 'main', url: 'https://github.com/vishnu1411/spring-petclinic.git' git branch: 'main', url: 'https://github.com/vishnu1411/spring-petclinic.git'
} }
stage('Build and package'){ stage('Build and install'){
//building using maven 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 //insteall & archive test reuslts
shh 'mvn clean install'
junit '**/surefire-reports/*xml' junit '**/surefire-reports/*xml'
archiveArtifacts artifacts: '**/*.war', followSymlinks: false archiveArtifacts artifacts: '**/*.jar', followSymlinks: false
} }
} }