Jenkinsfile_SP1

This commit is contained in:
vishnu1411 2023-12-16 10:40:45 -05:00
parent 6cf88cc0e2
commit ca5d9dede1

30
Jenkinsfile vendored
View file

@ -1,15 +1,15 @@
node('SP'){ node {
stage('sourcecode'){ stage('sourcecode'){
//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 package'){
//building using maven and install //building using maven and install
sh 'mvn clean package' sh 'mvn clean package'
} }
stage('Archive test results'){ stage('Archive test results'){
//archive test reuslts //archive test reuslts
junit '**/surefire-reports/*xml' junit '**/surefire-reports/*xml'
archiveArtifacts artifacts: '**/*.war', followSymlinks: false archiveArtifacts artifacts: '**/*.war', followSymlinks: false
} }
} }