mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-22 15:55:49 +00:00
Jenkinsfile_SP3
This commit is contained in:
parent
8b606f85ae
commit
24dbc1fe80
1 changed files with 4 additions and 5 deletions
9
Jenkinsfile
vendored
9
Jenkinsfile
vendored
|
@ -3,14 +3,13 @@
|
|||
//build step
|
||||
git branch: 'main', url: 'https://github.com/vishnu1411/spring-petclinic.git'
|
||||
}
|
||||
stage('Build and package'){
|
||||
stage('Build 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
|
||||
shh 'mvn clean install'
|
||||
junit '**/surefire-reports/*xml'
|
||||
archiveArtifacts artifacts: '**/*.war', followSymlinks: false
|
||||
archiveArtifacts artifacts: '**/*.jar', followSymlinks: false
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue