Bug 410771 - Git 2.2.3 plugin can't handle git@github.com:foo/bar.git
Summary: Git 2.2.3 plugin can't handle git@github.com:foo/bar.git
Status: NEW
Alias: None
Product: Hudson
Classification: Technology
Component: GIT (show other bugs)
Version: unspecified   Edit
Hardware: PC Mac OS X
: P3 blocker with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: Winston Prakash CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-13 19:39 EDT by Lenny T CLA
Modified: 2014-01-14 15:48 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lenny T CLA 2013-06-13 19:39:27 EDT
Fetching upstream changes from git@github.com:user/repo.git
Commencing build of Revision [SHA] (origin/master)
Checking out Revision [SHA] (origin/master)
ERROR: Could not parse the URI. Exiting ...
java.net.URISyntaxException: Illegal character in scheme name at index 3: git@github.com:user/repo.git
	at java.net.URI$Parser.fail(URI.java:2810)
	at java.net.URI$Parser.checkChars(URI.java:2983)
	at java.net.URI$Parser.parse(URI.java:3010)
	at java.net.URI.<init>(URI.java:577)
	at hudson.plugins.git.GitAPI.fixSubmoduleUrls(GitAPI.java:583)
	at hudson.plugins.git.GitAPI.setupSubmoduleUrls(GitAPI.java:686)
	at hudson.plugins.git.GitSCM.fetchSubmodulesFrom(GitSCM.java:1646)
	at hudson.plugins.git.GitSCM.access$100(GitSCM.java:107)
	at hudson.plugins.git.GitSCM$1.invoke(GitSCM.java:792)
	at hudson.plugins.git.GitSCM$1.invoke(GitSCM.java:761)
	at hudson.FilePath.act(FilePath.java:791)
	at hudson.FilePath.act(FilePath.java:773)
	at hudson.plugins.git.GitSCM.getBuildConfig(GitSCM.java:761)
	at hudson.plugins.git.GitSCM.checkout(GitSCM.java:722)
	at hudson.model.AbstractProject.checkout(AbstractProject.java:1515)
	at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:521)
	at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:428)
	at hudson.model.Run.run(Run.java:1390)
	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:40)
	at hudson.model.ResourceController.execute(ResourceController.java:82)
	at hudson.model.Executor.run(Executor.java:137)
Comment 1 Carlton Brown CLA 2014-01-14 15:47:05 EST
I notice this happens on Linux when the git project has submodules.
Comment 2 Carlton Brown CLA 2014-01-14 15:48:52 EST
And I reproduced this in Hudson 3.1.1, Github plugin 2.2.5