From 42f898531df8e93f8c968d5671f78ff953eced33 Mon Sep 17 00:00:00 2001 From: alexm Date: Mon, 3 Mar 2025 13:16:33 +0100 Subject: [PATCH] ci: refs #8698 try lastSuccessfulBuild --- Jenkinsfile | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 7b7bde2ea..f1c58ec24 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -22,12 +22,16 @@ def searchFiles = { searchString -> matchingFiles = matchingFiles.findAll { it.trim() } // Extraer solo el tercer segmento del path - def extractedFolders = matchingFiles.collect { "test/cypress/integration/" + it.split("/")[2] + "/**/*.spec.js" }.unique() - extractedFolders.add(searchString) + def extractedFolders = matchingFiles.collect { getSpec(it) }.unique() + extractedFolders.add(getSpec(searchString)) echo "Carpetas donde se encontró '${searchString}': ${extractedFolders}" return extractedFolders } +def getSpec(path){ + return "test/cypress/integration/" + path.split("/")[2] + "/**/*.spec.js" +} + node { stage('Setup') { @@ -102,14 +106,6 @@ pipeline { // sh 'pnpm install --prefer-offline' // } // } - // stage('Echo?') { - // when { - // changeset "src/pages/**/*" - // } - // steps { - // echo "hola" - // } - // } stage('Buscar último build con éxito') { steps { script { @@ -166,8 +162,6 @@ pipeline { echo "files: " + files } } - - } // stage('Test') { // when { @@ -181,7 +175,7 @@ pipeline { // parallel { // stage('Unit') { // steps { - // sh 'pnpm run test:unit:ci' + // sh 'pnpm run test:front:ci' // } // post { // always {