Skip to content

Commit

Permalink
[FIXED JENKINS-25064] Instead of constructing the toollocation key, j…
Browse files Browse the repository at this point in the history
…ust use the existing descriptor
  • Loading branch information
mrdfuse committed Oct 9, 2014
1 parent 30ee1f1 commit 73da69a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions plugin/src/main/java/hudson/plugins/swarm/PluginImpl.java
Expand Up @@ -90,11 +90,10 @@ private List<ToolLocation> parseToolLocations(String toolLocations) {
for (ToolInstallation inst : desc.getInstallations()) {
if (inst.getName().equals(toolLoc[0])) {
found = true;

String key = inst.getClass().getCanonicalName().toString() + "$DescriptorImpl@" + inst.getName();

String location = toolLoc[1];

ToolLocationNodeProperty.ToolLocation toolLocation = new ToolLocationNodeProperty.ToolLocation(key, location);
ToolLocationNodeProperty.ToolLocation toolLocation = new ToolLocationNodeProperty.ToolLocation(desc, inst.getName(), location);
result.add(toolLocation);
}
}
Expand Down

0 comments on commit 73da69a

Please sign in to comment.