LoginSignup
3
2

More than 5 years have passed since last update.

GitHub pull request builder plugin『Could not retrieve GitHub repository named xxxx/XXXX.git』の対処方法

Last updated at Posted at 2015-07-10

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を使うと以下みたいにプルリクにビルド結果やテスト結果を表示できます。(便利!)

ghpr02.png

ghpr01.png

対処方法

The problem is you have .git at the end of your url, I believe.

つまりURLに.gitがついているから起きるらしい。

なのでジョブの設定のリポジトリURLの欄の.gitを消せばOK

OKなパターン

setting02.png

NGのパターン

setting01.png

3
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
2