Andrew Rhyne
Andrew Rhyne

Reputation: 5090

Jenkins Build when a particular git branch changes

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

Upvotes: 0

Views: 2209

Answers (1)

cjc343
cjc343

Reputation: 3765

Under Source Code Management you can set the Branches to build field to your desired branch.

Upvotes: 2

Related Questions