def splits = splitTests count(5) def branches = [:] for (int i = 0; i < splits.size(); i++) { def index = i // fresh variable per iteration; i will be mutated branches["split${i}"] = { node("node-name") { deleteDir() unstash '{env.BRANCH_NAME}' def exclusions = splits.get(index); sh './script/test-queue test/{models,othertests}/**/*.rb"' // unit tests to execute junit '**/*.xml' } } } parallel branches--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/e57b2ab6-84c1-4427-a56e-b3e6983a4e0f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.