Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-37789

Pipeline Config: No obvious way to specify "run on any node"

XMLWordPrintable

      If you want to run on a node but don't care where, you need to specify:

      agent label:""
      

      or

      node("") ...
      

      node (with no parameter, just a closure) is not permitted. That's deliberately blocked by the declarative subset logic.

      I don't know if we can do anything about the node use case, but maybe we should create a special bareword (like none for running on any node - i.e., something like agent label: any? Not sure yet.

            abayer Andrew Bayer
            abayer Andrew Bayer
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: