我正试图让詹金斯使用Git作为我们的SCM,而设置它有点痛苦。
在指定要使用的代码库Git时,使用以下格式:
https://our.domain.com/repository/repository.git我从Jenkins那里得到以下错误:
Failed to connect to repository : Failed to connect to https://our.domain.com/repository/repository.git (status = 401)存储库是私有的,我不知道如何为它配置用户帐户。我在我的Ubuntu服务器上为Jenkins用户生成了一个RSA SSH密钥,并将其作为部署密钥添加到Codebase中。
我一直在找404错误吗?
另外,如果我尝试
git@codebasehq.com:.../repository.git格式,我只得到一个与Jenkins不同的错误:
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.发布于 2014-06-12 23:23:28
我迟到了,但将来这会对其他人有所帮助。
.的
https://username@bitbucket.org/username/repo.git替换这个
https://bitbucket.org/username/repo.git在Git Repository URL中
发布于 2013-12-02 13:19:40
弄明白了!您需要获得Jenkins /凭据,在那里添加凭据帐户,然后在添加SCM Git内容时选择这些凭据。
https://serverfault.com/questions/558666
复制相似问题