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() {
|
def cleanDockerE2E() {
|
||||||
script {
|
script {
|
||||||
sh "docker-compose -p ${env.NETWORK} -f docker-compose.e2e.yml down || true"
|
sh "docker-compose -p ${env.NETWORK} -f docker-compose.e2e.yml down || true"
|
||||||
if (containerId) {
|
if (containerId?.trim()) {
|
||||||
sh "docker rm ${containerId} || true"
|
sh "docker rm ${containerId} || true"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
def checkErrors(String containerId) {
|
def checkErrors(String containerId) {
|
||||||
echo "Container ID: ${containerId}"
|
echo "Container ID: ${containerId}"
|
||||||
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()
|
||||||
|
|
Loading…
Reference in New Issue