I seem to have stumbled over this issue as well (see my comment for
JENKINS-48215 for a scripted pipeline), and I am also of the opinion that it does not make sense.
However, in my case the exact failure symptom is that there was no "Plots" available at all, until there is a first non-failed build! I.e. one "unstable" build was sufficient to start showing it at long last.
And luckily all results – even from failed builds – are there.
=> So actually this does sound like a different problem maybe?
Hm, somehow this is a "bit" inconsistent/magic:
Now, when the latest build failed OR when it skipped the plot step (due to skipping the stage containing it), all the "Plots" are hidden again!? No the previous is not correct, my failure symptom is more confusing:
I don't see any 'Plots' anymore (i.e. it was already shown) for one (scripted) pipeline where the 'plot' step (due to skipping the stage containing it) is sometimes skipped. The data behind would be IMHO correctly available (job folder contains 'plot-...csv' file with data). Why/when are plots shown or not shown?
Veaceslav Gaidarji Can you please help/enlighten me, since you were the brave person/hero that added support for pipelines to plot plugin?