fix: refs #6695 checkErrors(folderName)
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
7534a61118
commit
034f27432d
|
@ -218,7 +218,7 @@ def checkErrors(String folderName){
|
|||
def containerId = sh(script: "docker-compose -p ${env.NETWORK}_${folderName} -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/"
|
||||
// sh "sudo 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}")
|
||||
|
|
Loading…
Reference in New Issue