每次构建失败后,我们都应该收到松弛通知
使用以下groovy脚本导入作业后,构建失败后我们不会收到松弛通知
在已构建的作业中,如果我取消单击并单击notifyEveryFailure
并单击“保存”(这实际上意味着我没有更改作业中的任何内容),它将开始工作。
slackNotifier {
notifyBackToNormal(false)
notifySuccess(false)
notifyRepeatedFailure(false)
startNotification(false)
notifyAborted(false)
notifyFailure(false)
notifyNotBuilt(false)
notifyUnstable(false)
notifyEveryFailure(true)
notifyNotBuilt(false)
notifyUnstable(false)
tokenCredentialId("myid")
baseUrl("hook-URL")
}