Jenkins BlueOcean Test JSON Representation: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
No edit summary
Line 3: Line 3:


=Failed Test=
=Failed Test=
<syntaxhighlight lang='json'>
{
  "_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/"
    }
  }
}
</syntaxhighlight>


=Skipped Test=
=Skipped Test=


=Passed Test=
=Passed Test=

Revision as of 20:00, 13 April 2020

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/"
    }
  }
}

Skipped Test

Passed Test