There was an error while loading. Please reload this page.
2 parents 2e961f3 + 745f09f commit efde8a5Copy full SHA for efde8a5
pipeline-examples/trigger-job-on-all-nodes/triggerJobOnEveryNode.groovy
@@ -23,5 +23,5 @@ parallel branches
23
// This method collects a list of Node names from the current Jenkins instance
24
@NonCPS
25
def nodeNames() {
26
- return jenkins.model.Jenkins.instance.nodes.collect { it.name }
+ return jenkins.model.Jenkins.instance.nodes.collect { node -> node.name }
27
}
0 commit comments