refs #5739 feat: try remove duplicate networks
gitea/salix/pipeline/head There was a failure building this commit Details

This commit is contained in:
Alex Moreno 2024-01-12 14:14:21 +01:00
parent ce697f8ba5
commit 6d02a8dc0c
1 changed files with 1 additions and 3 deletions

4
Jenkinsfile vendored
View File

@ -39,9 +39,7 @@ pipeline {
NODE_ENV = "" NODE_ENV = ""
} }
steps { steps {
sh ''' sh "docker network ls | grep testing-\${env.STACK_NAME} | awk '{print \$1}' | xargs -r docker network rm"
docker network ls | grep testing-${env.STACK_NAME} | awk '{print $1}' | xargs -r docker network rm
'''
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 rm --stop"
sh "docker-compose -p testing-${env.STACK_NAME} -f docker-compose.test.yml build --force-rm db" sh "docker-compose -p testing-${env.STACK_NAME} -f docker-compose.test.yml build --force-rm db"
} }