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

Guessed downstream build # in console log can be wrong in Parameterized Trigger Plugin

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      To reproduce:

      1. Create a job ("A") that does nothing.
      2. Create another job ("B") that does nothing.
      3. In B's configure page, click "Add post-build action", then click "Trigger parameterized build on other projects".
      4. In "Projects to build", type "A".
      5. (My build used parameters, so if the above doesn't reproduce the issue, add some parameters to A and add "Predefined parameters" and type "X=Y" for each X=a parameter you added.)
      6. Repeat steps 2 through 5 two more times, so A will invoke B three times.
      7. Run A.

      Expected Results:
      A's console output should indicate that it started B three times, and each instance should be +1 from the previous.

      Actual Results:
      A's console output indicates that it started B three times, but each instance number is the same.

        Attachments

          Issue Links

            Activity

            Hide
            danielbeck Daniel Beck added a comment -

            Unless waiting for the triggered build to actually begin, Parameterized Trigger cannot know the build number. The similar core issue JENKINS-16827 was resolved by completely removing the guessed build number, something that should probably be done here as well.

            Show
            danielbeck Daniel Beck added a comment - Unless waiting for the triggered build to actually begin, Parameterized Trigger cannot know the build number. The similar core issue JENKINS-16827 was resolved by completely removing the guessed build number, something that should probably be done here as well.
            Hide
            ikedam ikedam added a comment -

            @danielbeck is right.
            There seems no way to guess correct build #.
            It should be removed as confusing.

            Show
            ikedam ikedam added a comment - @danielbeck is right. There seems no way to guess correct build #. It should be removed as confusing.

              People

              • Assignee:
                huybrechts huybrechts
                Reporter:
                kbeal Ken Beal
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated: