diff --git a/Jenkinsfile b/Jenkinsfile index 92930f4ef..a83f30d07 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -179,10 +179,11 @@ def cleanDockerE2E() { def projectBranch = "${PROJECT_NAME}-${env.BRANCH_NAME}".toLowerCase() // STOP AND REMOVE sh """ - docker ps -a --filter "name=^${projectBranch}" | awk 'NR>1 {print $1}' | xargs -r docker rm -v || true + docker ps -a --filter 'name=^${projectBranch}' | awk 'NR>1 {print \$1}' | xargs -r docker rm -v || true """ + sh """ - docker network ls --filter "name=^${projectBranch}" | awk 'NR>1 {print $1}' | xargs -r docker network rm || true + docker network ls --filter 'name=^${projectBranch}' | awk 'NR>1 {print $1}' | xargs -r docker network rm || true """ }