Jesse Glick commented on Bug JENKINS-26523

I should add that FlowNode.getIconColor does exist, which renders the red or blue ball in the Running Steps view for example, but this is not based on a stored Result; it is red if there is an ErrorAction (exception of some kind), blue otherwise. So even allowing a step to set a custom result on its node would require at least a modest API change, such as a new ResultAction encoding a Result that getIconColor would use as an override, or a similar added option to ErrorAction.

And to be useful, any new per-step status would need to be shown prominently. Running Steps would show it, but this is intended more as a detailed diagnostic view than something a user would normally be browsing. Visualizations like the stage view in Jenkins Enterprise do not show individual steps for the most part, so status would need to be set per stage to be useful.

For the originally described use case, no new feature is necessary, since any integration of the xUnit plugin (presumably via SimpleBuildStep, like the JUnit plugin uses) would set the Run.result to UNSTABLE if there are test failures, which already captures the distinction between a compilation error halting the build early and one or more test failures recorded near the end. A per-FlowNode status would only be useful if you wished to have a number of different stages that could individually be marked as unstable or even failing without preventing subsequent stages from running and being displayed as stable, and if the console log were inadequate to note this (even with specialized markup such as colors).

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to