Could you use one of those PruneStaleBranches traits?

https://github.com/jenkinsci/git-plugin/blob/dd2b84217cc967bf908c7f2c02beea27973cd884/src/main/java/hudson/plugins/git/extensions/impl/PruneStaleBranch.java


>  Or can we add any rule like scan only branches which has Jenkinsfile

How would it know what branches have a jenkins file without scanning them
all?

Follow up question, why 450 branches? Are they all active or can some of
them be removed?

On Wed, Aug 22, 2018 at 7:41 AM Satish Lvr <satish....@gmail.com> wrote:

> Hi,
>
> Greetings !
>
> We are currently using Bitbucket + Jenkins. In our Bitbucket repo, we have
> around ~450 branches due to some old reasons.
> When we raise any Pull request, Jenkins automatically scanning all 450
> branches which is taking time to finish build for Pull Request. This is
> happening for all pull requests created.
> Is there any way to avoid to not scan for the branches which we don't want
> or which are not active ? Or can we add any rule like scan only branches
> which has Jenkinsfile. Most of the branches do not have Jenkinsfile.
>
> Regards
> Satish.
>
> --
> 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 jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/23844211-599b-4cac-a239-f3bec3b58aac%40googlegroups.com
> <https://groups.google.com/d/msgid/jenkinsci-users/23844211-599b-4cac-a239-f3bec3b58aac%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CADgiF9KDD7YR9igSWbQUKmhHK1QoXr7Ph1Y7AxOiVjTU-4h-sw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to