test: refs #6695 run e2e parallel
gitea/salix-front/pipeline/pr-dev There was a failure building this commit
Details
gitea/salix-front/pipeline/pr-dev There was a failure building this commit
Details
This commit is contained in:
parent
86d5ae781a
commit
7abe89775f
|
@ -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()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue