ci: refs #6695 streamline Cypress E2E test execution in Jenkinsfile and improve error handling
gitea/salix-front/pipeline/pr-dev There was a failure building this commit Details

This commit is contained in:
Alex Moreno 2025-02-19 08:16:47 +01:00
parent e5fe743e0e
commit 416d697ba2
1 changed files with 2 additions and 1 deletions

3
Jenkinsfile vendored
View File

@ -171,12 +171,13 @@ pipeline {
def cleanDockerE2E() {
script {
sh "docker-compose -p ${env.NETWORK} -f docker-compose.e2e.yml down || true"
if (containerId) {
if (containerId?.trim()) {
sh "docker rm ${containerId} || true"
}
}
}
def checkErrors(String containerId) {
echo "Container ID: ${containerId}"
def exitCode = sh(script: "docker inspect -f '{{.State.ExitCode}}' ${containerId}", returnStdout: true).trim()