0
我們使用Github API https://api.github.com/repos/:owner/:repo/hooks
在repositoy中創建Jenkins服務。我們發送了以下機身Github服務(Jenkins)使用Rest API
{
"name": "jenkins",
"active": true,
"events": [
"push",
"pull_request"
],
"config": {
"url": "https://anon.com/jenkins/folder1/job/folder2/",
"content_type": "json"
}
}
當我們使用REST客戶端調用上面的API,然後我們得到了,但在資源庫中創建的服務URL字段來了空白,如下圖所示: