The git plugin stopped trying to support versions older than 1.8.3 several years ago. Once Centos 7 goes off support, the plugin will probably stop trying to support versions older than 2.11
On Sat, May 1, 2021, 2:08 AM Sverre Moe <[email protected]> wrote: > I found out the reason for it. > As we build on different Linux distributions, we also are subject to > different versions of git installed. > The no branch was given on a Linux build agent with git-1.7 (yes a very > old Linux distribution, SLES 11). > > Perhaps a solution here would be to use the Jenkins tools support, making > sure we have the same version of git installed everywhere. > > fredag 30. april 2021 kl. 12:36:24 UTC+2 skrev Sverre Moe: > >> BRANCH1 >> + git branch >> * (no branch) >> >> BRANCH2 >> + git branch >> * (HEAD detached at 5abd860) >> >> The same project, but one branch does not return any branches on `git >> branch`. >> Any clue as to why? >> > -- > 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 [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/jenkinsci-users/f839ef26-358c-49e7-b2a7-91a89d8046aen%40googlegroups.com > <https://groups.google.com/d/msgid/jenkinsci-users/f839ef26-358c-49e7-b2a7-91a89d8046aen%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAO49JtE6O8TfFxk0f6MPGMSX0MgAmde6D%3D_bjjM4k4j3RjevgQ%40mail.gmail.com.
