IBM Cloud Docs
Event Notifications for DevSecOps pipelines

Event Notifications for DevSecOps pipelines

IBM Cloud Event Notifications is a service for routing event notifications, alerting you to critical events in your IBM Cloud® account or triggering automated actions via webhooks. You can filter and direct event notifications from IBM Cloud services to email, SMS, Webhooks, and Push Notifications.

For more information, see Getting started with Event Notifications.

Adding an Event Notifications instance to toolchains

After you create an Event Notifications instance, complete the following steps to add it to a toolchain:

  1. From the IBM Cloud console, click the Menu icon > Platform Automation > Toolchains.
  2. On the Toolchains page, select the toolchain to view its Overview page. Alternatively, from your app's Overview page, access the Continuous Delivery card, and click View Toolchain, then click Overview. a. Click Add Tool. b. In the Tool Integrations section, select Event Notifications.
  3. Enter the name for this tool integration as it appears on the Event Notifications card in your toolchain. This name serves as the identifier for the tool integration within your toolchain.
  4. Select the instance to connect to the toolchain.
  5. Click Create Integration to add the Event Notifications tool integration to your toolchain.
  6. From the Overview page of your toolchain > IBM Cloud Tools section, click Event Notifications.

For more information, see Enabling notifications.

Configuring the Event Notifications instance

Including environment properties

After adding the Event Notifications instance to your toolchain, incorporate an environment property named event-notifications and assign the value to 1, across your PR, CI, CD, and CC toolchains.

Configuring sources

  1. Go to your Event Notifications instance.
  2. From the Sources section, select and enable the toolchains from which you want to receive messages.

Configuring destinations

From the Destinations section, click Add and enter the required information.

Configuring topics

  1. From the Topics section, click Create.
  2. Enter a name and select the desired source. You can select multiple sources as needed.

Configuring subscriptions

  1. From the Subscriptions section, click Create.
  2. Enter a name and select the topic and destination.

Sending custom messages to event notifications

To send custom messages from a pipeline separate from one-pipeline standard messages, call the "${COMMONS_PATH}/communications/post_message script , for example:

echo "Here is the custom message" | "${COMMONS_PATH}/communications/post_message