0
votes

I can't get our gated check-in build definition to ignore cloaked paths.

We have a few projects shared between teams. Team A is using $/ProjectA, $/Shared, and team B is using $/ProjectB and $/Shared. I want to set up a gated check-in build definition for team A, so I set $/ProjectA and $/Shared as build triggers, and map both of them. All is working currently for team A.

Team B, however, can't check-in changesets that include files from both $/ProjectB and $/Shared, because $/ProjectB is not mapped in the gated check-in build definition's workspace. I this kind of check-ins to trigger the gated build (so that Project A will be built), but I don't know how to set this up.

Our current solution is forcing team B to separate their check-ins, but that's inconvenient. I would like the gated check-in build definition to silently ignore any files that are unmapped instead of (currently) failing with No appropriate mapping exists for $/ProjectB errors.

Cloaking $/ProjectB didn't work. Should I even use cloaking for this scenario?

I can't just map $/ProjectB because (a) it's huge, and will take a lot of space in every agent, and (b) there are many more teams with the same problem as team B.

EDIT Turns out I already asked something similar in the past, and completely forgetting about it... If anyone have a different answer I'd love to know. TFS 2015 Gated check-in failed due to missing mapping

2
Have you resolved the issue by below answers? any update?Andy Li-MSFT
@AndyLi-MSFT no answer yet.liorda

2 Answers

0
votes

Set the cloaked path to "ignore" for your gated check-in triggers.

0
votes

Your users' workspaces must be consistent with that of your team build. Either the user has to cloak the directories that give you this warning (if they are not important), or, you have to map these directories on the build server.