Drone · Example Payload

Drone Build Example

CI/CDContinuous IntegrationContinuous DeliveryDevOpsContainersDockerBuild AutomationOpen SourceSelf-Hosted

Drone Build Example is an example object payload from Drone, with 28 top-level fields. It illustrates the shape of data this provider's APIs accept or return.

Top-level fields

idrepo_idtriggernumberstatuseventactionlinktimestampmessagebeforeafterrefsourcetargetauthor_loginauthor_nameauthor_emailauthor_avatarsenderparamsdebugstartedfinishedcreatedupdatedversionstages

Example Payload

Raw ↑
{
  "id": 1,
  "repo_id": 1,
  "trigger": "octocat",
  "number": 42,
  "status": "passing",
  "event": "push",
  "action": "",
  "link": "https://github.com/octocat/hello-world/compare/a6b5e4cd...a84d88e2",
  "timestamp": 1716000000,
  "message": "update readme",
  "before": "a6b5e4cd7ead6a9b4c3e5f2d1g8h7i6j",
  "after": "a84d88e289d715c44f6cd75e2feaf07d",
  "ref": "refs/heads/main",
  "source": "main",
  "target": "main",
  "author_login": "octocat",
  "author_name": "The Octocat",
  "author_email": "octocat@github.com",
  "author_avatar": "https://avatars.githubusercontent.com/u/583231",
  "sender": "octocat",
  "params": {},
  "debug": false,
  "started": 1716000010,
  "finished": 1716000120,
  "created": 1716000005,
  "updated": 1716000120,
  "version": 3,
  "stages": [
    {
      "id": 1,
      "build_id": 1,
      "number": 1,
      "name": "default",
      "kind": "pipeline",
      "type": "docker",
      "status": "passing",
      "exit_code": 0,
      "os": "linux",
      "arch": "amd64",
      "started": 1716000015,
      "stopped": 1716000118,
      "created": 1716000005,
      "updated": 1716000120,
      "version": 3,
      "on_success": true,
      "on_failure": false,
      "steps": [
        {
          "id": 1,
          "step_id": 1,
          "number": 1,
          "name": "test",
          "status": "passing",
          "exit_code": 0,
          "started": 1716000020,
          "stopped": 1716000080,
          "version": 2,
          "image": "golang:1.21"
        },
        {
          "id": 2,
          "step_id": 1,
          "number": 2,
          "name": "build",
          "status": "passing",
          "exit_code": 0,
          "started": 1716000081,
          "stopped": 1716000115,
          "version": 2,
          "image": "golang:1.21"
        }
      ]
    }
  ]
}