Jenkins BlueOcean Build (Run) JSON Representation

From NovaOrdis Knowledge Base
Jump to navigation Jump to search

Internal

Overview

{
    "_class": "io.jenkins.blueocean.rest.impl.pipeline.PipelineRunImpl",

    "id": "28",
    "name": null,
    "organization": "jenkins",
    "pipeline": "task%2Ffeature-1",
    "type": "WorkflowRun",
    "description": "2a003a",
    "estimatedDurationInMillis": 1000,
    "replayable": true,

    "causes": [
      {
        "_class": "io.jenkins.blueocean.service.embedded.rest.AbstractRunImpl$BlueCauseImpl",
        "shortDescription": "Branch indexing"
      }
    ],

    "commitId": "4a003a415b09ae8d8494511c7c7e3a5bdc7b5f77",
    "commitUrl": "https://github.com/some-org/some-project/commit/4a003a415b09ae8d8494511c7c7e3a5bdc7b5f77",
    "branch": {
      "isPrimary": false,
      "issues": [],
      "url": "https://github.com/some-org/some-project/tree/task/feature-1"
    },
    "pullRequest": null,

    "enQueueTime": "2020-04-06T11:16:22.808-0700",
    "startTime": "2020-04-06T11:16:22.812-0700",
    "endTime": "2020-04-06T17:38:18.676-0700",
    "durationInMillis": 22915864,

    "state": "FINISHED",
    "result": "ABORTED",
    "runSummary": "aborted",

    "artifactsZipFile": null,
    "causeOfBlockage": null,

    "changeSet": [
      {
        "_class": "io.jenkins.blueocean.service.embedded.rest.ChangeSetResource",
        "affectedPaths": [
          ...
        ],
        "commitId": "da4f666fd8a296c362352ffa60b1b1793baf3ffc",
      },
      ...
    ],

    "_links": {
      "self": { ... },
      "parent": { ... },
      "nodes": {
        "_class": "io.jenkins.blueocean.rest.hal.Link",
        "href": "/blue/rest/organizations/jenkins/pipelines/multi-branch-pipeline-A/branches/task%2Ffeature-1/runs/28/nodes/"
      },
      "log": {
        "_class": "io.jenkins.blueocean.rest.hal.Link",
        "href": "/blue/rest/organizations/jenkins/pipelines/multi-branch-pipeline-A/branches/task%2Ffeature-1/runs/28/log/"
      },
      "tests": { ... },
      "blueTestSummary": { ... },
      "actions": { ... },
      "steps": { ... },
      "changeSet": { ... },
      "artifacts": { ... },
      "prevRun": { ... },
      "nextRun": { ... }
    }
}