fix: refs #6695 try parallel
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
b629cd3c06
commit
0b4ee0f416
|
@ -172,7 +172,7 @@ pipeline {
|
||||||
def cleanDockerE2E() {
|
def cleanDockerE2E() {
|
||||||
script {
|
script {
|
||||||
def projectBranch = "${PROJECT_NAME}-${env.BRANCH_NAME}".toLowerCase()
|
def projectBranch = "${PROJECT_NAME}-${env.BRANCH_NAME}".toLowerCase()
|
||||||
echo "${projectBranch}"
|
// STOP AND REMOVE
|
||||||
def containers = sh(script: """
|
def containers = sh(script: """
|
||||||
docker ps --filter "name=^${projectBranch}" --format "{{.ID}}"
|
docker ps --filter "name=^${projectBranch}" --format "{{.ID}}"
|
||||||
""", returnStdout: true).trim()
|
""", returnStdout: true).trim()
|
||||||
|
@ -185,6 +185,18 @@ def cleanDockerE2E() {
|
||||||
} else {
|
} else {
|
||||||
echo "No se encontraron contenedores con el prefijo '${projectBranch}'."
|
echo "No se encontraron contenedores con el prefijo '${projectBranch}'."
|
||||||
}
|
}
|
||||||
|
|
||||||
|
def networks = sh(script: """
|
||||||
|
docker network ls --filter "name=^${projectBranch}" --format "{{.ID}}"
|
||||||
|
""", returnStdout: true).trim()
|
||||||
|
|
||||||
|
if (networks) {
|
||||||
|
sh(script: """
|
||||||
|
echo '${networks}' | xargs docker network rm
|
||||||
|
""")
|
||||||
|
} else {
|
||||||
|
echo "No se encontraron redes con el prefijo '${projectBranch}'."
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue