2
votes

I have a job set up that builds the merge commit from each Github pull request, using the approach outlined on the JetBrains blog, i.e. with a VCS root with the branch specification +:refs/heads/pull/(*/merge). This works fine - every time a pull request is submitted or updated with new commits, the build job is triggered.

However, it is also triggered for changes to master, for example when a pull request is merged. I have another job that builds and tests changes to master (that also publishes successful builds to our staging environment) so I don't want to run this job for those changes.

How do I exclude master changes in the VCS root?

1

1 Answers

6
votes

You can give it in two places.

You can either add a -:master in the build trigger (there is a textbox) at the end of the input regular expressions or you can add a -:master in the Branch specifications in the VCS root spec (but be sure to not have master in the Default branch)