79378854

Date: 2025-01-22 18:21:59
Score: 1
Natty:
Report link

The solution was to use a node, instead of a stage.

def stagesMap = [:]
for (int i = 1; i < 3; i++) {
    stagesMap[testName] = {
        node('nodeNameOrLabel') { //use node here instead of stage.
            script {
                someFunctionCall()
            }
        }
    }
}
parallel stagesMap
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Tim