Jenkins Git插件 - 401
我试过各种不同的东西,我不能让詹金斯和git一起玩。Jenkins Git插件 - 401
我已经设置了我的ssh密钥并验证了我可以ssh到git集线器并且我收到了消息。 我也试过没有.git扩展。我已经尝试使用url中的用户名,用户名和密码,并且根本没有username/passsord。无关紧要。
我也试过用管理员用户和普通的推/拉用户。
我试图打的git仓库是通过一个“组织”,但我在一个有权访问的团队。
Cloning repository origin
ERROR: Error cloning remote repo 'origin' : Could not clone https://github.com/xxx/xx
hudson.plugins.git.GitException: Could not clone https://github.com/xxx/xx
at hudson.plugins.git.GitAPI.clone(GitAPI.java:245)
at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:1073)
at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:1014)
at hudson.FilePath.act(FilePath.java:788)
at hudson.FilePath.act(FilePath.java:770)
at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1014)
at hudson.model.AbstractProject.checkout(AbstractProject.java:1195)
at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:579)
at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:468)
at hudson.model.Run.run(Run.java:1408)
at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:478)
at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:238)
Caused by: hudson.plugins.git.GitException: Error performing command: git clone --progress -o origin https://github.com/xxxx/xx /var/lib/jenkins/jobs/test/workspace
Command "git clone --progress -o origin https://github.com/xxxx/xx /var/lib/jenkins/jobs/test/workspace" returned status code 128: Initialized empty Git repository in /var/lib/jenkins/jobs/test/workspace/.git/
error: The requested URL returned error: 401 while accessing https://github.com/xxxx/xx/info/refs
尝试使用R/W地址使用SSH密钥克隆私人回购协议:
[email protected]:xxx/xx.git
完美的作品。我还没有15岁,所以我不能回答。 – 2012-03-04 19:47:01
现在你是;)你也可以标记答案是正确的吗?谢谢。 – iltempo 2012-03-04 19:55:32
完成。再次感谢! – 2012-03-05 00:41:55
如果您在URL上传递凭据,请确保它们是URL编码的。另外请确保您使用的是基本身份验证。
是啊..我没有任何字符在那里将需要编码。奇怪的是,我甚至无法从命令行运行该命令。我可以从我的开发箱上的命令行推/拉。我可以推拉得很好,但如果我运行这个克隆命令,它就会爆炸。 – 2012-03-04 10:28:43
它是一个私人回购协议? – iltempo 2012-03-04 10:27:58
是的,它是一个私人的回购 – 2012-03-04 17:00:33