|
@@ -80,8 +80,9 @@ pipeline {
|
|
|
for (String item : service_update.split()) {
|
|
|
try{
|
|
|
echo "Updating ${item}"
|
|
|
- sh "echo Docker host is $DOCKER_HOST, cert $DOCKER_CERT_PATH"
|
|
|
- sh "docker service update ${service_name} --image ${DOCKER_REGISTRY}/iru/${DOCKER_IMAGE}:${NEWTAG}"
|
|
|
+ sh """echo Docker host is $DOCKER_HOST, cert $DOCKER_CERT_PATH
|
|
|
+ docker node ls
|
|
|
+ docker service update ${service_name} --image ${DOCKER_REGISTRY}/iru/${DOCKER_IMAGE}:${NEWTAG}"""
|
|
|
}
|
|
|
catch(err){
|
|
|
echo "Recovering service $item"
|