【问题标题】:How to use Webhooks in rundeck to send status of the job executed如何在 rundeck 中使用 Webhooks 发送已执行作业的状态
【发布时间】:2020-08-14 04:47:01
【问题描述】:

对 Webhook 概念和 Rundeck 来说是全新的。我在 rundeck 有一份工作,它检查一些服务器的运行状况,代码在 python 中。

Fetch 200 Ok status after running Curl Command and using that status write a condition using python in RUNDECK

我想使用 webhook 通过电子邮件/松弛通道向 5-6 个用户提供更新

创建了一个 webhook,我选择了它应该调用的作业,但我不明白要输入哪些选项选项部分[作业选项参数,格式为 -opt1 value -opt2 "other value"]

当我点击 webhook URL 时,它会发现 404 错误。

这可能是非常基本的问题。抱歉,请帮忙

【问题讨论】:

    标签: html-email webhooks rundeck


    【解决方案1】:

    我想使用 webhook 通过电子邮件/松弛通道向 5-6 个用户提供更新

    Webhook 用于启用第三方应用程序来触发作业。如果您只想在作业运行时发送作业状态通知,则无需使用 webhook。

    当您配置作业时,会有一个“通知”选项卡。您可以选择发送通知的时间和方式。特别是对于 slack,您可以安装一个 notification plugin

    【讨论】:

      【解决方案2】:

      要将选项传递给 webhook,您需要在 way 中传递它。 Here 你有一个很好的例子来将它与 python 代码集成。

      更新:无论如何,这个answer 是实现目标的方法。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2019-01-09
        • 1970-01-01
        • 2019-07-14
        相关资源
        最近更新 更多