Skip to content
Permalink
Browse files

After JENKINS-26391 we need to compare labels based on matching names…

… not instance identity
  • Loading branch information...
stephenc committed Mar 27, 2015
1 parent 384e025 commit 98605d0afb441f7953875097953e626128d31825
Showing with 2 additions and 1 deletion.
  1. +2 −1 core/src/main/java/hudson/model/Label.java
@@ -116,7 +116,8 @@ public int computeQueueLength() {

@Override
protected boolean matches(SubTask item) {
return item.getAssignedLabel() == Label.this;
final Label l = item.getAssignedLabel();
return l != null && Label.this.matches(l.name);
}
};
this.nodeProvisioner = new NodeProvisioner(this, loadStatistics);

0 comments on commit 98605d0

Please sign in to comment.
You can’t perform that action at this time.