Centralised notification for Pipeline
Currently, the Centralised Notification feature is behind the feature flag PL_CENTRAL_NOTIFICATIONS
, and Pipeline specific notifications are behind PIPE_CENTRALISED_NOTIFICATION
. You will need both these flags turned on to use this feature. Contact Harness Support to enable them.
With notifications management, you can configure notifications for the following resource types:
- Pipeline
- Delegate
- Chaos Experiment
To receive notifications for specific events or conditions related to these resource types, you need to configure appropriate rules. While notifications can be set up for all the above resources, we will configure a centralised notification for Pipelines at a specific scope for now.
You can set up notification for Pipeline at all the scopes: Account, Organization and Project.
Account Level
At account level, you will be able to configure notifications for pipelines across a Specific Organization or All Organization.
Organization Level
At Organization level, you will be able to configure notifications for pipeline across a Specific Project or All Projects.
Project Level
At the pipeline level, you can configure notifications for All Pipelines.
Setting Up Notifications Management
In this example, we are going to discuss setting up notification management of Pipeline resource at Organization Level:-
-
In Harness, go to Organization Settings.
-
Under General, select Notifications Management.
-
Under Overview, provide Notification Name and Continue to select Resource type.
-
Under Resources, Select Resource Type as Pipeline.
Under Select Project you can either select All Projects under the organization or you can select Specified Project if you want to configure notification for specific projects within the organization. Click on Continue to set conditions for notification.
-
Under Condition , select + Add Condition to define pipeline events based on which you want to be notified.
Under events you can select the following pipeline events:-
- Pipeline Start
- Pipeline Success
- Pipeline Failed
- Stage Start
- Stage Success
- Stage Failed
noteStage start/success/failed events will apply to all stages within a pipeline. There is no option to configure notifications for specific stages, if you want to do that you can configure it via Pipeline level notification.
Under Create Condition provide, Condition Name and Select Pipeline Events. Click on Continue to set channel where you want to send the notification.
-
Under Set Channels, Select Channels where you want notification to be sent.
Under Select Channel you can choose the already created channel at that scope or you can create a New Channel.
To configure a New Channel, click New Channel and enter a Channel Name.
Next, choose a Connectivity Mode—you can send notifications either directly through the Harness Platform or via a Harness Delegate.
If you choose to send notifications through a Harness Delegate, select the appropriate delegate in the Delegate Setup window.
Once the connectivity mode is configured, select the Channel Type and add details related to the channel type to proceed.
-
Select Submit to save your notification configuration.
You can set up notification at Account and Project Level following the same steps outlined above.