Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/github/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
詹金斯Git插件-401_Git_Github_Jenkins - Fatal编程技术网

詹金斯Git插件-401

詹金斯Git插件-401,git,github,jenkins,Git,Github,Jenkins,我尝试过各种各样的事情,但我不能让詹金斯和吉特玩得很好 我已经设置了ssh密钥,并验证了我可以通过ssh连接到git集线器,我得到了消息。 我也尝试过不使用.git扩展名。我试过在url中使用用户名,在url中使用用户名和密码,但根本没有用户名/密码。没什么大不了的 我还尝试了一个管理员用户和一个普通的推/拉用户 我试图访问的git存储库是通过一个“组织”访问的,但我所在的团队具有访问权限 Cloning repository origin ERROR: Error cloning remote

我尝试过各种各样的事情,但我不能让詹金斯和吉特玩得很好

我已经设置了ssh密钥,并验证了我可以通过ssh连接到git集线器,我得到了消息。 我也尝试过不使用.git扩展名。我试过在url中使用用户名,在url中使用用户名和密码,但根本没有用户名/密码。没什么大不了的

我还尝试了一个管理员用户和一个普通的推/拉用户

我试图访问的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

如果在URL上传递凭据,请确保它们是URL编码的。还要确保您使用的是基本身份验证

尝试使用r/w地址使用ssh密钥克隆私有repo:


git@github.com:xxx/xx.git

是的。。我没有任何需要编码的字符。奇怪的是,我甚至不能从命令行运行这个命令。我可以从dev box上的命令行进行推/拉操作。我可以很好地推拉,但如果我运行克隆命令,它就会爆炸。是的,它是一个运行非常好的私有复制。我还不到15岁,所以我想不出答案。现在你是;)你也可以把答案标为正确吗?谢谢