The easiest way to test TFS2010 build template

I'm currently working on creating a build template for TFS2010 builds. However, I notice that I'm currently 'spamming' the source control with every change I make to the template (and lots more for all the fixes for those changes).

I wonder what the easiest way is to test the build templates I'm creating? Is there a way to change the template file and custom activity dlls that doesn't involve checking them in?

I currently have a build controller and agent running on my developer machine, which I'm using to test the template (test = start a build and hope for less errors than last time).


Why is 'spamming' a problem? Anyway, I have a separate Team Project for doing this kind of work, that way I can check in to my hearts content without affecting the developers who need to have a stable build. once I've done my testing I check the template in to the team project(s) used by the developers.


I want to test my builds against the teams latest code-base without having to branch it over to a trial project.

Instead, I do the following:

  • Create a separate build definition called 'Infrastructure'
  • clone a production definition
  • Set the trigger on the Infrastructure build definition to manual.
  • Set the Infrastructure definitions permissions to allow only [Project]Build group members to have full control of it.
  • keeps the notification of broken builds away from the bulk of the team).
  • Create a separate build process template, called 'Infrastructure.xaml'.
  • Point the Infrastructure build definition at the Infrastructure process template.
  • Now when I want to iterate on a new build feature for the team:

  • Check out the build process template I want to update, and lock it.
  • Copy the build process template I want to update overtop of the Infrastructure.xaml.
  • Add my build feature to the Infrastructure.xaml file, and check that in.
  • Use the Infrastructure build definition to test my changes.
  • Iterate over 3-4 until I get it right.
  • Complete the feature and have my changes verified by another Infrastructure team member.
  • Copy Infrastructure.xaml over the build process template I locked in (1) and check it in.
  • This still results in 'spam' in the TFS source control, but it keeps the build definition iteration out of the eyes of the team. My build process templates are located out of the main source tree (under the Build Process Templates folder, or in the branches themselves under a 'Core/Build' folder where no-one else on the team is typically paying any attention) so that the team is largely unaffected by it.


    @d3r3kk: Why not just branch the template and merge changes back when ready instead of creating copies? That way you can preserve source history in a cleaner way as well.

    Ideally, there should be a way to have a build process template that is in progress by having it on your local file system and pointing the build definition to it temporarily. Not sure if something like this exists in later versions of VS/TFS. I haven't seen it available via the UI anyway.

    链接地址: http://www.djcxy.com/p/50850.html

    上一篇: 使用css将表中的行与表中的行对齐

    下一篇: 测试TFS2010构建模板的最简单方法