codechurn
codechurn

Reputation: 3970

Get source TFS Server in TFS Build Definition

Is there a variable or property which is acccesible in the TFS Build Workflow that contains the source TFS Server and collection for the TeamProject? I can see the TeamProject name hanging off of the BuildDefinition object, but what I am really looking for the is source uri for it.

IE: http://myserver:8080/tfs/DefaultCollection

Upvotes: 1

Views: 163

Answers (1)

Morten Frederiksen
Morten Frederiksen

Reputation: 5165

Here's how:

BuildDetail.BuildServer.TeamProjectCollection.Uri.AbsoluteUri

Upvotes: 2

Related Questions