diff --git a/Jenkinsfile b/Jenkinsfile index 79cf9350f..b467712fb 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -39,8 +39,11 @@ pipeline { NODE_ENV = "" } steps { - sh "docker network rm \$(docker network ls -f name=\"testing-${env.STACK_NAME}_db_1\" -q) || true" - // sh "docker network rm \$$(docker network ls -f name=\\\"testing-\${env.STACK_NAME}_db_1\\\" -q) || true" + sh "docker network rm testing-${env.STACK_NAME}_db_1 -f || true" + sh "docker network rm testing-${env.STACK_NAME}_db_1 -f || true" + sh "docker network rm testing-${env.STACK_NAME}_db_1 -f || true" + sh "docker network rm testing-${env.STACK_NAME}_db_1 -f || true" + sh "docker network rm testing-${env.STACK_NAME}_db_1 -f || true" sh "docker-compose -p testing-${env.STACK_NAME} -f docker-compose.test.yml rm --stop" sh "docker-compose -p testing-${env.STACK_NAME} -f docker-compose.test.yml build --force-rm db" }