mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-22 15:25:49 +00:00
adding artifactory steps
This commit is contained in:
parent
491c917a95
commit
b2573716b1
1 changed files with 9 additions and 4 deletions
13
Jenkinsfile
vendored
13
Jenkinsfile
vendored
|
@ -22,19 +22,24 @@ pipeline {
|
|||
// START : Stages
|
||||
/////////////////////////////////////////////////////////////////////
|
||||
stages {
|
||||
stage('build package') {
|
||||
stage('build maven package') {
|
||||
steps {
|
||||
sh 'mvn validate compile test'
|
||||
rtServer (
|
||||
id: "ARTIFACTORY_SERVER",
|
||||
url: $artifactory_url,
|
||||
credentialsId: CREDENTIALS
|
||||
)
|
||||
sh 'mvn validate compile test package'
|
||||
}
|
||||
}
|
||||
stage('build image') {
|
||||
stage('build docker image') {
|
||||
steps {
|
||||
script {
|
||||
dockerImage = docker.build "mpatel011/spring-petclinic:$BUILD_NUMBER"
|
||||
}
|
||||
}
|
||||
}
|
||||
stage('deploy image') {
|
||||
stage('push docker image') {
|
||||
steps {
|
||||
script {
|
||||
docker.withRegistry('' , 'dockerhub') {
|
||||
|
|
Loading…
Reference in a new issue