[JIRA] [git] (JENKINS-20258) Git plugin with checkout to subdir and prune stale branches fails all builds

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[JIRA] [git] (JENKINS-20258) Git plugin with checkout to subdir and prune stale branches fails all builds

JIRA noreply@jenkins-ci.org
 
Mark Waite edited a comment on Bug JENKINS-20258

Git client plugin 1.5.0 was intended to fix this (based on the submission ba2ab8934), but it still fails.

Steps I used to duplicate the problem with Git client plugin 1.5.0:

  1. Create a new job (I named mine git-jgit-specific-subdir-prune)
  2. Configure git repo URL https://github.com/MarkEWaite/check_git.git
  3. Use jgit as the implementation rather than the default
  4. Add behavior to checkout to a local subdirectory
  5. Add behavior to prune stale remote tracking branches
  6. Save the job and run it

Stack trace looks like:

Building on master in workspace /var/lib/jenkins/jobs/git-jgit-specific-subdir-prune-simple/workspace
Pruning obsolete local branches
FATAL: java.net.URISyntaxException: Cannot parse Git URI-ish: The uri was empty or null
hudson.plugins.git.GitException: java.net.URISyntaxException: Cannot parse Git URI-ish: The uri was empty or null
at org.jenkinsci.plugins.gitclient.JGitAPIImpl.prune(JGitAPIImpl.java:913)
at hudson.plugins.git.extensions.impl.PruneStaleBranch.beforeCheckout(PruneStaleBranch.java:31)
at hudson.plugins.git.GitSCM.checkout(GitSCM.java:858)
at hudson.model.AbstractProject.checkout(AbstractProject.java:1411)
at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:652)
at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:557)
at hudson.model.Run.execute(Run.java:1665)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:246)
Caused by: java.net.URISyntaxException: Cannot parse Git URI-ish: The uri was empty or null
at org.eclipse.jgit.transport.URIish.<init>(URIish.java:205)
at org.jenkinsci.plugins.gitclient.JGitAPIImpl.listRemoteBranches(JGitAPIImpl.java:923)
at org.jenkinsci.plugins.gitclient.JGitAPIImpl.prune(JGitAPIImpl.java:901)
... 10 more

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 [hidden email].
For more options, visit https://groups.google.com/groups/opt_out.