詹金斯建立失败通知-MS团队
我通过Microsoft团队进行了詹金斯(Jenkins)工作的设置通知 - 成功,失败,流产等。
pipeline {
options {
office365ConnectorWebhooks([[
startNotification: true,
notifySuccess: true,
notifyFailure: true,
notifyAborted: true,
notifyBackToNormal: true,
url: 'webhook_url'
]]
)
} }
在上面的脚本的帮助下,除了失败通知以外,我收到了所有通知。
即使我流产了我收到的通知的工作。
谁能在这个问题上提供帮助?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用
POST
部分和始终
条件如下:请注意,无论管道完成状态如何,您都可以定义通知步骤:请注意,语法已更改。
要了解有关插件用法的更多信息:
Office 365 Connector Steps
大约Jenkins使用后:
jenkins pipeline syntax
You can define a notification step regardless of the pipeline completion status using the
post
section and thealways
condition like the following:Note that the syntax has changed.
To learn more about the plugin usage:
Office 365 Connector plugin
Office 365 Connector steps
And about the Jenkins post usage:
Jenkins Pipeline Syntax