3

I am trying to trigger a build only on commits to the trunk rather than the branches. When I make the build trigger on any VCS commit it works fine but I cannot seem to get the rule right to trigger only on commits to MAIN/source by any user. What is the proper rule declaration to do this?

Bryan Naegele
  • 660
  • 3
  • 10

1 Answers1

0

There are two ways to do this. If you don't want to build from other branches, you can edit the VCS Root and clear out the "Branch specification" field.

If you want to be able to build from other branches, you create a Branch Filter on your VCS Trigger. Try this:

+:<default>
Sam Jones
  • 160
  • 9