teamcityrackspace-cloud

Authorising team city build agents automatically in the cloud


We use rackspace as our cloud provider and spin up new build agents as and when needed from existing server images.

Team city then detects the build agent image but does not authorise it automatically.

Can you tell me how to authorise the build agents without the need to manually go to team city and click authorise as these servers can spin up different flavors, each with different config.

Do I just need to write the correct authorisation key to the build agent config file or is there a better approach to using team city with cloud servers?


Solution

  • The approach that worked for me was to store the unique authorisation code that is written to the build agent config file and then pass this into the team city build step. The build step then updates the build agent config file using powershell and the build agent is authorised, when it next communicates with the team city server.