首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >未能连接到Jenkins + Codebase Git上的存储库- 401

未能连接到Jenkins + Codebase Git上的存储库- 401
EN

Server Fault用户
提问于 2013-12-02 13:15:24
回答 2查看 11.5K关注 0票数 3

我正试图让詹金斯使用Git作为我们的SCM,而设置它有点痛苦。

在指定要使用的代码库Git时,使用以下格式:

代码语言:javascript
复制
https://our.domain.com/repository/repository.git

我从Jenkins那里得到以下错误:

代码语言:javascript
复制
Failed to connect to repository : Failed to connect to https://our.domain.com/repository/repository.git (status = 401)

存储库是私有的,我不知道如何为它配置用户帐户。我在我的Ubuntu服务器上为Jenkins用户生成了一个RSA SSH密钥,并将其作为部署密钥添加到Codebase中。

我一直在找404错误吗?

另外,如果我尝试

代码语言:javascript
复制
git@codebasehq.com:.../repository.git

格式,我只得到一个与Jenkins不同的错误:

代码语言:javascript
复制
Failed to connect to repository : Command "ls-remote -h git@codebasehq.com:.../repository.git HEAD" returned status code 128:
stdout: 
stderr: Host key verification failed. 
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
EN

回答 2

Server Fault用户

发布于 2014-06-12 23:23:28

我迟到了,但将来这会对其他人有所帮助。

.的

代码语言:javascript
复制
https://username@bitbucket.org/username/repo.git

替换这个

代码语言:javascript
复制
https://bitbucket.org/username/repo.git

在Git Repository URL中

票数 6
EN

Server Fault用户

发布于 2013-12-02 13:19:40

弄明白了!您需要获得Jenkins /凭据,在那里添加凭据帐户,然后在添加SCM Git内容时选择这些凭据。

票数 0
EN
页面原文内容由Server Fault提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://serverfault.com/questions/558666

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档