From 7abe89775f40e8a5bd3fe1e2cbeeb02d270dcf55 Mon Sep 17 00:00:00 2001 From: alexm Date: Mon, 3 Feb 2025 12:58:49 +0100 Subject: [PATCH] test: refs #6695 run e2e parallel --- Jenkinsfile | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 0cb21df6b05..1d6ec3a5140 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -141,18 +141,17 @@ pipeline { } post { always { - sh 'docker-compose -f docker-compose.e2e.yml up --build e2e' - def containerId = sh(script: "docker-compose -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() - sh "docker cp ${containerId}:/app/test/cypress/reports ./test/cypress/" - if (exitCode != '0') { - def logs = sh(script: "docker logs ${containerId}", returnStdout: true).trim() - error("Cypress E2E tests failed with exit code: ${exitCode}\nLogs:\n${logs}") - } - } else { - error("The Docker container for E2E tests could not be created") - } + // def containerId = sh(script: "docker-compose -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() + // sh "docker cp ${containerId}:/app/test/cypress/reports ./test/cypress/" + // if (exitCode != '0') { + // def logs = sh(script: "docker logs ${containerId}", returnStdout: true).trim() + // error("Cypress E2E tests failed with exit code: ${exitCode}\nLogs:\n${logs}") + // } + // } else { + // error("The Docker container for E2E tests could not be created") + // } cleanDockerE2E() } }