【问题标题】:Artifactory webhooks are not getting triggeredArtifactory webhook 没有被触发
【发布时间】: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

另外,加载配置:https://github.com/jfrog/artifactory-user-plugins/tree/master/webhook#making-changes-to-the-configuration

{
  "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


【解决方案1】:

配置中localhost 的端口是5000,但您使用的是localhost:8081

【讨论】:

    猜你喜欢
    • 2020-09-08
    • 2016-02-10
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2022-08-05
    • 1970-01-01
    • 2017-11-22
    相关资源
    最近更新 更多