webhooks - 如何将 rundeck 作业结果发布到 webhook
问题描述
如何将 rundeck 作业结果发布到 webhook?
在 rundeck 作业 UI 中,我可以选择“webhook”选项,但是要在该框中放入什么?
我知道如何在 python 中编写命令行发布到 webhook,但不知道如何处理 rundeck。
解决方案
您可以将 webhook 变量传递给预定义的 url 以接收它,例如:
http://server/callback?id=${execution.id}&status=${execution.status}&trigger=${notification.trigger}
你可以在这里看到完整的参考:
https://rundeck.org/docs/manual/notifications/webhooks.html
你有一个很好的 CGI 示例来接收 Webhooks 参数:
推荐阅读
- algorithm - _基本算法_ O(n) 答案没有意义?
- javascript - 如何将javascript恢复到原始状态
- c - MPI Allreduce - 分配大小为 216 的块后的地址为 0 字节
- android - 应用程序仅在通知正文中显示最后设置的文本
- sketchup - 更好的圆插值
- android - 长时间运行时如何开始检查(从网络加载数据)
- fortran - 打开文件时,iostat 的值为 2
- python - 为什么 round(x) 和 round(np.float64(x)) 有区别?
- docker - 无法从集群外部访问 LoadBalancer
- php - 如何在视图/刀片中显示来自两个表的数据