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
d7f643d1a3
commit
b629cd3c06
|
@ -171,9 +171,6 @@ pipeline {
|
||||||
|
|
||||||
def cleanDockerE2E() {
|
def cleanDockerE2E() {
|
||||||
script {
|
script {
|
||||||
|
|
||||||
|
|
||||||
sh "docker ps"
|
|
||||||
def projectBranch = "${PROJECT_NAME}-${env.BRANCH_NAME}".toLowerCase()
|
def projectBranch = "${PROJECT_NAME}-${env.BRANCH_NAME}".toLowerCase()
|
||||||
echo "${projectBranch}"
|
echo "${projectBranch}"
|
||||||
def containers = sh(script: """
|
def containers = sh(script: """
|
||||||
|
@ -181,16 +178,13 @@ def cleanDockerE2E() {
|
||||||
""", returnStdout: true).trim()
|
""", returnStdout: true).trim()
|
||||||
|
|
||||||
if (containers) {
|
if (containers) {
|
||||||
echo "Contenedores encontrados: ${containers}"
|
|
||||||
|
|
||||||
// Detener cada contenedor
|
|
||||||
sh(script: """
|
sh(script: """
|
||||||
echo '${containers}' | xargs docker stop
|
echo '${containers}' | xargs docker stop
|
||||||
|
echo '${containers}' | xargs docker rm
|
||||||
""")
|
""")
|
||||||
} else {
|
} else {
|
||||||
echo "No se encontraron contenedores con el prefijo '${projectBranch}'."
|
echo "No se encontraron contenedores con el prefijo '${projectBranch}'."
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue