I am doing the below docker command from Jenkins pipeline
sh \'#!/bin/sh -e\\n\' + "docker run -i -v $workspace/tests:/root/tests -w /root/tests --name t