ci: refs #8698 Jenkins changeset #1525

Merged
alexm merged 62 commits from 8698_jenkins_e2e_onlyChanges into dev 2025-04-07 11:13:40 +00:00
1 changed files with 20 additions and 18 deletions
Showing only changes of commit 04543c8397 - Show all commits

38
Jenkinsfile vendored
View File

@ -9,6 +9,26 @@ def BRANCH_ENV = [
beta: 'production'
]
def searchFiles = { searchString ->
def searchPath = "src/pages"
// Buscar en todos los archivos .vue dentro de src/pages
def matchingFiles = sh(
script: "grep -rl '${searchString}' ${searchPath} || true",
returnStdout: true
).trim().split("\n")
// Filtrar por si la salida está vacía
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()
echo "Carpetas donde se encontró '${searchString}': ${extractedFolders}"
return extractedFolders
}
node {
stage('Setup') {
env.NODE_ENV = BRANCH_ENV[env.BRANCH_NAME] ?: 'dev'
@ -241,21 +261,3 @@ pipeline {
}
}
def searchFiles = { searchString ->
def searchPath = "src/pages"
// Buscar en todos los archivos .vue dentro de src/pages
def matchingFiles = sh(
script: "grep -rl '${searchString}' ${searchPath} || true",
returnStdout: true
).trim().split("\n")
// Filtrar por si la salida está vacía
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()
echo "Carpetas donde se encontró '${searchString}': ${extractedFolders}"
return extractedFolders
}