copyright | lastupdated | keywords | subcollection | ||
---|---|---|---|---|---|
|
2024-11-06 |
DevSecOps, IBM Cloud, compliance |
devsecops |
{{site.data.keyword.attribute-definition-list}}
{: #cd-devsecops-configure-en}
{{site.data.keyword.en_full_notm}} is a service for routing event notifications, alerting you to critical events in your {{site.data.keyword.cloud}} account or triggering automated actions via webhooks. You can filter and direct event notifications from {{site.data.keyword.cloud_notm}} services to email, SMS, Webhooks, and Push Notifications. {: shortdesc}
For more information, see Getting started with {{site.data.keyword.en_short}}.
{: #devsecops-en-add-to-toolchain}
After you create an {{site.data.keyword.en_short}} instance, complete the following steps to add it to a toolchain:
- From the {{site.data.keyword.cloud_notm}} console, click the Menu icon > Platform Automation > Toolchains.
- 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 {{site.data.keyword.en_short}}.
- Enter the name for this tool integration as it appears on the {{site.data.keyword.en_short}} card in your toolchain. This name serves as the identifier for the tool integration within your toolchain.
- Select the instance to connect to the toolchain.
- Click Create Integration to add the {{site.data.keyword.en_short}} tool integration to your toolchain.
- From the Overview page of your toolchain > {{site.data.keyword.cloud_notm}} Tools section, click {{site.data.keyword.en_short}}.
For more information, see Enabling notifications.
{: #devsecops-env-configure}
{: #devsecops-en-configure-envprop}
After adding the {{site.data.keyword.en_short}} 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.
{: #devsecops-en-configure-source}
- Go to your {{site.data.keyword.en_short}} instance.
- From the Sources section, select and enable the toolchains from which you want to receive messages.
{: #devsecops-en-configure-destinations}
From the Destinations section, click Add and enter the required information.
{: #devsecops-en-configure-topics}
- From the Topics section, click Create.
- Enter a name and select the desired source. You can select multiple sources as needed.
{: #devsecops-en-configure-sub}
- From the Subscriptions section, click Create.
- Enter a name and select the topic and destination.
{: #cd-devsecops-send-custom-message-en}
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