<< Back to previous view |
[QB-820] Node selection script has incorrect node value
|
|
Status: | Resolved |
Project: | QuickBuild |
Component/s: | None |
Affects Version/s: | 3.1.18 |
Fix Version/s: | None |
Type: | Bug | Priority: | Major |
Reporter: | Gary Shurgin | Assigned To: | Robin Shen |
Resolution: | Fixed | Votes: | 0 |
Remaining Estimate: | Unknown | Time Spent: | Unknown |
Original Estimate: | Unknown | ||
Environment: | Linux-x86-64 |
Description |
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. |
Comments |
Comment by 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. |