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

Key: QB-820
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Robin Shen
Reporter: Gary Shurgin
Votes: 0
Watchers: 0
Operations

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

Node selection script has incorrect node value

Created: 28/Jan/11 04:29 PM   Updated: 29/Jan/11 03:35 AM
Component/s: None
Affects Version/s: 3.1.18
Fix Version/s: None

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown
Environment: Linux-x86-64


 Description  « Hide
When creating a trigger step, select the option under 'Node selection' for 'specified script evaluates to true'.
According to the information below the input box, the 'node' variable should be set to the grid node being tested.

I will have multiple agents specified, and I want this step to run on a specific agent.
I do not want to have to worry about the port number, that is required in the 'On a specific agent' selection.

I put the following lines in my script, and got the following results

script:
${logger.info(node.getHostName())}
false

results:
<name of server>
<name of server>

I was expecting one of the iterations to have the name of my agent in the results.

 All   Comments   Work Log   Change History      Sort Order:
Robin Shen [29/Jan/11 03:35 AM]
Please do not enclose the script within ${...} for all script fields. That is, change the field to take this value:

logger.info(node.getHostName());
return false;

With this change, you will see QuickBuild iterating all available nodes.