Skip to content
Permalink
Browse files
Support for concurrent builds in claim integration
[FIXED JENKINS-12661]
  • Loading branch information
davidparsson authored and david-resnick committed Sep 22, 2013
1 parent b5b477c commit 6c8ab010ae7cd39396c878e8416d40adc5a35775
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/main/java/hudson/model/JobViewEntry.java
@@ -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();

0 comments on commit 6c8ab01

Please sign in to comment.