[英]Integrating GIT with Jenkins
I am trying to add git repo-url to jenkins so that jenkins can build my code and run some tests. 我正在尝试将git repo-url添加到jenkins,以便jenkins可以构建我的代码并运行一些测试。 But the repo I am using is private and that's where I am running into issues. 但是我正在使用的仓库是私人的,这就是我遇到问题的地方。 Here is the error that I get when I add the GIT repo url in Jenkins under Source COde Management- 这是我在Source COde Management下的Jenkins中添加GIT存储库URL时遇到的错误-
Failed to connect to repository : Command "/usr/local/bin/git ls-remote -h
git@github.com:xxxx/xxx.git HEAD" returned status code 128:
stdout:
stderr: ERROR: Repository not found.
fatal: The remote end hung up unexpectedly
I am aware that one cause for this would be as the repo is private it would require a username and password to authenticate. 我知道,造成此问题的原因之一是因为该回购是私人的,因此需要用户名和密码进行身份验证。 Any ideas on how to make this as passwordless authentication? 关于如何使其成为无密码身份验证的任何想法?
the below links might be helpful to you - 以下链接可能对您有帮助-
https://github.com/Tozkoparan/Deneme/wiki/Setup-Jenkins-for-working-with-a-private-Github-repository https://github.com/Tozkoparan/Deneme/wiki/Setup-Jenkins-for-working-with-a-private-Github-repository
http://fourkitchens.com/blog/2011/09/20/trigger-jenkins-builds-pushing-github http://fourkitchens.com/blog/2011/09/20/trigger-jenkins-builds-pushing-github
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.