Skip to content

Commit

Permalink
Merge pull request #5 from zihaoyu/develop
Browse files Browse the repository at this point in the history
Fix tests failures
  • Loading branch information
Hornswoggles committed Mar 20, 2014
2 parents 3421a91 + cc0da5a commit 5284d6d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
*.iml
*.ipr
*.iws
.idea
target
work
# eclipse =>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
public class ThrottleQueueTaskDispatcher extends QueueTaskDispatcher {

@Override
public CauseOfBlockage canTake(Node node, Task task) {
public CauseOfBlockage canTake(Node node, Queue.BuildableItem item) {
Task task = item.task;
if (task instanceof MatrixConfiguration) {
return null;
}
Expand Down Expand Up @@ -89,7 +90,7 @@ else if (tjp.getThrottleOption().equals("category")) {
return null;
}

// @Override on jenkins 4.127+ , but still compatible with 1.399
// @Override on jenkins 1.427+ , but still compatible with 1.399
public CauseOfBlockage canRun(Queue.Item item) {
ThrottleJobProperty tjp = getThrottleJobProperty(item.task);
if (tjp!=null && tjp.getThrottleEnabled()) {
Expand Down Expand Up @@ -188,7 +189,7 @@ private boolean isAnotherBuildWithSameParametersRunningOnNode(Node node, Queue.I
if (exec.getCurrentExecutable() != null &&
exec.getCurrentExecutable().getParent() != null &&
exec.getCurrentExecutable().getParent().getOwnerTask() != null &&
exec.getCurrentExecutable().getParent().getOwnerTask().getName() == item.task.getName()) {
exec.getCurrentExecutable().getParent().getOwnerTask().getName().equals(item.task.getName())) {
List<ParameterValue> executingUnitParams = getParametersFromWorkUnit(exec.getCurrentWorkUnit());
executingUnitParams = doFilterParams(paramsToCompare, executingUnitParams);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ private String configureLogger()
input.setValueAttribute(logger);
}
HtmlSelect select = form.getSelectByName("level");
HtmlOption option = select.getOptionByValue("fine");
HtmlOption option = select.getOptionByValue("FINE");
select.setSelectedAttribute(option, true);
break;
}
Expand Down

0 comments on commit 5284d6d

Please sign in to comment.