Skip to content

Commit

Permalink
[FIXED JENKINS-8968] When both "block build when upstream/downstream …
Browse files Browse the repository at this point in the history
…is building" are checked,the upstream block check wasn't taking effect.
  • Loading branch information
kohsuke committed Mar 15, 2011
1 parent b497728 commit 3f9e65d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions changelog.html
Expand Up @@ -60,6 +60,9 @@
<!-- Record your changes in the trunk here. -->
<div id="trunk" style="display:none"><!--=TRUNK-BEGIN=-->
<ul class=image>
<li class=bug>
When both "block build when upstream/downstream is building" are checked, the upstream block check wasn't taking effect.
(<a href="http://issues.jenkins-ci.org/browse/JENKINS-8968">issue 8968</a>)
<li class=rfe>
Added the <tt>--mimeTypes</tt> command line option to define additional MIME type mappings.
<li class=rfe>
Expand Down
3 changes: 2 additions & 1 deletion core/src/main/java/hudson/model/AbstractProject.java
Expand Up @@ -1057,7 +1057,8 @@ public CauseOfBlockage getCauseOfBlockage() {
AbstractProject<?,?> bup = getBuildingDownstream();
if (bup!=null)
return new BecauseOfDownstreamBuildInProgress(bup);
} else if (blockBuildWhenUpstreamBuilding()) {
}
if (blockBuildWhenUpstreamBuilding()) {
AbstractProject<?,?> bup = getBuildingUpstream();
if (bup!=null)
return new BecauseOfUpstreamBuildInProgress(bup);
Expand Down

0 comments on commit 3f9e65d

Please sign in to comment.