martenolofsson
martenolofsson

Reputation: 531

Deployment keys in Visual Studio Team Services

I'm trying to figure out how I should setup an integration between my Team City CI-server with a git repository in microsoft Visual Studio Team Services. Today I'm using GitLab as VCS and I have added a deployment key to GitLab which I have added to Team City for authentication. Are deployment keys available in VSTS? If so - where are they located? And if not - what is the recommended approach to authenticate between a build server and VSTS?

Upvotes: 1

Views: 1142

Answers (3)

Chad Sheets
Chad Sheets

Reputation: 21

VSTS doesn't support deployment keys the same way Git does.

If you have room on your team, one way to mimic deployment keys is to create a user with ReadOnly access. You can also scope project access.

A more "VSTS" way to manage deployments is to trigger a build (even if the build doesn't do anything) and publish the files as build artifacts. You can then use Personal Access Tokens to query for the files via a REST API.

Upvotes: 0

Eddie Chen - MSFT
Eddie Chen - MSFT

Reputation: 29968

Create a Personal Access Token in VSTS with related permission and then use it in Team City.

Upvotes: 0

Harshil Lodhi
Harshil Lodhi

Reputation: 7762

I don't know what deployment keys are but you may find extensions on VSTS market place which may help you to integrate with Team City.

https://marketplace.visualstudio.com/items?itemName=ms-devlabs.vss-services-teamcity

Upvotes: 0

Related Questions