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

Predefined parameters on a post-join build are evaluated by a child job rather than parent

      I have a diamond build setup that runs across several machines. The first job runs on the parent node, then kicks off jobs on multiple child nodes, as well as on itself...then a join build is done on a grandchild node.
      I have a list of predefined parameters, one of which recently failed on me unexpectedly:
      TIMESTAMP=${BUILD_ID}_${NODE_NAME}

      I expect these predefined parameters to evaluate on the parent node, where they are configured (this is how they are evaluated on the pass-off to its children). However, I just witnessed a grandchild build (during the join action) evaluate these environment variables from a child node (The build_id and node_names were changed to that of a child job). I'm guessing it was evaluated from the last job/node to finish, but that wouldn't exactly explain all the other times this has worked correctly.

          [JENKINS-12686] Predefined parameters on a post-join build are evaluated by a child job rather than parent

          assigning it to the parameterized-trigger plugin, because the nodelabel plugin does not evaluate any variables

          Dominik Bartholdi added a comment - assigning it to the parameterized-trigger plugin, because the nodelabel plugin does not evaluate any variables

          ikedam added a comment -

          Please let me know how I can reproduce the problem.

          • configurations of jobs
          • expected behavior
          • actual behavior

          I know it doesn't always happen. I want to have a detailed example configuration.

          ikedam added a comment - Please let me know how I can reproduce the problem. configurations of jobs expected behavior actual behavior I know it doesn't always happen. I want to have a detailed example configuration.

          ikedam added a comment -

          Cannot test the bahavior without a detailed report even it does not always reproduce.
          Please reopen the ticket if you can report details to reproduce.

          ikedam added a comment - Cannot test the bahavior without a detailed report even it does not always reproduce. Please reopen the ticket if you can report details to reproduce.

            huybrechts huybrechts
            mconlon Michael Conlon
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: