Integrating with Slack

You can send event notifications from BMC Release Package and Deployment (RPD) to the Slack channels and users. Event notifications can be configured for different activities in the content processes and processes for channels or environments. In addition, you can configure sign-off notifications for an environment to be sent to Slack channels and users.

You can use the following default notification templates to send notifications: 

  • Completed Deployment
  • Failed Deployment
  • Sign Off Notification
  • Configuration Drift
  • Manual Task

To create custom notification templates, see Creating notifications.

This topic describes how to configure event notification for different activities in the content processes and processes for channels or environments. To configure sign off notification for an environment, see Configuring sign offs for deployment.

Prerequisite for receiving notifications in Slack

Create a Slack bot user for your Slack team. While creating a Slack bot, regenerate and save the bot user API token.


To receive notifications in Slack about process activities

  1. Go to Define > Processes, and then click the Content or Channel/Environment tab.
  2. Click the process for which you want to configure a notification or create a new one.
  3. (For the Content processesDepending on a type of the process activity, click one the following tabs:
    • Deployment Activities
    • Post-Deployment Activities
    • Removal Activities
  4. Click New Activity, and then enter the following information:
    1. In the Name box, enter the name of the activity (for example, Slack notification).
    2. In the Library list, select Send Notification.
    3. (After one activity has been already added) In Dependencies, for Success or Failure, select an activity for which you want to send a notification, and then click Create.
  5. On the process details page, on the Configure tab, enter the following information:
    1. In the Notification Template Name list, select a template for your notification.
    2. In the Use Slack Notification list, select Yes.
    3. (Optional) In the Slack URL box, provide a URL to the Slack API. The default value used is https://slack.com/api.
    4. In the Slack API Token box, enter the bot user API token that was generated during the bot creation.

    5. In the Slack User/Channel box, enter a Slack user or channel name whom you want to send notifications, and then click . Add as many users and channels as needed.

      Tip

      You can use a global variable to specify Slack API Token, Slack URL, or Slack User/Channel. For example, to use a global variable for Slack API Token, you must create a property that defines a bot user API token for the appropriate package (for example, the Slack_bot_token property), and then refer to this property as ${Slack_bot_token}.

    6. In the Send logs of dependent activities list, select if you want to receive logs of activities dependent on the current activity.

      Note

      For the Content activities, this option is available only after you set the dependencies between the activities.

  6. Click Save.

Related topics

Creating notifications

Send Notification activity library

Was this page helpful? Yes No Submitting... Thank you

Comments