WorkspaceMapping.xml map/cloak

When I setup a new build type, workspacemapping.xml, by default directs team build to do a 'get' of all the source in $/MyTeamProject. Is there some 'cloaking' under the covers that means it doesn't do a get of $/MyTeamProject/TeamBuildTypes

Manish's blog http://blogs.msdn.com/manishagarwal/archive/2005/10/13/480584.aspx

says how you cloak the TeamBuildConfigurations folder, but my build seems to do this by default.

The reason I ask is I have several build types setup in MyTeamProject and they are basically the same except for the branch inside MyTeamProject that they target, therefore I want to strip out all the common stuff from thr TFSBuild.proj files and create a GenericBuild.proj file that will live in the root of $/MyTeamProject/TeamBuildTypes, however I need to make sure I get this folder everytime


Answer this question

WorkspaceMapping.xml map/cloak

  • JosepMiquel

    I can restrict the source that is synched on the build machine using WorkspaceMappings.xml so that the 'CoreGet' target only gets what is mapped, however this doesn't apply to te 'CoreClean' target i.e. it cleans all the source in the Team Project rather than just what you define in the mappings file. Do I need to overide the CoreClean or is there a simpler way
  • kocherek

    You can try this -
    1) Set SkipClean to true and do not override any Clean target.
    2) Customize Get target to get 'Dev' folder and the branch folder that you require. To do this, refer my colleague Nagaraju's blog - http://blogs.msdn.com/nagarajp/archive/2005/10/21/483590.aspx.

    Thanks,
    Gautam

  • Kathy0505

    thanks for the info

    Just to explain, I have a Team project which contains a 'Dev' folder and several other branched folders that represent each of my formal testing environments (Integration, UA Testing, Staging, Live). I have setup a build type to build the contents of each branch seperately, therefore each time a do a build of one of the branches, I only want to do a 'clean' and then a 'get' of that branch only.

  • Abobrix

    If you want to skip the clean step altogether, you can set SkipClean property to true.  I am not sure what you mean by partial clean.

    When we release, the right way to do this will be to set SkipClean to true and override AfterClean to do the cleaning.  However, this does not work in Beta 3 as SkipClean skips AfterClean also.

    For Beta 3, overriding CoreClean is the right way. 

    Thanks,
    Gautam


  • Jim Spath

    PLEASE IGNORE MY ABOVE, I HAVE FALLEN FOUL OF HAVING TOO MANY TEAM PROJECTS SETUP AND LOOKING AT THE WRONG ONE!

    Question: Is there a variable name I can use in my .proj files for the $/MyTeamProject/TeamBuildTypes folder

  • WorkspaceMapping.xml map/cloak