GitHub pull request builder pluginというGithubのプルリクと連携するJenkinsのプラグインを導入した時に『Could not retrieve GitHub repository named xxxx/XXXX.git (Do you have properly set 'GitHub project' field in job configuration?)』というエラーが出てハマったので備忘録として残しておきます。
Jenkinsのログ
Could not retrieve GitHub repository named xxxx/XXXX.git (Do you have properly set 'GitHub project' field in job configuration?)
java.io.FileNotFoundException: {"message":"Not Found","documentation_url":"https://developer.github.com/v3”}
ちなみにGitHub pull request builder pluginを使うと以下みたいにプルリクにビルド結果やテスト結果を表示できます。(便利!)
対処方法
The problem is you have .git at the end of your url, I believe.
つまりURLに.gitがついているから起きるらしい。
なのでジョブの設定のリポジトリURLの欄の.gitを消せばOK
OKなパターン
NGのパターン