I am using the git plugin for jenkins. It works well, except that it rebuilds my targets any time ANY of the branches are changed on the given project. What I need it to do is rebuild ONLY IF a particular branch has been changed. Is there a way to do this? Right now I am using git hooks and the notifyCommit option with the plugin. Thanks
Under Source Code Management
you can set the Branches to build
field to your desired branch.