Rel: https://issues.jenkins-ci.org/browse/JENKINS-39203
Update to new WarningAction API and mark blocks properly on per-stage result.
https://jenkins.io/blog/2019/07/05/jenkins-pipeline-stage-result-visualization-improvements/#developers
It seems this is only a display problem: See https://github.com/jenkinsci/pipeline-stage-view-plugin/pull/80 for a possible fix.
great! it was quite easy!
I took a quick look at the PR, and the display issue is only half of the problem, see https://github.com/jenkinsci/pipeline-stage-view-plugin/pull/80#issuecomment-580458530. There will still be cases with the PR as it is today where you have no idea what stage caused the build to fail. That can only be fixed by starting to use WarningAction.