We have a Bamboo plan that is used to create tenancies in an application. The same plan can be used to create tenancies in Model or Prod.
We have separate agents for Model & Prod. We want a way to select the agent based on an input variable when the plan is triggered.
Welcome to the Community!
Can you provide a bit more information about what makes the agents for Model & Prod different and what build tasks they are performing differently?
I'm almost wondering if what you really need is a deployment project instead of an input variable, any more information you can provide about what is being done would be helpful.
Thanks James for the response. Below are the details.
The main difference between Model & Prod agent is that they are in different networks. Model agent connects to Model environment and Prod agent to Prod environment. Please note both the environment constitutes of same set of applications (though different instances).
With regard to tasks also they are doing exactly the same thing in Model & Production. Just for reference the plan triggers an Ansible playbook which connects to multiple interfacing applications to manage tenancies. From build perspective the only difference is the endpoint used by respective agents the tasks the are same.
Ok based on your response you should look at using a Deployment Project instead of a Build Plan.
Here's a link to the documentation on what deployment projects are:
In a nutshell, this will allow you to setup multiple "environments" (in your case Model & Prod) you can then provide a list of tasks you wish to have run when deploying to that environment (which includes things like checking out configs from source code, downloading built artifacts, running scripts, copying files, etc.)
You can also assign agents to environments (which is exactly the piece you are looking for) where you get to decide which agent is capable of executing the set of tasks for a given environment.
I hope that helps answer your question!
We’re preparing for Bamboo 8.0, which will be our first Data Center release. To make sure our app vendors and customers with written in-house apps are prepared, we’re launching Bamboo 8.0 Early Acces...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events