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

Block when Downstream breaks Block when Upstream

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved (View Workflow)
    • Major
    • Resolution: Fixed
    • core
    • None

    Description

      If a project has both "Block build when upstream project is building" and "Block build when downstream project is building" selected, it will only block when downstream projects are building.

      Example:
      ProjectA -> ProjectB and both have "Block build when upstream project is building" and "Block build when downstream project is building" selected.

      If ProjectB is running and ProjectA is launched, ProjectA blocks as expected.
      If ProjectA is running and ProjectB is launched, Project B does not block. It does not respect the "Block when upstream project is building" option.

      Attachments

        Activity

          In addition to above, if both projects are queued at the same time (SCM trigger or similar), Project B will be built first.

          piranhaj James Bengeyfield added a comment - In addition to above, if both projects are queued at the same time (SCM trigger or similar), Project B will be built first.

          Code changed in jenkins
          User: Kohsuke Kawaguchi
          Path:
          changelog.html
          core/src/main/java/hudson/model/AbstractProject.java
          http://jenkins-ci.org/commit/core/3f9e65d825770e47bbfd76c77c17a0c4dae6844e
          Log:
          [FIXED JENKINS-8968] When both "block build when upstream/downstream is building" are checked,the upstream block check wasn't taking effect.

          Compare: https://github.com/jenkinsci/jenkins/compare/4e9c9bd...3f9e65d

          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Kohsuke Kawaguchi Path: changelog.html core/src/main/java/hudson/model/AbstractProject.java http://jenkins-ci.org/commit/core/3f9e65d825770e47bbfd76c77c17a0c4dae6844e Log: [FIXED JENKINS-8968] When both "block build when upstream/downstream is building" are checked,the upstream block check wasn't taking effect. Compare: https://github.com/jenkinsci/jenkins/compare/4e9c9bd...3f9e65d
          dogfood dogfood added a comment -

          Integrated in jenkins_main_trunk #592
          [FIXED JENKINS-8968] When both "block build when upstream/downstream is building" are checked,the upstream block check wasn't taking effect.

          Kohsuke Kawaguchi : 3f9e65d825770e47bbfd76c77c17a0c4dae6844e
          Files :

          • core/src/main/java/hudson/model/AbstractProject.java
          • changelog.html
          dogfood dogfood added a comment - Integrated in jenkins_main_trunk #592 [FIXED JENKINS-8968] When both "block build when upstream/downstream is building" are checked,the upstream block check wasn't taking effect. Kohsuke Kawaguchi : 3f9e65d825770e47bbfd76c77c17a0c4dae6844e Files : core/src/main/java/hudson/model/AbstractProject.java changelog.html

          Code changed in jenkins
          User: Kohsuke Kawaguchi
          Path:
          changelog.html
          core/src/main/java/hudson/model/AbstractProject.java
          http://jenkins-ci.org/commit/jenkins/34fde3048316040fdb7e859eea3a0af24dd4ac85
          Log:
          [FIXED JENKINS-8968] When both "block build when upstream/downstream is building" are checked,the upstream block check wasn't taking effect.

          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Kohsuke Kawaguchi Path: changelog.html core/src/main/java/hudson/model/AbstractProject.java http://jenkins-ci.org/commit/jenkins/34fde3048316040fdb7e859eea3a0af24dd4ac85 Log: [FIXED JENKINS-8968] When both "block build when upstream/downstream is building" are checked,the upstream block check wasn't taking effect.

          People

            Unassigned Unassigned
            klivian klivian
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: