如何使用相同的消息通知多个松弛通道

时间:2018-06-04 10:41:57

标签: slack jenkins-groovy

这个脚本是groovy和 $ Channel是我的频道名称的变量,以及我希望传递固定频道名称的

松弛的通知我按下面的方式使用===

slackNotifier
{
    startNotification(false)
    notifyNotBuilt(false)
    notifyAborted(false)
    notifyFailure(true)
    notifySuccess(false)
    notifyUnstable(true)
    notifyBackToNormal(false)
    notifyRepeatedFailure(true)
    includeTestSummary(true)
    includeCustomMessage(true)                                      
    room('$Channel','#shrikant')
    //buildServerUrl(null)
    sendAs(null)
    commitInfoChoice('NONE')
}

上面的代码执行后,会抛出错误,如下所示

  

错误:(workbench_test.groovy,第136行)没有方法签名:   javaposse.jobdsl.plugin.structs.DescribableContext.room()是   适用于参数类型:(java.lang.String,java.lang.String)   值:[$ Channel,#rohit]

可能的解决方案:wait(),grep(),dump(),any(),find()

有人可以帮忙吗?

0 个答案:

没有答案
相关问题