I have a build plan to deploy unix scripts to different environments.
Currently it is set up with a capability (Job; Requirements) such that the inline task scripts run with a dev user and on a dev server.
What I want to be able to do is when deploying to Test or Prod I want to run the inline task scripts using a different capability (different user/server).
If I set up multiple capabilities, is it possible to pass in the capability (bamboo_capability_host I believe) on the curl command that triggers the Build Queue Service https://sdlc/bamboo/rest/api/latest/queue/[Bamboo Plan Name]?
Or do I need a different build plan for each capability?
Any help gratefully received. I am new to Bamboo and I've tried to find the answer in the documentation but can't find anything specific to this.