我对git和Jenkins都很新.
ssh当我这样做时,我将钥匙添加到bitbucket和我的本地机器中:
git clone git@bitbucket.org:username/repo.git
Run Code Online (Sandbox Code Playgroud)
我能够克隆.
但是当我git@bitbucket.org:username/repo.git向Jenkins存储库url 添加相同的url()时,我收到以下错误:
Failed to connect to repository : Command "git ls-remote -h git@bitbucket.org:username/repo.git HEAD" returned status code 128:
stdout:
stderr: Permission denied (publickey).
fatal: The remote end hung up unexpectedly
Run Code Online (Sandbox Code Playgroud)