Jenkins BlueOcean Test JSON Representation

From NovaOrdis Knowledge Base
Revision as of 20:04, 13 April 2020 by Ovidiu (talk | contribs) (→‎Skipped Test)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Internal

Failed Test

{
  "_class": "io.jenkins.blueocean.service.embedded.rest.junit.BlueJUnitTestResult",
  "id": "io.jenkins.blueocean.service.embedded.rest.junit.BlueJUnitTestResult:[...]",
  "name": "Testing / Substage A / Substage B / ... / ... / ...",
  "status": "FAILED",
  "state": "REGRESSION",
  "age": 1,
  "duration": 0.869,
  "hasStdLog": false,
  "errorDetails": "JavaException: [...]",
  "errorStackTrace": "",
 
  "_links": {
    "self": {
      "_class": "io.jenkins.blueocean.rest.hal.Link",
      "href": "/blue/rest/organizations/jenkins/pipelines/<pipeline-name>/branches/<branch>/runs/<run-id>/tests/<test-id>/"
    },
    "stdOut": {
      "_class": "io.jenkins.blueocean.rest.hal.Link",
      "href": "/blue/rest/organizations/jenkins/pipelines/<pipeline-name>/branches/<branch>/runs/<run-id>/tests/<test-id>/stdOut/"
    },
    "stdErr": {
      "_class": "io.jenkins.blueocean.rest.hal.Link",
      "href": "/blue/rest/organizations/jenkins/pipelines/<pipeline-name>/branches/<branch>/runs/<run-id>/tests/<test-id>/stdErr/"
    }
  }
}

Passed Test

{
  "_class": "io.jenkins.blueocean.service.embedded.rest.junit.BlueJUnitTestResult",
  "id": "io.jenkins.blueocean.service.embedded.rest.junit.BlueJUnitTestResult:[...]",
  "name": "Testing / Substage A / Substage B / ... / ... / ...",
  "status": "PASSED",
  "state": "UNKNOWN",
  "age": 0,
  "duration": 0.869,
  "hasStdLog": false,
  "errorDetails": null,
  "errorStackTrace": null,
 
  "_links": {
    "self": {
      "_class": "io.jenkins.blueocean.rest.hal.Link",
      "href": "/blue/rest/organizations/jenkins/pipelines/<pipeline-name>/branches/<branch>/runs/<run-id>/tests/<test-id>/"
    },
    "stdOut": {
      "_class": "io.jenkins.blueocean.rest.hal.Link",
      "href": "/blue/rest/organizations/jenkins/pipelines/<pipeline-name>/branches/<branch>/runs/<run-id>/tests/<test-id>/stdOut/"
    },
    "stdErr": {
      "_class": "io.jenkins.blueocean.rest.hal.Link",
      "href": "/blue/rest/organizations/jenkins/pipelines/<pipeline-name>/branches/<branch>/runs/<run-id>/tests/<test-id>/stdErr/"
    }
  }
}

Skipped Test

{
  "_class": "io.jenkins.blueocean.service.embedded.rest.junit.BlueJUnitTestResult",
  "id": "io.jenkins.blueocean.service.embedded.rest.junit.BlueJUnitTestResult:[...]",
  "name": "Testing / Substage A / Substage B / ... / ... / ...",
  "status": "SKIPPED",
  "state": "UNKNOWN",
  "age": 35,
  "duration": 0.869,
  "hasStdLog": false,
  "errorDetails": null,
  "errorStackTrace": null,
 
  "_links": {
    "self": {
      "_class": "io.jenkins.blueocean.rest.hal.Link",
      "href": "/blue/rest/organizations/jenkins/pipelines/<pipeline-name>/branches/<branch>/runs/<run-id>/tests/<test-id>/"
    },
    "stdOut": {
      "_class": "io.jenkins.blueocean.rest.hal.Link",
      "href": "/blue/rest/organizations/jenkins/pipelines/<pipeline-name>/branches/<branch>/runs/<run-id>/tests/<test-id>/stdOut/"
    },
    "stdErr": {
      "_class": "io.jenkins.blueocean.rest.hal.Link",
      "href": "/blue/rest/organizations/jenkins/pipelines/<pipeline-name>/branches/<branch>/runs/<run-id>/tests/<test-id>/stdErr/"
    }
  }
}