In order to gain some continuity between local development and CI server environment we changed our CI strategy to running our build process from the confines of a MSBuild script rather than utilizing TeamCity plugin/task services.
Before this move we were using the dotCover service in TC to report code coverage metrics. I've changed this so we now have a MSBuild target that will run an OpenCover process followed by processing the results through ReportGenerator that will churn out the html assets for viewing the results.
Locally this can be executed and will start a browser with the index.htm of the generated report automatically.
I would like to extend this so that we can identify when running the script under the TeamCity instance, and if so, publish this report to TeamCity for viewing directly within the TeamCity dashboard.
I'm relatively this is possible but not clear on:
1) How to determine we're running within TeamCity and
2) What gets published to TeamCity and how.
Any help would be greatly appreciated.