I am using Jenkins2 and GitHub plugin for triggering Push events.
I have the next service (Jenkins Github): http://myjenkinsmaster/github-webhook/
I also have 3 branches:
master which need to be built.
But I require only the branch with changes to be built.
For example if changes were pushed to
dev branch will be built, and others ignored.
However, Jenkins builds all 3 branches which I specified in branch field in job config.
How can I achieve a Jenkins build that builds only the branch where changes were pushed?