Japster24
Japster24

Reputation: 1526

Pull version label from TFS in TeamCity

I need to pull from a specific label in TFS and then build it in TeamCity. Is there any way to do this? I've done it before in SVN with custom steps, I was trying to avoid this. I assume a custom step like the below would work, but wanted to avoid it if possible.

Any ideas? Maybe a way through the fetch URL or appended to the collection URL that I don't know about.

tf get * /r /version:Lyourlabelname

Upvotes: 1

Views: 490

Answers (1)

Rami A.
Rami A.

Reputation: 10582

See https://youtrack.jetbrains.com/issue/TW-7370

You can run a build on a specified change[set] manually using Run Custom Build dialog.

Edit: Another way is to run tf.exe using the Get command.

See https://msdn.microsoft.com/en-us/library/fx7sdeyf.aspx

Synchronize a workspace to match a labeled version of the team’s codebase
c:\code\SiteApp\Main>tf get /v:LLastKnownGood
Synchronizes the workspace to match the items in the codebase that are labeled LastKnownGood

Edit 2
Also see https://teamcity-support.jetbrains.com/hc/en-us/community/posts/207091635-Checkout-TFS-Label

TeamCity does not support getting labeled sources at this time. The feature request is addressed by TW-5061, please vote for it.

Upvotes: 1

Related Questions