diff --git a/Jenkinsfile b/Jenkinsfile index 096b01434..6931dce89 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -174,6 +174,9 @@ def cleanDockerE2E() { sh "docker ps" + sh ''' + docker ps --filter "name=^${PROJECT_NAME}-${BRANCH_NAME}" --format "{{.Names}}" + ''' sh "docker ps --filter name=^${PROJECT_NAME}-${env.BRANCH_NAME}" def containers = sh(script: "docker ps -q --filter name=^${PROJECT_NAME}-${env.BRANCH_NAME}", returnStdout: true).trim() if (containers) {