Jenkins BlueOcean Test JSON Representation: Difference between revisions
Jump to navigation
Jump to search
(Created page with " Failed test: Skipped test: Passed test:") |
|||
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
=Internal= | |||
* [[Jenkins_Concepts#Test_JSON_Representation|Jenkins Concepts]] | |||
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> | |||
=Passed 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": "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/" | |||
} | |||
} | |||
} | |||
</syntaxhighlight> | |||
=Skipped 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": "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/" | |||
} | |||
} | |||
} | |||
</syntaxhighlight> |
Latest revision as of 20:04, 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/"
}
}
}
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/"
}
}
}