将GIT与Jenkins集成

时间:2013-02-13 21:25:15

标签: linux git github jenkins

我正在尝试将git repo-url添加到jenkins中,以便jenkins可以构建我的代码并运行一些测试。但我使用的回购是私有的,这就是我遇到问题的地方。这是我在源代码管理下在Jenkins中添加GIT repo 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

我知道造成这种情况的一个原因是因为repo是私有的,需要用户名和密码进行身份验证。关于如何将其作为无密码身份验证的任何想法?

相关问题