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