mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-21 23:35:50 +00:00
Jenkinsfile_SP
This commit is contained in:
parent
0aa3adb56f
commit
6cf88cc0e2
1 changed files with 15 additions and 0 deletions
15
Jenkinsfile
vendored
Normal file
15
Jenkinsfile
vendored
Normal 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
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in a new issue