mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-23 07:45:49 +00:00
Added deploy stage
This commit is contained in:
parent
0414113103
commit
cfa55f742b
1 changed files with 8 additions and 0 deletions
8
Jenkinsfile
vendored
8
Jenkinsfile
vendored
|
@ -19,6 +19,14 @@ pipeline {
|
||||||
steps {
|
steps {
|
||||||
sh 'mvn package'
|
sh 'mvn package'
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
stage('Deploy') {
|
||||||
|
when {
|
||||||
|
branch 'master'
|
||||||
|
}
|
||||||
|
steps {
|
||||||
|
sh 'mvn deploy'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue