简体   繁体   中英

@channel Slack notification in Jenkins post-build action

I am integrating a Slack bot in Jenkins post-build action. I have been able to send notification and create custom messages using the Slack plugin, however I wanted to send a @channel or @bot in the bot message which can be used to urgently notify the team.

Is there any existing way/hack to do this? Unfortunately, using these keywords via the plugin just result in them being rendered as plain text, without any broadcast action.

To mention someone or a channel you can use one of the following syntax:

  • <!channel>
  • <!group>
  • <!here>
  • <!everyone>
  • <@USERID>
  • <#CHANNELID>

See Basic message formatting for more information.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM