Integrate Spike with Harness
Connect Harness to Spike for real-time alerts on failed pipelines, stages and steps, with auto-resolution when the pipeline succeeds.
Overview
Harness is a software delivery platform for CI/CD. Its pipeline notification rules can send a webhook whenever a pipeline, stage or step changes state.
With Spike's integration, you can receive real-time alerts for:
Pipeline Failures: A pipeline execution fails.
Stage and Step Failures: A stage or step inside a pipeline fails.
Trigger Failures: A trigger fails to start a pipeline.
Recovery: The pipeline succeeds again, and the incident resolves on its own.
Set up instructions
Step 1: Create a Harness integration in the Spike dashboard and copy the webhook URL.
Create integration and service on our dashboardStep 2:
Prerequisites:
A Harness account with permission to edit the pipeline's notification rules
Steps:
Open the pipeline in Pipeline Studio and click Notify in the right-hand side panel.
Click + New Notification Rule.
Enter a Notification Name (for example
Spike) and click Next.Under Pipeline Events, select the events to send:
Pipeline Failed
Pipeline Success (needed for auto-resolution)
Stage Failed
Stage Success (resolves a Stage Failed incident for the same stage)
Step Failed
Trigger Failed (optional)
Pipeline Failed and Pipeline Success are the minimum. The Stage, Step and Trigger events are optional.
Do not select Pipeline Start, Stage Start or Pipeline End. Spike never opens or resolves an incident from them.
Click Next. Under Notification Method, select Webhook.
Enter a Webhook Name and paste the Spike webhook URL copied in Step 1 into Webhook URL.
Click Test to send a sample notification, then click Finish.
Make sure the rule is switched on in the notification list, then click Apply Changes and Save.
Required fields:
eventData.eventType- which event happened. A missing or unknown value is treated as a failure.eventData.pipelineIdentifier- ties a failure to its recovery. Without it Spike falls back to matching by title, so recovery by pipeline needs this field.
Optional fields that sharpen the incident: orgIdentifier, projectIdentifier, pipelineName, stageName, stageIdentifier, stepName, triggerName and errorMessage.
Test the Integration:
Run a pipeline that you expect to fail and verify the incident appears in Spike
Run it again successfully and verify the incident resolves
Event payload structure
Harness sends the notification as a JSON body wrapped in eventData. Failure example:
Recovery example:
Key Fields:
eventData.eventType-PipelineFailed,StageFailed,StepFailedandTriggerFailedopen or join an incident.PipelineSuccessresolves the open incident of the same pipeline.StageSuccessresolves aStageFailedincident for the same stageeventData.pipelineIdentifier- Stable pipeline id used to group and resolve incidentseventData.orgIdentifierandeventData.projectIdentifier- Scope the pipeline id to its organization and projecteventData.pipelineName- Pipeline name shown in the incident titleeventData.stageNameandeventData.stageIdentifier- Stage shown in the title, and the stage aStageSuccessresolveseventData.stepName- Step shown in the title forStepFailedeventData.triggerName- Trigger shown in the title forTriggerFailedeventData.errorMessage- Harness's own description of the failure, used as the incident title
The event type is read ignoring case.
Incident titles
A failure leads with Harness's own sentence, without the trailing Please check execution logs. and its final period, followed by where it failed:
A stage failure adds the stage (deploy-payments-api › Deploy to prod), a step failure the stage and step, and a trigger failure the trigger (deploy-payments-api (trigger nightly-main)). Titles are capped at 200 characters by shortening Harness's sentence.
When eventData.pipelineIdentifier is missing or empty, Spike groups by the title instead, so the title leaves the sentence out and stays the same on every run: Pipeline failed — deploy-payments-api. A recovery is logged as Pipeline deploy-payments-api succeeded or Stage Deploy to prod succeeded in deploy-payments-api.
Last updated

