refactor: refs #6695 improve group size calculation for parallel test execution in Jenkinsfile
gitea/salix-front/pipeline/pr-dev There was a failure building this commit Details

This commit is contained in:
Alex Moreno 2025-02-13 09:31:26 +01:00
parent c72e8d9fed
commit 480ab7552e
1 changed files with 1 additions and 2 deletions

3
Jenkinsfile vendored
View File

@ -192,7 +192,7 @@ def runTestsInParallel(int numParallelGroups) {
}
// Divide las carpetas en grupos para paralelizar
def groupSize = (folders.size() + numParallelGroups - 1) / numParallelGroups // Redondeo hacia arriba
def groupSize = Math.ceil(folders.size() / numParallelGroups).toInteger()
def groups = folders.collate(groupSize)
def tasks = [:]
@ -226,7 +226,6 @@ def runTestsInParallel(int numParallelGroups) {
}
def checkErrors(String folderName){
def containerId = sh(script: "docker-compose -p ${env.NETWORK}_${folderName} -f docker-compose.e2e.yml ps -q e2e", returnStdout: true).trim()
if (containerId) {