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
e2edc8bc57
commit
8bfe7211b0
|
@ -170,8 +170,15 @@ pipeline {
|
|||
|
||||
def cleanDockerE2E() {
|
||||
script {
|
||||
sh(script: "docker-compose -p ${env.NETWORK} -f docker-compose.e2e.yml down", returnStatus: true)
|
||||
sh(script: "docker rm ${containerId}", returnStatus: true)
|
||||
def composeDown = sh(script: "docker-compose -p ${env.NETWORK} -f docker-compose.e2e.yml down", returnStatus: true)
|
||||
if (composeDown != 0) {
|
||||
echo "docker-compose down failed, but continuing..."
|
||||
}
|
||||
|
||||
def removeContainer = sh(script: "docker rm ${containerId}", returnStatus: true)
|
||||
if (removeContainer != 0) {
|
||||
echo "Failed to remove container ${containerId}, it probably did not exist."
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue