Your browser was unable to load all of the resources. They may have been blocked by your firewall, proxy or browser configuration.
Press Ctrl+F5 or Ctrl+Shift+R to have your browser try again.

Cannot get build condition to only focus on subfolder of p4 #3660

goydex ·
Please can someone tell me how to accomplish this. I need to trigger a build when a change in a certain folder happens, for example the p4 path to watch is:

//a/b/1/

The client spec for the p4 repository in QB is:

//a/

How can I use the "If changes found in referenced repositories" option but only trigger on //a/b/1?

I have tried to use the "Include/Exclude Path Patterns" to remove //a/ but then re-include //a/b/1 (plus to ignore another file overall) like so:

-//a/**,//a/b/1/**,-**/build.h

But the build does not trigger.

If there is a better way overall to do this then please can you share it?
  • replies 4
  • views 4028
  • stars 0
robinshen ADMIN ·
Just specify it as //a/b/1/** should be working.

PS: shouldn't the client spec in QB be "//a/..." instead of "//a/"?
goydex ·
Yes, sorry the client spec is //a/...

My confusion though, if you specify an include path of //a/b/1/**, while having "If changes found in referenced repositories" set, won't it check all subfolders of //a/ ?
robinshen ADMIN ·
It will calculate changes of all sub folders under //a/, but then all changed path will be matched against the pattern "//a/b/1/**", and the build will only be fired if there is some matching path.
goydex ·
Thanks very much for that clarification.. Maybe that statement should be added to the comments on the field <!-- s:P --><img src="{SMILIES_PATH}/icon_razz.gif" alt=":P" title="Razz" /><!-- s:P -->