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