History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: QB-1059
Type: Improvement Improvement
Status: Closed Closed
Resolution: Won't Fix
Priority: Major Major
Assignee: Robin Shen
Reporter: Robin Shen
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
QuickBuild

Set grid node attribute via RESTful API and script

Created: 27/Sep/11 12:25 AM   Updated: 28/Sep/11 03:14 AM
Component/s: None
Affects Version/s: 3.1.61
Fix Version/s: None

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown


 All   Comments   Work Log   Change History      Sort Order:
Robin Shen [28/Sep/11 03:14 AM]
Sorry this is already possible in QB3.1, to modify an user attribute, please run below script in a step on QB server:

[code]groovy:
def node = grid.getNode("matrix:8811");
def userAttributes = node.userAttributes;
userAttributes.put("attribute1", "value1");
node.setUserAttributes(userAttributes, true);[/code]

You may also read the user attributes from an external file and parse it to construct a Groovy map, then call method node.setUserAttributes(map, true);

Change by Robin Shen [28/Sep/11 03:14 AM]
Field Original Value New Value
Status Open [ 1 ] Closed [ 6 ]
Resolution Won't Fix [ 2 ]