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

wrong node chosen for downstream job if upstream job uses nodelabelparameter

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Environment:
    • Similar Issues:

      Description

      Hi,

       

      Issue: wrong node chosen for downstream job if upstream job uses nodelabelparameter.

       

      Sample:

      Main job "A" has "This project is parameterized" with "Label=allnodes".

      Also main job "A" has a Build "Trigger/call builds on other projects" which triggers job "B" passing "Current build parameters".

      Job "B" has "This project is parameterized" disabled and "Restrict where this project can be run = supernode".

       

      Result:

      Job A always executed on nodes with label "allnodes" -> OK.

      Job B also executes on nodes with label "allnodes" -> WRONG.

      IMHO, job B should respect "This project is parameterized" and be executed on "supernode" because it has disabled "This project is parameterized".

       

      P.S. I am not sure which plugin is guilty here, while I suspect nodelabelparameter-plugin here, as we are just trying using it now and we are using parameterized-trigger-plugin for a years without any issues.

      Thank you for the reply here!

       

       

        Attachments

          Activity

          Hide
          taurus Alex Lutay added a comment -

          Any hints here how to make it fixed locally or at least workarounded?
          Maybe some other plugin can provide proper nodelabel functionality here?
          Thank you!

          Show
          taurus Alex Lutay added a comment - Any hints here how to make it fixed locally or at least workarounded? Maybe some other plugin can provide proper nodelabel functionality here? Thank you!
          Hide
          taurus Alex Lutay added a comment -

          Dominik, Can you please share some possible workaround here,

          maybe you need additional debug or more details steps to reproduce?

          At the moment is is impossible to use nodelabelparameter with the downstream jobs at all

          Tnx in advance!

          Show
          taurus Alex Lutay added a comment - Dominik, Can you please share some possible workaround here, maybe you need additional debug or more details steps to reproduce? At the moment is is impossible to use nodelabelparameter with the downstream jobs at all Tnx in advance!

            People

            • Assignee:
              domi Dominik Bartholdi
              Reporter:
              taurus Alex Lutay
            • Votes:
              2 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: