From c2e97f001e68d590f49d8eecc381e532364de7b9 Mon Sep 17 00:00:00 2001 From: alexm Date: Wed, 19 Feb 2025 08:09:41 +0100 Subject: [PATCH] ci: refs #6695 streamline Cypress E2E test execution in Jenkinsfile and improve error handling --- Jenkinsfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index befc8a550..d1f4e736e 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -111,8 +111,8 @@ pipeline { steps { 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 \\ + def containerId = sh(script: """ + docker run --network \${env.NETWORK}_e2e-network \\ -e TZ=Europe/Madrid \\ -e DOCKER=true \\ -e CI=true \\ @@ -120,7 +120,7 @@ pipeline { -w /app \\ cypress-setup:latest \\ sh -c "while [ ! -d node_modules/cypress ]; do sleep 1; done && pnpm exec cypress run --browser chromium" - ", returnStdout: true).trim() + """, returnStdout: true).trim() checkErrors(containerId)} } }