ci: refs #6695 streamline Cypress E2E test execution in Jenkinsfile and improve error handling

This commit is contained in:
Alex Moreno 2025-02-19 08:01:53 +01:00
parent df32ea4046
commit ca50259d50
1 changed files with 2 additions and 2 deletions

4
Jenkinsfile vendored
View File

@ -112,11 +112,11 @@ pipeline {
script {
sh "docker-compose -p ${env.NETWORK} -f docker-compose.e2e.yml up -d"
def containerId = sh(script: """
docker run --network \${env.NETWORK}_e2e-network \\
docker run --network ${env.NETWORK}_e2e-network \\
-e TZ=Europe/Madrid \\
-e DOCKER=true \\
-e CI=true \\
-v \$(pwd):/app \\
-v $(pwd):/app \\
-w /app \\
cypress/included:latest \\
sh -c "while [ ! -d node_modules/cypress ]; do sleep 1; done && pnpm exec cypress run --browser chromium"