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

Link from triggering promotion to triggered build

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      When "Trigger a parameterized build" is used in a promotion step, there is no link to the parameterized build that was actually started.

      In the promotion, it looks like this following:

      Building on master in workspace /var/lib/jenkins/jobs/Main Build/workspace
      Promoting Main Build #222
      build hudson.plugins.parameterizedtrigger.BuildTrigger@25765df0 SUCCESS
      Marking build to keep forever.
      build hudson.plugins.promoted_builds.KeepBuildForeverAction@7e114ac6 SUCCESS
      Finished: SUCCESS

      The parameterized trigger succeeded, and the build started. But, in the build that is triggered, you get this:

      Started by upstream project "Main Build/promotion/Triggered Build" build number 32
      originally caused by: Legacy code started this job. No cause information is available

      There are no actual links between the build that was promoted, and the build that was triggered by the promotion.

      I think it would be very useful if there were links between the 2, in the same way that upstream / downstream builds are linked such that you can figure out which build caused another build.

        Attachments

          Issue Links

            Activity

            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: ikedam
            Path:
            pom.xml
            src/main/java/hudson/plugins/parameterizedtrigger/BlockableBuildTriggerConfig.java
            src/main/java/hudson/plugins/parameterizedtrigger/BuildTriggerConfig.java
            src/test/java/hudson/plugins/parameterizedtrigger/test/TriggerBuilderTest.java
            http://jenkins-ci.org/commit/parameterized-trigger-plugin/ce231ba84c0b2dbd9c1e2f3ce7995691744e55e2
            Log:
            Merge pull request #40 from ikedam/feature/JENKINS-17751-2

            JENKINS-17751 set upstream builds to original builds of promotions(improvement of #38)

            Compare: https://github.com/jenkinsci/parameterized-trigger-plugin/compare/a443010853f7...ce231ba84c0b

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: ikedam Path: pom.xml src/main/java/hudson/plugins/parameterizedtrigger/BlockableBuildTriggerConfig.java src/main/java/hudson/plugins/parameterizedtrigger/BuildTriggerConfig.java src/test/java/hudson/plugins/parameterizedtrigger/test/TriggerBuilderTest.java http://jenkins-ci.org/commit/parameterized-trigger-plugin/ce231ba84c0b2dbd9c1e2f3ce7995691744e55e2 Log: Merge pull request #40 from ikedam/feature/ JENKINS-17751 -2 JENKINS-17751 set upstream builds to original builds of promotions(improvement of #38) Compare: https://github.com/jenkinsci/parameterized-trigger-plugin/compare/a443010853f7...ce231ba84c0b
            Hide
            gregcovertsmith Greg Smith added a comment -

            @ikedam
            If you can attach a test version of the plugin here, I can install via the advanced menu and test.
            I do not have access to a build environment, but that would work for me.
            Thank you much for the effort.

            Show
            gregcovertsmith Greg Smith added a comment - @ikedam If you can attach a test version of the plugin here, I can install via the advanced menu and test. I do not have access to a build environment, but that would work for me. Thank you much for the effort.
            Hide
            gregcovertsmith Greg Smith added a comment -

            Sorry I did not see your original request for test – I got the new notifications on this issue report, and saw your previous comment.

            Show
            gregcovertsmith Greg Smith added a comment - Sorry I did not see your original request for test – I got the new notifications on this issue report, and saw your previous comment.
            Hide
            ikedam ikedam added a comment -

            @gregcovertsmith
            Thanks for your reply.
            My change is already merged in the source tree, and I'll release a new version.
            Please wait for a while.

            Show
            ikedam ikedam added a comment - @gregcovertsmith Thanks for your reply. My change is already merged in the source tree, and I'll release a new version. Please wait for a while.
            Hide
            ikedam ikedam added a comment -

            Released 2.19 containing fix for this issue.
            It should be available in a day.
            (It is said to be available in 6 hours, but I'm not sure.)

            Show
            ikedam ikedam added a comment - Released 2.19 containing fix for this issue. It should be available in a day. (It is said to be available in 6 hours, but I'm not sure.)

              People

              • Assignee:
                ikedam ikedam
                Reporter:
                gregcovertsmith Greg Smith
              • Votes:
                1 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: