test: refs #6695 handle e2e erros
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
040673f500
commit
1ea6af8eb9
|
@ -134,7 +134,8 @@ pipeline {
|
||||||
def exitCode = sh(script: "docker inspect -f '{{.State.ExitCode}}' ${containerId}", returnStdout: true).trim()
|
def exitCode = sh(script: "docker inspect -f '{{.State.ExitCode}}' ${containerId}", returnStdout: true).trim()
|
||||||
sh "docker cp ${containerId}:/app/test/cypress/reports ./test/cypress/"
|
sh "docker cp ${containerId}:/app/test/cypress/reports ./test/cypress/"
|
||||||
if (exitCode != '0') {
|
if (exitCode != '0') {
|
||||||
error("Cypress E2E tests failed with exit code: ${exitCode}")
|
def logs = sh(script: "docker logs ${containerId}", returnStdout: true).trim()
|
||||||
|
error("Cypress E2E tests failed with exit code: ${exitCode}\nLogs:\n${logs}")
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
error("The Docker container for E2E tests could not be created")
|
error("The Docker container for E2E tests could not be created")
|
||||||
|
|
Loading…
Reference in New Issue