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 Apr 7, 2011
1 parent f54668f commit 34fde30
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
21 changes: 21 additions & 0 deletions changelog.html
Expand Up @@ -58,6 +58,27 @@
<!-- 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>
Added a new axis type to the matrix project that lets you use boolean expressions
(<a href="https://github.com/jenkinsci/jenkins/pull/66">pull request #66</a>)
</ul>
</div><!--=TRUNK-END=-->

<!-- these changes are controlled by the release process. DO NOT MODIFY -->
<div id="rc" style="display:none;"><!--=BEGIN=-->
<h3><a name=v1.402>What's new in 1.402</a> <!--=DATE=--></h3>
<ul class=image>
<li class='major bug'>
Fixed a race condition in the remote data transfer that results in silent file copy failures.
(<a href="http://issues.jenkins-ci.org/browse/JENKINS-7871">issue 7871</a>)
<li class=bug>
Maven Plugin : Successful build ends with NPE
(<a href="http://issues.jenkins-ci.org/browse/JENKINS-8436">issue 8436</a>)
<li class=bug>
Fixed a deadlock when upstream and downstream jobs are blocked on each other
(<a href="http://issues.jenkins-ci.org/browse/JENKINS-8929">issue 8929</a>)
Expand Down
3 changes: 2 additions & 1 deletion core/src/main/java/hudson/model/AbstractProject.java
Expand Up @@ -1054,7 +1054,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 34fde30

Please sign in to comment.