Send deployment environment as parameter from Octopus to TeamCity?

I want to send parameters from Octopus to TeamCity. Based on the environment we deploy to; suppose Deploy to environment A > Run unit tests on TeamCity on environment A.
Similarly, if we are deploying code to UAT > Run TeamCity tests on UAT

Hi Ashwin,

Thanks for getting in touch! Sorry for the delay in getting back to you here. I think I have something which should help you out here.

Below is a link to a Community Step Template which will allow you to run a build from TeamCity and pass through parameters. Since this is added as a step in Octopus, you can put in any variables from your Octopus deployment. Things like Output Variables, or System Variables. (Or just regular Project Variables.)

Does this look like what you are after here?

The alternative option would be to write a custom script which you can run during your deployment to interact with TeamCity via the API.

Does this look like what you are after?

If you have any questions here or run into any issues, please let me know. :slight_smile:

Looking forward to hearing from you.

Best regards,

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.