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

Allow "Possible Nodes" in a Node parameter to be based on a label expression

    XMLWordPrintable

Details

    Description

      I have jobs that should only be executed on slaves matching a specific label expression, BUT with the possibility to select a specific slave within this label expression (so a Label parameter instead of a Node parameter is not an option here).

      I could be settings the "Possible nodes" in the Node parameter to only those matching my label expression, but my pool of slaves changes quite frequently. When a slave is added or removed from the pool, it would take a long time to edit all my jobs to add/remove this slave.

      A solution would be to add a "Allowed label expression" field to the Node parameter, that would show only the slaves matching this label expression when launching the job.

      Attachments

        Issue Links

          Activity

            clement_denis Clément Denis created issue -

            This pull request contains a proposed implementation for this feature.

            clement_denis Clément Denis added a comment - This pull request contains a proposed implementation for this feature.
            clement_denis Clément Denis made changes -
            Field Original Value New Value
            Remote Link This issue links to "Pull Request #2 (Web Link)" [ 10604 ]

            I just released the 1.5.0-beta an alternative solution for this, feedback very welcome: https://wiki.jenkins-ci.org/display/JENKINS/NodeLabel+Parameter+Plugin#NodeLabelParameterPlugin-1.5.0beta%2816.Jan2014%29

            domi Dominik Bartholdi added a comment - I just released the 1.5.0-beta an alternative solution for this, feedback very welcome: https://wiki.jenkins-ci.org/display/JENKINS/NodeLabel+Parameter+Plugin#NodeLabelParameterPlugin-1.5.0beta%2816.Jan2014%29
            rtyler R. Tyler Croy made changes -
            Workflow JNJira [ 151991 ] JNJira + In-Review [ 178141 ]
            markewaite Mark Waite made changes -
            Assignee Dominik Bartholdi [ domi ]

            People

              Unassigned Unassigned
              clement_denis Clément Denis
              Votes:
              4 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated: