ci: refs #6695 refactor Cypress setup in Jenkinsfile and replace local docker-compose with new configuration
gitea/salix-front/pipeline/pr-dev There was a failure building this commit Details

This commit is contained in:
Alex Moreno 2025-02-19 12:17:45 +01:00
parent 06eb1bc8cb
commit 536eb5996e
2 changed files with 2 additions and 2 deletions

4
Jenkinsfile vendored
View File

@ -100,7 +100,7 @@ pipeline {
env.NETWORK = "${PROJECT_NAME}-${env.BRANCH_NAME}-${env.BUILD_ID}"
docker.build('cypress-setup:latest', "-f ./test/cypress/Dockerfile .")
sh "docker-compose -p ${env.NETWORK} -f test/cypress/docker-compose.e2e.yml up -d"
sh "docker-compose -p ${env.NETWORK} -f docker-compose.e2e.yml up -d"
def networkLowerCase = env.NETWORK.toLowerCase()
def image = docker.image('cypress-setup', , "-f ./test/cypress/Dockerfile .")
image.inside("""
@ -113,7 +113,7 @@ pipeline {
""") {
sh 'pnpm exec cypress run --browser chromium'
}
sh "docker-compose -p ${env.NETWORK} -f test/cypress/docker-compose.e2e.yml down"
sh "docker-compose -p ${env.NETWORK} -f docker-compose.e2e.yml down"
}
}
}