【发布时间】:2020-03-28 00:04:13
【问题描述】:
我无法触发 Artifactory 网络挂钩。我已经按照这里提到的相同步骤https://github.com/jfrog/artifactory-user-plugins/tree/master/webhook 只是更改了 webhook.config.json 文件内容。重新加载插件并重新加载 webhook 配置。
我已将 webhook.config.json.sample 复制到 webhook.config.json 到 artifactory-pro-6.3.3\etc\plugins 文件夹中。
重新加载插件:https://www.jfrog.com/confluence/display/RTF/Artifactory+REST+API#ArtifactoryRESTAPI-ReloadPlugins
{
"webhooks": {
"awesomewebhook": {
"url": "http://localhost:5000",
"events": [
"storage.afterCreate",
"storage.afterDelete",
"storage.afterMove",
"storage.afterCopy",
"storage.afterPropertyCreate",
"storage.afterPropertyDelete",
"execute.pingWebhook"
]
}
},
"debug": true,
"timeout": 15000
}
即使我在运行时点击http://localhost:8081/artifactory/api/plugins/pingWebhook 什么也没发生,我只是得到一个空的 JSON 响应
{
}
我在这里错过了什么?
【问题讨论】:
-
您是否尝试过使用
http://localhost:5000?
标签: artifactory webhooks