Jenkins Git插件 - 401

Dou*_*son 9 git github jenkins

我尝试了各种不同的东西,我不能让jenkins与git玩得很好.

我已经设置了我的ssh密钥并验证我可以ssh到git hub并且我收到消息.我也试过没有.git扩展.我已尝试在网址中使用用户名,在网址中使用用户名和密码,并且根本没有用户名/密码.失败了.

我也尝试过管理员用户和普通的推/拉用户.

我试图点击的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
Run Code Online (Sandbox Code Playgroud)

ilt*_*mpo 13

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

git@github.com:xxx/xx.git