On Wed, Jan 18, 2012 at 4:16 PM, Anton Rieder <[email protected]> wrote: > Hi, > > The project I work for makes heavy use of feature branches and we have > many developers working in parallel. We also use Jenkins as our build > server. Currently we poll the 'default' branch for changes every N > minutes so the unit tests are ran if there is a merge, back into the > default branch from our feature branches. I'd love to use the Post- > Commit Web Hook instead of polling, but I did not see the 'branch' > info in the info sent. > > So here's my question: > Is there, currently, a way to only trigger the hook when there are > commits to the default branch? Either by parsing additional info about > what branch was affected by the commit or other means?
Not at the moment - the hook is all or nothing. Could you file an enhancement request that we include the branch name in the payload of the web hook? It sounds like that'd do what you need. As a workaround, you could do 'curl http://code.google.com/p/{project}/?cmd=branchmap' or similar to get the current branch map from Mercurial (I'm assuming you're using hg based on your terminology choices) and see if the sha for default has changed. > > > Cheers, > Anton > > -- > You received this message because you are subscribed to the Google Groups > "Project Hosting on Google Code" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/google-code-hosting?hl=en. > -- You received this message because you are subscribed to the Google Groups "Project Hosting on Google Code" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-code-hosting?hl=en.

