-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
Major
-
Component/s: core
-
Environment:Jenkins 2.289.1 on openshift 3
we set the BUILD_STATUS in the current build to NOT_BUILT thru the standard API
        currentBuild.result = 'NOT_BUILT'
Â
Â
and it's showing up correctly in blue ocean as "not_built" - and also in the logs:
[Pipeline] }[Pipeline] // withCredentials[Pipeline] }[Pipeline] // wrap[Pipeline] }[Pipeline] // node[Pipeline] End of PipelineFinished: NOT_BUILT
Â
but if the WF API (/wfapi/describe) is used:Â
Â
{"_links":{"self":{"href":"https://..../job/mpoct1-cd/job/mpoct1-cd-database-release-13/2/wfapi/describe"}},"id":"2","name":"#2","status":"NOT_EXECUTED","startTimeMillis":1642165415793,"endTimeMillis":1642165463650,"durationMillis":47857,"queueDurationMillis":71,"pauseDurationMillis":0,"stages":\\\\{"_links":{"self":{"href":"https://j..../job/mpoct1-cd/job/mpoct1-cd-database-release-13/2/execution/node/17/wfapi/describe"}},"id":"17","name":"odsPipeline start","execNode":"","status":"SUCCESS","startTimeMillis":1642165458315,"durationMillis":4006,"pauseDurationMillis":0}}Â
Â
one can see the status as "status":"NOT_EXECUTED" which is clearly wrong. This is causing downstream issues for example in the openshift plugin which shows the status "pending" for the job - rather than "completed"
Â