Intellex
Intellex

Reputation: 173

Intranet TFS on VSTS

Can we use intranet TFS for Code along with VSTS for building it using self hosted agents?

i.e. code should be hosted on intranet TFS to avoid sharing of code and Build should be run on local self hosted agent .. but build creation is done on VSTS

Upvotes: 0

Views: 128

Answers (1)

starian chen-MSFT
starian chen-MSFT

Reputation: 33698

First, you can use the files in intranet TFS in the VSTS build.

For Git:

  1. Add an External Git service
  2. Create a build definition and choose External Git as source

For TFVC, there isn’t the way to get source from TFS in build directly, but you can choose any empty TFVC/git repository in Get sources, then add Download Artifacts-External TFVC task to download the source code in TFS.

Make sure the extranet TFS can be accessible from the private agent.

Secondly, the VSTS is newer than TFS, so some features is better than TFS.

Upvotes: 1

Related Questions