How to set global git parameters

227 views
Skip to first unread message

RDR

unread,
Mar 18, 2015, 9:42:37 AM3/18/15
to jenkinsci-users
Hi,

Hopefully this is a simple question and I'm missing something obvious....

I'm running Jenkins on a Windows based OS and I'm pulling my code from Git. However the job is failing with the message:

     Could not checkout null with start point


After a bit of digging it turns out that the path for some of the files exceeds the Windows 260 character limit. Since I'm using git version 1.9.5 I'd like to use the git 
"core.longpaths true" setting to get around this problem...

My question is how to enable this setting inside Jenkins. In the Configure Jenkins screen I can see options to set "user.name" and "user.email" but that's all.
I don't don't appear to be able set
"core.longpaths" (or any other git configuration). Does Jenkins only support these two configuration options or have I missed something?

Cheers





Mark Waite

unread,
Mar 18, 2015, 12:08:09 PM3/18/15
to jenkins...@googlegroups.com
I'm not aware of a way to set other git parameters globally.  Since each global git parameter has the chance to surprise the git plugin with conditions it had never before seen, I'm hesitant to allow a lot of different global configuration settings.

The e-mail and user name settings are required in order to avoid a warning / complaint from git.

The core.longpath setting is a Windows specific setting, and it is accompanied by warnings in the msysgit documentation.  There are tests in the git client plugin GitAPITestCase that assert core.longpaths works as expected when using command line git.  

You could also consider enabling JGit and using JGit on your Windows machines.  The JGit implementation does not have the path length limitations of msysgit.

Mark Waite

--
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/CAB9wPTQGtVqDKCANSYERi886gP5hd-4HXdn6wUEYrJ%2B9iLTBKw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.



--
Thanks!
Mark Waite

RDR

unread,
Mar 19, 2015, 6:09:45 AM3/19/15
to jenkinsci-users
I'll give that a go. Thanks for your advice.

Reply all
Reply to author
Forward
0 new messages