fix: refs #6695 checkErrors(folderName)
gitea/salix-front/pipeline/pr-dev There was a failure building this commit Details

This commit is contained in:
Alex Moreno 2025-02-10 15:28:26 +01:00
parent 69e57154cf
commit 7534a61118
1 changed files with 2 additions and 2 deletions

4
Jenkinsfile vendored
View File

@ -205,7 +205,7 @@ def runTestsInParallel() {
sh "docker-compose -p ${env.NETWORK}_${folderName} -f docker-compose.e2e.yml up -d back"
sh "docker-compose -p ${env.NETWORK}_${folderName} -f docker-compose.e2e.yml up -d front"
sh "CYPRESS_SPEC=test/cypress/integration/${folderName}/**/*.spec.js docker-compose -p ${env.NETWORK}_${folderName} -f docker-compose.e2e.yml up e2e"
checkErrors()
checkErrors(folderName)
}
}
}
@ -214,7 +214,7 @@ def runTestsInParallel() {
parallel tasks
}
def checkErrors(){
def checkErrors(String folderName){
def containerId = sh(script: "docker-compose -p ${env.NETWORK}_${folderName} -f docker-compose.e2e.yml ps -q e2e", returnStdout: true).trim()
if (containerId) {
def exitCode = sh(script: "docker inspect -f '{{.State.ExitCode}}' ${containerId}", returnStdout: true).trim()