0

我正在尝试将 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 是私有的,它需要用户名和密码才能进行身份验证。关于如何将其设为无密码身份验证的任何想法?

4