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

Key: QB-2875
Type: New Feature New Feature
Status: Closed Closed
Resolution: Won't Fix
Priority: Minor Minor
Assignee: Robin Shen
Reporter: Shawn Castrianni
Votes: 0
Watchers: 0
Operations

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

New variable prompt

Created: 12/Jan/17 03:08 PM   Updated: 25/Jan/18 08:52 AM
Component/s: None
Affects Version/s: None
Fix Version/s: None

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


 Description  « Hide
Please add a new variable prompt type like, "prompt as agent/node picker" so that I can add a variable prompt in a promotion to allow the user to choose which build agent to run the promotion on. I use this for when I use QB to deploy a server build onto a server. I install a build agent on the server and then have it run the promotion step which installs the server build. So the user can just drop down the selection and choose from all the build agents to run the master step of the promotion configuration.

An added feature in this new variable prompt is to fill up the agent/node picker list with only agents that meet some criteria. Like maybe I have 30 build agents but only 2 are actual servers that can be deployed to. I would want the agent/node pick list during promotion to only give the user a choice of those 2 build agents, not all 30.

 All   Comments   Work Log   Change History      Sort Order:
Robin Shen [25/Jan/18 08:52 AM]
This can be achieved by using "prompt as selection box" type, and specifying selections something like below:
${groovy:
def selections = "";
for (node in grid.allNodes) {
  if (node.isAgent())
    selections.add(node.address + ", ");
\}
}

You may further customize the script to check other conditions if necessary