Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

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.

Spike will automatically group repeated incidents and also suppress alerts while incident is open. You can set up alert rules to determine incident severity and take actions accordingly. Incidents are grouped per pipeline (organization, project and pipeline identifier).

Set up instructions

Step 1: Create a Harness integration in the Spike dashboard and copy the webhook URL.

Create integration and service on our dashboard

Step 2:

Prerequisites:

  • A Harness account with permission to edit the pipeline's notification rules

Steps:

  1. Open the pipeline in Pipeline Studio and click Notify in the right-hand side panel.

  2. Click + New Notification Rule.

  3. Enter a Notification Name (for example Spike) and click Next.

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

  5. Click Next. Under Notification Method, select Webhook.

  6. Enter a Webhook Name and paste the Spike webhook URL copied in Step 1 into Webhook URL.

  7. Click Test to send a sample notification, then click Finish.

  8. 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, StepFailed and TriggerFailed open or join an incident. PipelineSuccess resolves the open incident of the same pipeline. StageSuccess resolves a StageFailed incident for the same stage

  • eventData.pipelineIdentifier - Stable pipeline id used to group and resolve incidents

  • eventData.orgIdentifier and eventData.projectIdentifier - Scope the pipeline id to its organization and project

  • eventData.pipelineName - Pipeline name shown in the incident title

  • eventData.stageName and eventData.stageIdentifier - Stage shown in the title, and the stage a StageSuccess resolves

  • eventData.stepName - Step shown in the title for StepFailed

  • eventData.triggerName - Trigger shown in the title for TriggerFailed

  • eventData.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