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'){
stage('sourcecode'){
//build step
git branch: 'main', url: 'https://github.com/vishnu1411/spring-petclinic.git'
}
stage('Build and package'){
//building using maven and install
sh 'mvn clean package'
}
stage('Archive test results'){
//archive test reuslts
junit '**/surefire-reports/*xml'
archiveArtifacts artifacts: '**/*.war', followSymlinks: false
}
}
node {
stage('sourcecode'){
//build step
git branch: 'main', url: 'https://github.com/vishnu1411/spring-petclinic.git'
}
stage('Build and package'){
//building using maven and install
sh 'mvn clean package'
}
stage('Archive test results'){
//archive test reuslts
junit '**/surefire-reports/*xml'
archiveArtifacts artifacts: '**/*.war', followSymlinks: false
}
}