Jenkins / Slack:使用 slackSend() 后检查消息是否已发送
Jenkins / Slack : check if message has been send after using slackSend()
干草,
我想检查我的 Slack Message 是否已发送到他的聊天室。我找不到任何结果
我可以使用的 slackSend()。
我想在我的 Groovy Scipt 中做这样的事情:
result = slackSend(color: ..., message: ...)
if(result.hasSend()){
//send sth in log
}
感谢您的帮助。
In that case, just wrap the slackSend line in try catch, send success
to logs in try after slackSend line and send failure to logs in catch
block. – Rahul Sharma
干草,
我想检查我的 Slack Message 是否已发送到他的聊天室。我找不到任何结果 我可以使用的 slackSend()。
我想在我的 Groovy Scipt 中做这样的事情:
result = slackSend(color: ..., message: ...)
if(result.hasSend()){
//send sth in log
}
感谢您的帮助。
In that case, just wrap the slackSend line in try catch, send success to logs in try after slackSend line and send failure to logs in catch block. – Rahul Sharma