From 1c1d6a0ff6063259009b23696700da4146ebe766 Mon Sep 17 00:00:00 2001 From: alexm Date: Mon, 10 Feb 2025 13:21:58 +0100 Subject: [PATCH] fix: refs #6695 clientBasicData --- Jenkinsfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index a5eec326e..6135f4815 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -192,11 +192,11 @@ def runTestsInParallel() { if (testFolder.trim()) { // Evita procesar líneas vacías def folderName = testFolder.replaceAll('test/cypress/integration/', '').replaceAll('/', '') folderName = folderName.replaceAll('[^a-zA-Z0-9_-]', '') // Seguridad en nombres de red + env.CYPRESS_SPEC="test/cypress/integration/${folderName}/**/*.spec.js" tasks["e2e_${folderName}"] = { sh "docker-compose -p ${env.NETWORK}_${folderName} -f docker-compose.e2e.yml up -d back vn-database" sh "docker-compose -p ${env.NETWORK}_${folderName} -f docker-compose.e2e.yml up -d front" - sh "docker-compose -p ${env.NETWORK}_${folderName} -f docker-compose.e2e.yml up e2e " + - "command=\"sh -c 'pnpm exec cypress install && pnpm exec cypress run --browser chromium --spec test/cypress/integration/${folderName}/**/*.spec.js'\"" + sh "docker-compose -p ${env.NETWORK}_${folderName} -f docker-compose.e2e.yml up e2e" } } }