In Flashduty On-call
You can obtain an integration push URL in either of the following ways.
Use a dedicated integration
- In the Flashduty console, select Channel and open a channel
- Select Configuration → Integrations → Private integration, then click Add an integration
- Select Harness, then click Save
- Open the generated integration card and copy the Push URL
Use a shared integration
- In the Flashduty console, select Integration Center → Alert Events
- Select Harness and enter an integration name
- Configure the default route and select a channel; after creation, add more rules under Route if needed
- Click Save and copy the generated Push URL
Configure Harness
Every Harness SaaS edition supports notification rules on a pipeline. You need the Create/Edit permission on the pipeline. The steps below configure one pipeline. If centralised notifications are enabled on your account, you can also configure many pipelines at once under Account Settings → Notification Rules; choose the events and the notification method the same way.
1
Create a notification rule
- In Harness, open the pipeline to connect and go to Pipeline Studio
- Click Notify on the right, then select Notifications
- Enter a rule name (for example
flashduty), then click Continue
2
Select pipeline events
Select the Pipeline Events in the table below. Select failure and success events in pairs: with failure events only, alerts never recover automatically.
You don’t need Pipeline Start, Pipeline End, Pipeline Pause, Stage Start, Step Failed, Waiting for User Action or Pipeline Resumed. If they are selected, Flashduty returns success and creates no alert.Trigger Failed requires the
PIPE_ENABLE_TRIGGER_FAILED_NOTIFICATION feature flag; contact Harness Support to enable it.3
Configure the Webhook method
- In Notification Method, select Webhook
- Paste the full Flashduty push URL, including
integration_key, into Enter the URL to be called - No headers are needed
- Don’t select a Notification Template: Flashduty parses Harness’s default request body, and a request built from a custom template returns success without creating an alert
- For Connectivity Mode, select Connect through Harness Platform; if only your delegates can reach the internet, select Connect through Harness Delegate and choose a delegate
- Click Test to check that the URL is reachable, then click Submit
4
Verify
Run the pipeline so that it fails (for example, run
exit 1 in a Shell Script step) and confirm that Flashduty receives an active alert. Fix it, run the same pipeline again until it succeeds, and confirm that the alert recovers.Alert Key
Flashduty builds the Alert Key from the pipeline and stage, so the failure and success events of one object share one Alert Key:
Changes to the display names of pipelines, stages and triggers, to the execution ID (
planExecutionId) and to the error message don’t change the Alert Key. Failure or success events missing a field from the table are rejected.
If both pipeline and stage events are selected, one failure raises two alerts: one for the pipeline and one for the failed stage. Select the events of one level only if you need just one.
Status and severity
When alerts do not recover automatically
In these cases no later success event arrives for the same object, so the alert does not recover automatically:
- A trigger failure (
TriggerFailed): Harness has no matching recovery event - The pipeline is deleted after the failure, or never runs again
- The notification rule selects only failure events, or Stage Success covers fewer stages than Stage Failed
Labels
User emails never become labels.
Troubleshooting
- No alerts arrive: Check that the notification rule is enabled, that Notification Method is Webhook, and that the push URL is complete and includes
integration_key. With delegate connectivity, check that the delegate can reach the Flashduty push URL - Alerts don’t recover: Check that Pipeline Success (or Stage Success) is selected and that the same pipeline has since run successfully
- Requests arrive but no alert is created: The rule uses a custom Notification Template, or selects only start, end, pause, waiting-for-user-action or similar events. Flashduty returns success without creating an alert
- One failure raises two alerts: Both pipeline and stage events are selected; see the Alert Key section above