Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

2
  • 1
    The each method doesn't work in the pipeline due to CPS transformation. Use a for-in loop instead: for(server in servers.split(',')) {…}. Alternatively use @NonCPS annotation, see example. Commented Feb 11, 2023 at 10:33
  • Does this answer your question? Why an each loop in a Jenkinsfile stops at first iteration Commented Feb 11, 2023 at 10:39