Pipeline Checkout: git branch - no branch

13 பார்வைகள்
படிக்கப்படாத முதல் மெசேஜுக்குச் செல்

Sverre Moe

படிக்கப்படவில்லை,
30 ஏப்., 2021, 6:36:24 AM30/4/21
பெறுநர் Jenkins Users
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?

Sverre Moe

படிக்கப்படவில்லை,
1 மே, 2021, 4:08:46 AM1/5/21
பெறுநர் Jenkins Users
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.

Mark Waite

படிக்கப்படவில்லை,
1 மே, 2021, 6:41:13 AM1/5/21
பெறுநர் Jenkins Users
Or enable JGit and use it. JGit does not have all the features of CLI git and it does best with repos that are 50 MB or less. 

--
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-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/f839ef26-358c-49e7-b2a7-91a89d8046aen%40googlegroups.com.

Mark Waite

படிக்கப்படவில்லை,
1 மே, 2021, 6:44:09 AM1/5/21
பெறுநர் Jenkins Users
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 <sverr...@gmail.com> wrote:
--
எல்லோருக்கும் பதிலளி
எழுதியவருக்குப் பதிலளி
முன்னனுப்பு
0 புதிய மெசேஜ்கள்