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:
parent
147d29a714
commit
678b55e771
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user