mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-26 08:55:49 +00:00
Update Jenkinsfile
This commit is contained in:
parent
7afaa3e07e
commit
60b3efe73e
1 changed files with 2 additions and 3 deletions
5
Jenkinsfile
vendored
5
Jenkinsfile
vendored
|
@ -37,14 +37,13 @@ pipeline {
|
||||||
sh """#!/bin/bash -xe
|
sh """#!/bin/bash -xe
|
||||||
|
|
||||||
docker push()
|
docker push()
|
||||||
Image push("latest")
|
docker push("latest")
|
||||||
}
|
|
||||||
echo "Pushed Docker Image: ${env.IMAGE_NAME}"
|
echo "Pushed Docker Image: ${env.IMAGE_NAME}"
|
||||||
}
|
|
||||||
docker rmi ${env.IMAGE_NAME} ${env.IMAGE_NAME_LATEST}
|
docker rmi ${env.IMAGE_NAME} ${env.IMAGE_NAME_LATEST}
|
||||||
"""
|
"""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
stage('Deploy') {
|
stage('Deploy') {
|
||||||
steps {
|
steps {
|
||||||
|
|
Loading…
Reference in a new issue