Jenkins / Hudson Build all branches with priority

How to configure Jenkins to build all branches when the main branch has the highest priority?

My first idea was to create two jobs with one configured to build all the branches, and the other just build a wizard, and then use the job priority plugin to set up the wizard forward.

This does not work, since all branches explicitly build all branches, including master.

+1
ruby ruby-on-rails continuous-integration hudson jenkins
source share
2 answers

The git plugin has a BuildChooser extension point for such purposes. The Git plugin tells you all the interesting changes you might want to build (new tips that have not been created before), and BuildChooser gets a decision about which version will be built.

So, if your BuildChooser always prefers to build a mater, you get the desired semantics.

+1
source share

Christopher solved my issue of writing functionality .

Give this guy some karma.

0
source share

All Articles