Skip to content

Latest commit

 

History

History
84 lines (74 loc) · 1.95 KB

File metadata and controls

84 lines (74 loc) · 1.95 KB

Build webhook events

Events

EventDescription
build.scheduledA build has been scheduled
build.runningA build has started running
build.finishedA build has finished
build.failingA build is failing

Request body data

PropertyTypeDescription
build Build The build this notification relates to
pipeline Pipeline The pipeline this notification relates to
sender String The user who created the webhook

Example request body:

{
  "event": "build.scheduled",
  "build": {
    "...": "..."
  },
  "pipeline": {
    "...": "..."
  },
  "sender": {
    "id": "8a7693f8-dbae-4783-9137-84090fce9045",
    "name": "Some Person"
  }
}

Finding out if a build is blocked

If a build is blocked, look for blocked: true in the build.finished event

Example request body for blocked build:

{
  "event": "build.finished",
  "build": {
    "...": "...",
    "blocked": true,
    "...": "..."
  },
  "pipeline": {
    "...": "..."
  },
  "sender": {
    "id": "0adfbc27-5f72-4a91-bf61-5693da0dd9c5",
    "name": "Some person"
  }
}

📘 To determine if an Eventbridge notification is blocked However, to determine if an Eventbridge notification is blocked, look for "state": "blocked". , like in this sample Eventbridge request.