checkout git repository with submodules with git plugin

126 views
Skip to first unread message

Tidhar Klein Orbach

unread,
Apr 3, 2016, 3:43:09 AM4/3/16
to jenkins...@googlegroups.com
Hi,

i'm trying to checkout a git repository with git submodules suing jenkins git plugin.
I checked the "Recursively update submodules" option, but I get an error:
FATAL: Command "/DATA/my_slave/tools/git/git submodule update --init --recursive" returned status code 1:
10:37:41 stdout: 
10:37:41 stderr: error: unknown option `separate-git-dir'

my jenkins is 1.565.3
git-plugin 2.2.12

the parent git repository is at the inner work network and the submodules are at github.

thanks,
Tidhar

Mark Waite

unread,
Apr 3, 2016, 7:03:44 AM4/3/16
to jenkins...@googlegroups.com
Are you certain that your git version supports submodules?  You didn't mention the version of command line git you're using, so we can't tell if it is supported by the plugin.  The plugin needs at least 1.7.10, and is better with even newer versions.

If you're having Jenkins install your own copy of git, rather than using a copy installed by the operating system, you may want to read https://issues.jenkins-ci.org/browse/JENKINS-30755 to see if the information in that report helps you.

The error output seems to be coming from command line git (since it is prefixed with "stderr:" and that string does not appear in the git plugin or the git client plugin).

You may also want to test drive a newer version of Jenkins and a newer version of the git plugin, in case they are better behaved in that area.  I'm not aware of any changes that would be relevant, but those versions are at least 18 months old.  A Docker instance is available which allows you to test drive new Jenkins versions more easily.

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/CAGGeGtmj46Wt%2B6A8AC8vDG%3DgiAi525LOjPbccS6KQv-K8z-oVQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Mark Waite

unread,
Apr 3, 2016, 7:05:25 AM4/3/16
to jenkins...@googlegroups.com

Tidhar Klein Orbach

unread,
Apr 3, 2016, 3:30:22 PM4/3/16
to Jenkins Users
thanks Mark.
git --version (executed from an "execute shell script" step) returned 1.7.1
i'll check with newer git / jenkins versions.

thanks!
Reply all
Reply to author
Forward
0 new messages