refactor: refs #6695 simplify Docker cleanup commands in Jenkinsfile
gitea/salix-front/pipeline/pr-dev There was a failure building this commit
Details
gitea/salix-front/pipeline/pr-dev There was a failure building this commit
Details
This commit is contained in:
parent
5f9b768d2d
commit
211877fcc1
|
@ -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
|
||||
"""
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue