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

Retain original build causes

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Naginator schedules new build with its own cause - NaginatorCause. However the job may depend on the (original) cause and this will make every subsequent build fail.

      One example is "Copy Artifact Plugin"s build selector "Upstream build that triggered this job". Since the upstream cause is not preserved, the plugin has no way to determine upstream build and any build scheduled with naginator will fail.

        Attachments

          Activity

          Hide
          grayaii Alex Gray added a comment -

          This bug has a side of effect of blocking: https://issues.jenkins-ci.org/browse/JENKINS-22210
          Here is the summary of that JIRA:
          =============
          Let's say you have a pipeline:
          A -> B -> C
          And B fails for whatever reason.

          "B" is automatically restarted via the "naginator" plugin and the build passes, it would be since to have the build pipeline reflect this.
          =============
          We display the build pipeline plugin on our TV dashboards.

          Show
          grayaii Alex Gray added a comment - This bug has a side of effect of blocking: https://issues.jenkins-ci.org/browse/JENKINS-22210 Here is the summary of that JIRA: ============= Let's say you have a pipeline: A -> B -> C And B fails for whatever reason. "B" is automatically restarted via the "naginator" plugin and the build passes, it would be since to have the build pipeline reflect this. ============= We display the build pipeline plugin on our TV dashboards.
          Hide
          patbos Patrik Boström added a comment -

          Created a pull request with a fix for this issue:
          https://github.com/jenkinsci/naginator-plugin/pull/4

          Show
          patbos Patrik Boström added a comment - Created a pull request with a fix for this issue: https://github.com/jenkinsci/naginator-plugin/pull/4
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Patrik Boström
          Path:
          src/main/java/com/chikli/hudson/plugin/naginator/NaginatorListener.java
          src/test/java/com/chikli/hudson/plugin/naginator/NaginatorListenerTest.java
          http://jenkins-ci.org/commit/naginator-plugin/c54ee58b4b03fb31a12bcb3668684985907fc0fe
          Log:
          JENKINS-20065 Retain original build causes

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Patrik Boström Path: src/main/java/com/chikli/hudson/plugin/naginator/NaginatorListener.java src/test/java/com/chikli/hudson/plugin/naginator/NaginatorListenerTest.java http://jenkins-ci.org/commit/naginator-plugin/c54ee58b4b03fb31a12bcb3668684985907fc0fe Log: JENKINS-20065 Retain original build causes
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Nicolas De loof
          Path:
          src/main/java/com/chikli/hudson/plugin/naginator/NaginatorListener.java
          src/test/java/com/chikli/hudson/plugin/naginator/NaginatorListenerTest.java
          http://jenkins-ci.org/commit/naginator-plugin/2bd688aa9568c8ed766c2951f273d350535f4b04
          Log:
          Merge pull request #4 from patbos/JENKINS-20065

          JENKINS-20065 Retain original build causes

          Compare: https://github.com/jenkinsci/naginator-plugin/compare/bb3bb9f5d405...2bd688aa9568

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Nicolas De loof Path: src/main/java/com/chikli/hudson/plugin/naginator/NaginatorListener.java src/test/java/com/chikli/hudson/plugin/naginator/NaginatorListenerTest.java http://jenkins-ci.org/commit/naginator-plugin/2bd688aa9568c8ed766c2951f273d350535f4b04 Log: Merge pull request #4 from patbos/ JENKINS-20065 JENKINS-20065 Retain original build causes Compare: https://github.com/jenkinsci/naginator-plugin/compare/bb3bb9f5d405...2bd688aa9568
          Hide
          grayaii Alex Gray added a comment -

          woo hoo! It looks like this will be in 1.11:
          https://github.com/jenkinsci/naginator-plugin/compare/naginator-1.10...master
          Out of curiosity, do you know when this will be publicly released?

          Show
          grayaii Alex Gray added a comment - woo hoo! It looks like this will be in 1.11: https://github.com/jenkinsci/naginator-plugin/compare/naginator-1.10...master Out of curiosity, do you know when this will be publicly released?
          Hide
          gposton1040 Glenn Poston added a comment -

          I'm really looking forward to this fix as well. Any idea when it will be available?

          Show
          gposton1040 Glenn Poston added a comment - I'm really looking forward to this fix as well. Any idea when it will be available?
          Hide
          galunto Tomer Galun added a comment -

          Thanks to Patrik - Fixed

          Show
          galunto Tomer Galun added a comment - Thanks to Patrik - Fixed

            People

            • Assignee:
              Unassigned
              Reporter:
              frantam Franta Mejta
            • Votes:
              3 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: