私はgitもJenkinsも初めてです。
ssh
キーをビットバケットとローカル マシンに追加すると、次のようになります。
git clone git@bitbucket.org:username/repo.git
クローンできます。
しかし、同じ URL ( git@bitbucket.org:username/repo.git
) を Jenkins リポジトリの 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