AWSのEC2(CentOS7.3)上でJenkinsの構築をおこなっているのですが、
GitPluginの設定でBitbucketのリポジトリへの接続が上手くいきません。
おこなっていること
認証情報にglobalにて「 SSH ユーザー名と秘密鍵」で設定。
ユーザー名はjenkins、秘密鍵の場所は /home/ec2-user/.ssh/id_rsa_bitbucket。
Jenkinsの起動Userはjenkins、インストール自体はsudo でおこなっている。
エラーメッセージ
txt
1リポジトリ : Command "git ls-remote -h git@bitbucket.org:user/repository.git HEAD" returned status code 128: 2stdout: 3stderr: Permission denied (publickey). 4fatal: Could not read from remote repository. 5 6Please make sure you have the correct access rights 7and the repository exists. 8との接続に失敗しました。
参考にしたURL
下記様々なURLを確認しているのですが上手くいかず。。
http://qiita.com/msakamoto_sf/items/534bc528fd81692d0fef
http://qiita.com/tdrk/items/a0554763c29f60e347b5
何か手がかりはございますでしょうか?
回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。