Deploying Team City Builds with Visual Studio Team Services

Hi, 

We've recently implemented Team City and I've been tasked with making it work with our existing VSTS environment. We'd ideally like to have Team City build and VSTS release. We've got the Team City generated Artifacts sitting inside VSTS however you can't trigger CI off them as per this article here; https://www.visualstudio.com/en-us/docs/build/concepts/definitions/release/artifacts

What I'd like to do is have Team City trigger the release via the VSTS REST API but I'm having issues getting VSTS to use the Team City artifacts. No matter what I try I get the following error: "VS402962: No artifact version id is specified corresponding to artifact source 'TeamCity Build'. Specify a valid value and try again."

I know this is really a VSTS question but I thought I might have more luck on this board finding someone who had done this.

Thanks,

Anthony Murphy - TMA Comms

0
1 comment
Avatar
Permanently deleted user

I have discovered the issue myself. VSTS will put (Team City) in brackets after your artifact alias. This is not needed when you create the  JSON for your Release POST. So if your artifact is called "Bruce", VSTS will refer to it as "Bruce (TeamCity)" in your JSON you should just refer to it as "Bruce" despite what the VSTS gui tells you.

0

Please sign in to leave a comment.