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
gitea/salix-front/pipeline/pr-dev There was a failure building this commit
Details
This commit is contained in:
parent
06eb1bc8cb
commit
536eb5996e
|
@ -100,7 +100,7 @@ pipeline {
|
||||||
env.NETWORK = "${PROJECT_NAME}-${env.BRANCH_NAME}-${env.BUILD_ID}"
|
env.NETWORK = "${PROJECT_NAME}-${env.BRANCH_NAME}-${env.BUILD_ID}"
|
||||||
docker.build('cypress-setup:latest', "-f ./test/cypress/Dockerfile .")
|
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 networkLowerCase = env.NETWORK.toLowerCase()
|
||||||
def image = docker.image('cypress-setup', , "-f ./test/cypress/Dockerfile .")
|
def image = docker.image('cypress-setup', , "-f ./test/cypress/Dockerfile .")
|
||||||
image.inside("""
|
image.inside("""
|
||||||
|
@ -113,7 +113,7 @@ pipeline {
|
||||||
""") {
|
""") {
|
||||||
sh 'pnpm exec cypress run --browser chromium'
|
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"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue