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

Variables used as node labes are not expanded in parameterized builds

    XMLWordPrintable

Details

    • Bug
    • Status: Reopened (View Workflow)
    • Critical
    • Resolution: Unresolved
    • core
    • None

    Description

      Our build process is split into several parameterized jobs. To make sure that these build steps are executed on a specific node, we defined a parameter with the node name the job should be executed on. Unfortunately the variable doesn't get expanded.

      Proposed solution:

      Values entered as labels should be expanded.

      Attachments

        Issue Links

          Activity

            knightsg Guy Knights added a comment -

            We also have this requirement, using variables as content for the node label. The NodeLabel parameter plugin is not a solution as it also doesn't allow the use of variables as the default parameter value, the string entered has to match an existing node name.

            knightsg Guy Knights added a comment - We also have this requirement, using variables as content for the node label. The NodeLabel parameter plugin is not a solution as it also doesn't allow the use of variables as the default parameter value, the string entered has to match an existing node name.

            Hello everyone,

            Plus one vote for this option from my side. I have jenkins swarm slaves in Docker ran dynamically and  I need some functional to send build to exact node started for it. Using variables in node label would be really helpful in this task.

            sgordienko Sergey Gordienko added a comment - Hello everyone, Plus one vote for this option from my side. I have jenkins swarm slaves in Docker ran dynamically and  I need some functional to send build to exact node started for it. Using variables in node label would be really helpful in this task.
            rodee rode ed added a comment -

            +1 from me, in my case, upstream jobs decides where to run the donwstream job, this feature will be very useful.

            rodee rode ed added a comment - +1 from me, in my case, upstream jobs decides where to run the donwstream job, this feature will be very useful.
            moswal Mehul Oswal added a comment - - edited

            +1 from me too, This would be useful functionality in lots of different scenarios where we need to get the value of the label dynamically.

            moswal Mehul Oswal added a comment - - edited +1 from me too, This would be useful functionality in lots of different scenarios where we need to get the value of the label dynamically.

            I would also need this functionality. It would be great to have it fixed.

            bergstenarn Anders Bergsten added a comment - I would also need this functionality. It would be great to have it fixed.

            People

              Unassigned Unassigned
              compi Maik Richey
              Votes:
              11 Vote for this issue
              Watchers:
              18 Start watching this issue

              Dates

                Created:
                Updated: