简体   繁体   中英

Team Foundation Service publishing to Azure with multiple branches

I'm currently working with Team Foundation Service in combination with Windows Azure. I've created a Website in Azure and setup TFS publishing.

Everything is working perfectly except I was wondering how to configure different branches.

This article explains how you can use Git to configure different websites to point to different branches. It says:

In this example, I'll be using GitHub.com to manage my source code. You don't have to use GitHub.com for this, so if you're new to Git don't freak out, you have other options like CodePlex, BitBucket, or TFS . Heck, you could even automate an FTP deployment if you want to.

However, I can't find the branching option for my TFS publishing configuration. Am I missing something? Is this a Git only feature?

After searching the web and having some contact with Microsoft I found the necessary configuration steps.

These are the things you have to do:

  • Link the two websites to your team project
  • Branch your code
  • Adjust the workspace mappings on the build definition to the staging site to map the branch
  • Change the solution to build property on the build definition for your staging site to point to the solution in your branch

I wrote a blog post about it that explains it in more detail: Branches, Team Foundation Service and Azure Websites

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM