Github APIhttps://api.github.com/repos/:owner/:repo/hooks
を使用して、リポジトリに Jenkins サービスを作成しています。以下の本体を送信しています
{
"name": "jenkins",
"active": true,
"events": [
"push",
"pull_request"
],
"config": {
"url": "https://anon.com/jenkins/folder1/job/folder2/",
"content_type": "json"
}
}
Rest クライアントを使用して上記の API を呼び出すと、サービスがリポジトリに作成されますが、以下に示すように url フィールドが空白になります。