Key: |
QB-1059
|
Type: |
Improvement
|
Status: |
Closed
|
Resolution: |
Won't Fix
|
Priority: |
Major
|
Assignee: |
Robin Shen
|
Reporter: |
Robin Shen
|
Votes: |
0
|
Watchers: |
1
|
If you were logged in you would be able to see more operations.
|
|
|
QuickBuild
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
|
|
|
[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);