1 2 3 4 5 6 7 8
def call(Map optional) { if (optional.docker) { echo "Ensuring that Docker is available on the system." sh """ docker --version """ } }