fix(jenkins): refs #8698 update module detection logic to ensure execution only for changed modules
gitea/salix-front/pipeline/pr-dev There was a failure building this commit Details

This commit is contained in:
Alex Moreno 2025-03-06 10:18:08 +01:00
parent 76e9aab5ae
commit 69d99350bc
1 changed files with 1 additions and 5 deletions

6
Jenkinsfile vendored
View File

@ -117,16 +117,12 @@ pipeline {
sh 'rm -f junit/e2e-*.xml'
env.COMPOSE_TAG = PROTECTED_BRANCH.contains(env.CHANGE_TARGET) ? env.CHANGE_TARGET : 'dev'
def modules = sh(script: 'node test/cypress/docker/find/find.js', returnStdout: true).trim()
if (modules == "") {
echo "No modules changed. Skipping execution"
return
}
def image = docker.build('lilium-dev', '-f docs/Dockerfile.dev docs')
sh 'docker login --username $CREDS_USR --password $CREDS_PSW $REGISTRY'
sh "docker-compose ${env.COMPOSE_PARAMS} up -d"
def modules = sh(script: 'node test/cypress/docker/find/find.js', returnStdout: true).trim()
image.inside("--network ${env.COMPOSE_PROJECT}_default -e CI -e TZ") {
sh "sh test/cypress/docker/cypressParallel.sh 2 '${modules}'"
}