Skip to content

Commit

Permalink
Support for concurrent builds in claim integration
Browse files Browse the repository at this point in the history
[FIXED JENKINS-12661]
  • Loading branch information
davidparsson authored and david-resnick committed Sep 22, 2013
1 parent b5b477c commit 6c8ab01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/hudson/model/JobViewEntry.java
Expand Up @@ -412,7 +412,7 @@ public String getClaim() {
if (Hudson.getInstance().getPlugin("claim") != null) {
claim = NOT_CLAIMED;
Run lastBuild = job.getLastBuild();
if (lastBuild != null && lastBuild.isBuilding()) {
while (lastBuild != null && lastBuild.isBuilding()) {
// claims can only be made against builds once they've finished,
// so check the previous build if currently building.
lastBuild = lastBuild.getPreviousBuild();
Expand Down

0 comments on commit 6c8ab01

Please sign in to comment.