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

WorkflowJob not reliably started from ReverseBuildTrigger after restart

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Pipeline projects are sometimes not triggered when using Build after other projects are built -> Projects to watch under a restart.

      To re-produce the issue, you need to create three projects:

      • test-a: simple freestyle project without anything
      • test-b: pipeline-project with Build after other projects are built -> Projects to watch: test-a
      • test-c: simple freestyle project with Build after other projects are built -> Projects to watch: test-a

      Then, without the build-failure-analyzer plugin installed build several times test-a and you see that test-b and test-c are correctly triggered. Restart the instance several times and re-test - everything works.

      Now, install build-failure-analyzer plugin - latest release or previous ones as I can re-produce with several ones - restart the instance and build test-a, now test-b might not be triggered. If it is triggered, restart the instance and build test-a until test-b doesn't get triggered.

      I did the effort of change on the code all AbstractBuild per Run and AbstractProject per Job on the buildAnalizer plugin, but the problem is still reproducible.

        Attachments

          Issue Links

            Activity

            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Jesse Glick
            Path:
            core/src/main/java/jenkins/triggers/ReverseBuildTrigger.java
            http://jenkins-ci.org/commit/jenkins/1618270f6ced8d2760c3df632ea783fa73096af2
            Log:
            [FIXED JENKINS-33971] ReverseBuildTrigger.upstream2Trigger was not being reliably calculated during Jenkins startup.

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: core/src/main/java/jenkins/triggers/ReverseBuildTrigger.java http://jenkins-ci.org/commit/jenkins/1618270f6ced8d2760c3df632ea783fa73096af2 Log: [FIXED JENKINS-33971] ReverseBuildTrigger.upstream2Trigger was not being reliably calculated during Jenkins startup.
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Jesse Glick
            Path:
            core/src/main/java/jenkins/triggers/ReverseBuildTrigger.java
            http://jenkins-ci.org/commit/jenkins/14d36c7dcd79ae0f37304b958f4c55cd190d3344
            Log:
            Merge pull request #2207 from jglick/ReverseBuildTrigger-JENKINS-33971

            JENKINS-33971 ReverseBuildTrigger.upstream2Trigger cache fix

            Compare: https://github.com/jenkinsci/jenkins/compare/be8833cc6b0d...14d36c7dcd79

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: core/src/main/java/jenkins/triggers/ReverseBuildTrigger.java http://jenkins-ci.org/commit/jenkins/14d36c7dcd79ae0f37304b958f4c55cd190d3344 Log: Merge pull request #2207 from jglick/ReverseBuildTrigger- JENKINS-33971 JENKINS-33971 ReverseBuildTrigger.upstream2Trigger cache fix Compare: https://github.com/jenkinsci/jenkins/compare/be8833cc6b0d...14d36c7dcd79
            Hide
            dogfood dogfood added a comment -

            Integrated in jenkins_main_trunk #4539
            [FIXED JENKINS-33971] ReverseBuildTrigger.upstream2Trigger was not being (Revision 1618270f6ced8d2760c3df632ea783fa73096af2)

            Result = SUCCESS
            Jesse Glick : 1618270f6ced8d2760c3df632ea783fa73096af2
            Files :

            • core/src/main/java/jenkins/triggers/ReverseBuildTrigger.java
            Show
            dogfood dogfood added a comment - Integrated in jenkins_main_trunk #4539 [FIXED JENKINS-33971] ReverseBuildTrigger.upstream2Trigger was not being (Revision 1618270f6ced8d2760c3df632ea783fa73096af2) Result = SUCCESS Jesse Glick : 1618270f6ced8d2760c3df632ea783fa73096af2 Files : core/src/main/java/jenkins/triggers/ReverseBuildTrigger.java
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Jesse Glick
            Path:
            job/src/test/java/org/jenkinsci/plugins/workflow/ReverseBuildTriggerTest.java
            http://jenkins-ci.org/commit/workflow-job-plugin/9b098c6ef36e90433466ca0b40f8f5a689ffa74b
            Log:
            JENKINS-33971 Integration test for ReverseBuildTrigger.upstream2Trigger bug.
            Originally-Committed-As: d2e726274b919aa3492d195dc75bf39711df7c2b

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: job/src/test/java/org/jenkinsci/plugins/workflow/ReverseBuildTriggerTest.java http://jenkins-ci.org/commit/workflow-job-plugin/9b098c6ef36e90433466ca0b40f8f5a689ffa74b Log: JENKINS-33971 Integration test for ReverseBuildTrigger.upstream2Trigger bug. Originally-Committed-As: d2e726274b919aa3492d195dc75bf39711df7c2b
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Jesse Glick
            Path:
            core/src/main/java/jenkins/triggers/ReverseBuildTrigger.java
            http://jenkins-ci.org/commit/jenkins/28bc2ba67a29f879ee7b840b46f383281dd1fe8a
            Log:
            [FIXED JENKINS-33971] ReverseBuildTrigger.upstream2Trigger was not being reliably calculated during Jenkins startup.
            (cherry picked from commit 1618270f6ced8d2760c3df632ea783fa73096af2)

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: core/src/main/java/jenkins/triggers/ReverseBuildTrigger.java http://jenkins-ci.org/commit/jenkins/28bc2ba67a29f879ee7b840b46f383281dd1fe8a Log: [FIXED JENKINS-33971] ReverseBuildTrigger.upstream2Trigger was not being reliably calculated during Jenkins startup. (cherry picked from commit 1618270f6ced8d2760c3df632ea783fa73096af2)

              People

              • Assignee:
                jglick Jesse Glick
                Reporter:
                fbelzunc FĂ©lix Belzunce Arcos
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: