|
@@ -68,7 +68,7 @@ pipeline {
|
|
}
|
|
}
|
|
catch(err){
|
|
catch(err){
|
|
echo "Recovering service $item"
|
|
echo "Recovering service $item"
|
|
- sh "DOCKER_HOST=tcp://${CLUSTERS.get((item))}:2376 DOCKER_TLS_VERIFY=1 docker service rollback ${item}"
|
|
|
|
|
|
+ sh "DOCKER_HOST=tcp://${CLUSTERS.get((item))}:2376 DOCKER_TLS_VERIFY=1 docker service rollback ${SERVICE_NAME}"
|
|
throw err
|
|
throw err
|
|
}
|
|
}
|
|
}
|
|
}
|