<< Back to previous view

[QB-2875] New variable prompt
Created: 12/Jan/17  Updated: 25/Jan/18

Status: Closed
Project: QuickBuild
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: New Feature Priority: Minor
Reporter: Shawn Castrianni Assigned To: Robin Shen
Resolution: Won't Fix Votes: 0
Remaining Estimate: Unknown Time Spent: Unknown
Original Estimate: Unknown


 Description   
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.

 Comments   
Comment by 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
Generated at Sat May 18 23:51:05 UTC 2024 using JIRA 189.