Search code examples
tfs-2015release-managementtfvc

TFS 2015 Release Management - Automatically create release branch in TFVC


Is there a task in TFS 2015 Release Management that will automatically create a new Release Branch in TFVC when a release has been created successfully?

I'm trying to use a branch strategy similar to this, where release branches can be used for hotfixes: https://learn.microsoft.com/en-us/vsts/tfvc/branch-strategically#how-does-the-team-manage-releases-from-the-version-control-perspective


Solution

  • You can use a command prompt and use the below tf.exe command. Once all the steps complete the command prompt creates a new branch.

    tf branch olditem newitem [/version:versionspec] [/noget] [/lock:(none|checkin|checkout)] [/noprompt] [/silent] [/checkin] [/comment:("comment"|@commentfile)] [/author:authorname] [/login:username, [password]]

    For more information look at below https://learn.microsoft.com/en-us/vsts/tfvc/branch-command