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

extend node to return a list of all matching nodes

    • Icon: New Feature New Feature
    • Resolution: Won't Fix
    • Icon: Blocker Blocker
    • pipeline
    • None

      To effectively deploy an application in our CI I need to be able to schedule a job on all nodes a label. Currently I see no way to achieve this without knowing all node names in advance and hardcoding them (for me that would be about 40).

      example usage:

      node('ci-server').each {
        // deploy application to all servers that participate in the testing
        // one would probably collect nodes here and then execute the jobs in parallel later - or directly here
       // also the argument to this function needs to give access to the node name and the labels at a minimum
       // I may even not want some nodes like in a feature branch that removed support for a platform I want to be able to check the node and probably ignore it
      }
      

            jglick Jesse Glick
            cobexer Ing. Christoph Obexer
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: