Change By: Ondrej Rafaj (08/Jan/14 12:02 PM)
Description: h5. Steps to reproduce

# Create a free-style project.
# Set "Git Repository URL". The repository specified should use submodules.
# In "Additional Behaviours", add "Advanced sub-modules behaviours" and check "Recursively update submodules".
# Build it.

h5. Expected result

Workspace should have git working tree and submodules.

h5. Actual console log

{code}
Cloning the remote Git repository
Cloning repository git://***/*.git
Fetching upstream changes from git://***/*.git
Fetching upstream changes from git://***/*.git
Checking out Revision 0123456789abcdef0123456789abcdef01234567 (origin/master)
FATAL: No remotes found!
hudson.plugins.git.GitException: No remotes found!
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.getDefaultRemote(CliGitAPIImpl.java:702)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.setupSubmoduleUrls(CliGitAPIImpl.java:863)
at hudson.plugins.git.extensions.impl.SubmoduleOption.onCheckoutCompleted(SubmoduleOption.java:69)
at hudson.plugins.git.GitSCM.checkout(GitSCM.java:882)
at hudson.model.AbstractProject.checkout(AbstractProject.java:1256)
at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:589)
at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:494)
at hudson.model.Run.execute(Run.java:1502)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:236)
{code}

h5. Actual .git/config

{code}
[core]
repositoryformatversion = 0
filemode = false
logallrefupdates = true
{code}

There is no [remote "origin"] nor [submodule "submodule-name"] sections.

h5. Workaround

One of the followings:

* Downgrade git plugin to 1.5
* Do not check "Recursively update submodules"
* Do not checkout git repository with submodules
* Create a shell build step with: git submodule update --init --recursive

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to