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
211877fcc1
commit
4d0b03a480
|
@ -179,11 +179,12 @@ 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