specifying branches to build for a multi-branch pipeline

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

specifying branches to build for a multi-branch pipeline

ziffusion
Hi

Is there a way get the multi-branch pipeline to build only some specific branches in the repo?

We have hundreds of branches in our repo, and that would create a huge clutter in the Jenkins dashboard if the pipeline picked them all up.

What kind of a workflow works for this? I am sure many, may folks have a plethora of branches to deal with.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/01de0058-9310-40f3-ba8a-8f5ca65243fd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: specifying branches to build for a multi-branch pipeline

stephenconnolly
Wildcard branches filter trait is the basic way...

You probably want https://wiki.jenkins.io/display/JENKINS/SCM+Filter+Branch+PR+Plugin though (assumes your SCMSource has implemented trait support)

On Tue 23 Jan 2018 at 19:49, ziffusion <[hidden email]> wrote:
Hi

Is there a way get the multi-branch pipeline to build only some specific branches in the repo?

We have hundreds of branches in our repo, and that would create a huge clutter in the Jenkins dashboard if the pipeline picked them all up.

What kind of a workflow works for this? I am sure many, may folks have a plethora of branches to deal with.
--
Sent from my phone

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CA%2BnPnMwH%2Bu%2BPaqF-e_K%3DUpp%3D77JY58tMV4LegSgRJ3oULfusZg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.