Skip to content

Commit

Permalink
Extracted label strings to Constants file
Browse files Browse the repository at this point in the history
- Modified the API to use label strings from Constants.groovy
- Added setDescription function

issue adoptium#2

Signed-off-by: Shubham Verma <[email protected]>
  • Loading branch information
VermaSh committed Apr 11, 2018
1 parent ac19260 commit 5529631
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions src/NodeHelper.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -856,26 +856,6 @@ class NodeHelper {
return ret;
}

/**
* Sets the machine description from jenkins
*
* @param compterName computer whose location is needed
* @param description the new updated description
*
* @return machine description as string
*/
public String setDescription(String computerName, String description) {
String ret = "setDescription:COMPUTER_NOT_FOUND";

Computer computer = getComputer(computerName);
if (computer != null) {
computer.getNode().setNodeDescription(description);
ret = getDescription(computerName);
}

return ret;
}

/**
* Gets cpu count via exec on the computer passed
* in.
Expand Down

0 comments on commit 5529631

Please sign in to comment.