ci: refs #6695 streamline Cypress E2E test execution in Jenkinsfile and improve error handling
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
e5fe743e0e
commit
416d697ba2
|
@ -171,12 +171,13 @@ pipeline {
|
|||
def cleanDockerE2E() {
|
||||
script {
|
||||
sh "docker-compose -p ${env.NETWORK} -f docker-compose.e2e.yml down || true"
|
||||
if (containerId) {
|
||||
if (containerId?.trim()) {
|
||||
sh "docker rm ${containerId} || true"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
def checkErrors(String containerId) {
|
||||
echo "Container ID: ${containerId}"
|
||||
def exitCode = sh(script: "docker inspect -f '{{.State.ExitCode}}' ${containerId}", returnStdout: true).trim()
|
||||
|
|
Loading…
Reference in New Issue