Jenkinsfile_SP

This commit is contained in:
vishnu1411 2023-12-16 10:26:02 -05:00
parent 0aa3adb56f
commit 6cf88cc0e2

15
Jenkinsfile vendored Normal file
View file

@ -0,0 +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
}
}