ci: refs #8698 try lastSuccessfulBuild
gitea/salix-front/pipeline/pr-dev This commit looks good Details

This commit is contained in:
Alex Moreno 2025-03-03 13:16:33 +01:00
parent 1d34fc0287
commit 42f898531d
1 changed files with 7 additions and 13 deletions

20
Jenkinsfile vendored
View File

@ -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 {