-
Bug
-
Resolution: Unresolved
-
Major
-
-
Blue Ocean 1.4 - beta 3, Blue Ocean - Candidates, Blue Ocean 1.6 - beta 2
In many cases there is a failure in a pipeline run which does not show up in a helpful way in the pipeline results screen.
this can manifest as some failed stages that are missing the key information.
Shows just failed stages and steps (see attached), but is missing the key error:
Also: hudson.AbortException: Queue task was cancelled at org.jenkinsci.plugins.workflow.support.steps.ExecutorStepExecution$CancelledItemListener.onLeft(ExecutorStepExecution.java:213) at hudson.model.Queue$LeftItem.enter(Queue.java:2723) at hudson.model.Queue$Item.cancel(Queue.java:2311) at hudson.model.Queue.cancel(Queue.java:745) at org.jenkinsci.plugins.workflow.support.steps.ExecutorStepExecution.stop(ExecutorStepExecution.java:130) at org.jenkinsci.plugins.workflow.cps.CpsThread.stop(CpsThread.java:296) at org.jenkinsci.plugins.workflow.cps.CpsBodyExecution$2.onSuccess(CpsBodyExecution.java:260) at org.jenkinsci.plugins.workflow.cps.CpsBodyExecution$2.onSuccess(CpsBodyExecution.java:247) at org.jenkinsci.plugins.workflow.cps.CpsFlowExecution$4$1.run(CpsFlowExecution.java:746) at org.jenkinsci.plugins.workflow.cps.CpsVmExecutorService$1.run(CpsVmExecutorService.java:35) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at hudson.remoting.SingleLaneExecutorService$1.run(SingleLaneExecutorService.java:112) at jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28)
which is in the full log.
Another case is attached where the pipeline shows just one failed stage, but no failed steps at all.
In this case there was a stack trace in the log file (also attached) which showed the real error.
What should happen:
Given the myriad ways in which a pipeline run can fail, often due to infra or configuration, it seems too much "whack a mole" to try and shoehorn all errors into steps/stages.
perhaps a better approach is to identity failure cases and err on the side of showing the fill log "tail" on screen, perhaps as the final step visible. This would make all "misc" failures clear.
The pipeline graph is useful in these cases, just not the logs shown in steps.
raised by teilo
This may make the following irrelevant:
https://issues.jenkins-ci.org/browse/JENKINS-46715
https://issues.jenkins-ci.org/browse/JENKINS-45380