ci: refs #8698 refactor Cypress test command to use a variable for specs
gitea/salix-front/pipeline/pr-dev There was a failure building this commit Details

This commit is contained in:
Alex Moreno 2025-03-04 09:00:29 +01:00
parent b51f99f5f1
commit d15144a98a
1 changed files with 3 additions and 2 deletions

5
Jenkinsfile vendored
View File

@ -188,13 +188,14 @@ pipeline {
}
steps {
script {
sh 'rm junit/e2e-*.xml || true'
env.COMPOSE_TAG = PROTECTED_BRANCH.contains(env.CHANGE_TARGET) ? env.CHANGE_TARGET : 'dev'
def image = docker.build('lilium-dev', '-f docs/Dockerfile.dev docs')
sh "docker-compose ${env.COMPOSE_PARAMS} up -d"
def specs = getSpecs()
image.inside("--network ${env.COMPOSE_PROJECT}_default -e CI -e TZ") {
sh "cypress run --browser chromium --spec ${getSpecs()} || true"
sh "cypress run --browser chromium --spec ${specs} || true"
}
}
}