diff --git a/vars/dockerExecute.groovy b/vars/dockerExecute.groovy index 72ff9e758..4cfbc07d3 100644 --- a/vars/dockerExecute.groovy +++ b/vars/dockerExecute.groovy @@ -27,6 +27,7 @@ def call(Map parameters = [:], body) { returnCode = sh script: 'docker ps -q > /dev/null', returnStatus: true if(returnCode != 0) { echo "[WARNING][$STEP_NAME] Cannot connect to docker daemon (command 'docker ps' did not return with '0'). Configured docker image '${dockerImage}' will not be used." + dockerImage = null } }