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
gitea/salix-front/pipeline/pr-dev There was a failure building this commit
Details
This commit is contained in:
parent
c72e8d9fed
commit
480ab7552e
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue