|
@@ -85,12 +85,12 @@ pipeline {
|
|
|
stage("Updating service"){
|
|
|
steps{
|
|
|
script {
|
|
|
- echo "Updating ${item}"
|
|
|
+ echo "Updating ${SERVICE_NAME}"
|
|
|
try{
|
|
|
sh "DOCKER_HOST=${DHOST} docker service update ${SERVICE_NAME} --image ${PROD_REGISTRY}/${DOCKER_IMAGE}:${NEWTAG}"
|
|
|
}
|
|
|
catch(err){
|
|
|
- echo "Recovering service $item"
|
|
|
+ echo "Recovering service ${SERVICE_NAME}"
|
|
|
sh "DOCKER_HOST=${DHOST} docker service rollback ${SERVICE_NAME}"
|
|
|
throw err
|
|
|
}
|