Skip to main content

Centralised notification for Pipeline

note

Currently, this feature is behind the feature flag PL_CENTRAL_NOTIFICATIONS. Contact Harness Support to enable the feature.

With notifications management, you can configure notifications for the following resource types:

  1. Pipeline
  2. Delegate
  3. Chaos Experiment

You can set up rules to receive notifications based on specific events or conditions for each of these resource types.

We are going to discuss about setting up notification via notification management for Pipeline at a given scope.

You can set up notification for Pipeline at following scope: Account, Organization and Project Level.

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:-

  1. In Harness, go to Organization Settings.
  2. Under General, select Notifications Management.

  1. Under Overview, provide Notification Name and Continue to select Resource type.

  1. 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.

  1. 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:-

  1. Pipeline Start
  2. Pipeline Success
  3. Pipeline Failed
  4. Stage Start
  5. Stage Success
  6. Stage Failed
note

Stage 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.

  1. Under Set Channels, Select Channels where you want notification to be sent.

Under Select Channel you can chose the already created channel at that scope or you can create a New Channel.

Under New Channel provide Channel Name and select Channel Type.

  1. Select Submit to save your notification configuration.

You can set up notification at Account and Project Level following the same steps outlined above.