Unable to find source-code formatter for language: groovy. Available languages are: actionscript, html, java, javascript, none, sql, xhtml, xml
// List of tuples with (taskName, executorCount)
def heavyTasks = [('task1', 2), ('task2', 3), ('task3', 8)]
def tasks = [:]
for (x in heavyTasks) {
def task = x
tasks[task] = {
node executors: task[1] {
sh 'heavyThreadedTaskGoesHere'
}
}
}
stage("RunTasks") {
parallel tasks
}