1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2025-01-18 05:18:24 +02:00

null docker image in case of missing docker daemon.

This commit is contained in:
Marcus Holl 2018-01-15 13:45:16 +01:00
parent 147d29a714
commit 678b55e771

View File

@ -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
}
}