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
45bf813c0a
commit
09a63112fc
|
@ -111,13 +111,12 @@ pipeline {
|
|||
steps {
|
||||
script {
|
||||
sh "docker-compose -p ${env.NETWORK} -f docker-compose.e2e.yml up -d"
|
||||
def currentDir = sh(script: "pwd", returnStdout: true).trim()
|
||||
def containerId = sh(script: """
|
||||
docker run --network ${env.NETWORK}_e2e-network \
|
||||
-e TZ=Europe/Madrid \
|
||||
-e DOCKER=true \
|
||||
-e CI=true \
|
||||
-v ${currentDir}:/app \
|
||||
-v .:/app \
|
||||
-w /app \
|
||||
cypress-setup:latest \
|
||||
sh -c "while [ ! -d node_modules/cypress ]; do sleep 1; done && pnpm exec cypress run --browser chromium"
|
||||
|
|
Loading…
Reference in New Issue