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

Need to get the name and number of ALL triggered builds (multiple triggered builds)

      Created this issue by cloning JENKINS-11345, which it is similar to.

      JENKINS-11345 handles the case where you only care about the last triggered build or if you only trigger 1 build. If you are triggering multiple builds, you might want to know about all of them. In particular, the case we have is that we are triggering multiple instances of the same worker job concurrently (with different parameters). After blocking, in a later build step, we need to copy artifacts from all triggered builds so that we can create the test results. We can't just copy artifacts from the last completed build because other triggering jobs are using this same worker job.

          [JENKINS-12488] Need to get the name and number of ALL triggered builds (multiple triggered builds)

          Brian Parker added a comment -

          I will submit a pull request. I was thinking of a different environment variable that would list the build tags of all triggered builds. For example:

          TRIGGERED_BUILD_TAGS=jenkins-JobA-24,jenkins-JobB-42,jenkins-JobA-27

          If we have this, it isn't clear to me if the variables added by JENKINS-11345 are still needed or not? Anyway, I plan to leave those alone.

          Brian Parker added a comment - I will submit a pull request. I was thinking of a different environment variable that would list the build tags of all triggered builds. For example: TRIGGERED_BUILD_TAGS=jenkins-JobA-24,jenkins-JobB-42,jenkins-JobA-27 If we have this, it isn't clear to me if the variables added by JENKINS-11345 are still needed or not? Anyway, I plan to leave those alone.

          Brian Parker added a comment -

          Brian Parker added a comment - Pull request submitted - https://github.com/jenkinsci/parameterized-trigger-plugin/pull/14

          Brian Parker added a comment -

          Brian Parker added a comment - New pull request - https://github.com/jenkinsci/parameterized-trigger-plugin/pull/16

          cjo9900 added a comment -

          Added in 2.17 which lists all triggered projects and all builds for a particular project.
          See the help for block item for details.

          cjo9900 added a comment - Added in 2.17 which lists all triggered projects and all builds for a particular project. See the help for block item for details.

            cjo9900 cjo9900
            parker21 Brian Parker
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: