Answered Is it possible to get the Workspace mappings used for a build

  • Friday, August 17, 2012 7:55 PM
     
     

    For some audit reason I need to generate the list of files in TFS used for a build.

    From the IBuildServer.QueryBuilds I'm able to get the list of builds.

    From that list the only Workspace mappings I found is the one in the BuildDefinition.Workspace.Mappings

    The problem is that one is the latest mappings for the build definition.

    Is there a way to get the mappings as it was when the build run?

All Replies

  • Saturday, August 18, 2012 5:15 AM
     
     Answered

    As you may know TFS build labels the build workspace for every single build. Unless that label was deleted, you should be able to list the content & version of every single of that label always. If listing the file version is what you are looking for, I'm not sure whether you should use APIs and extend when there is an easy way to accomplish the same.


    --SS | Microsoft Certified Technology Specialist (TFS 2010)