Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-28981

Allow Plot Plugin to plot data for failed builds

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • plot-plugin
    • None

      The plot-plugin doesn't plot data for failed builds. It should allow the option to plot data for failed builds, otherwise data points get lost.

          [JENKINS-28981] Allow Plot Plugin to plot data for failed builds

          Reinhold Füreder added a comment - - edited

          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?

          vgaidarji Can you please help/enlighten me, since you were the brave person/hero that added support for pipelines to plot plugin?

          Reinhold Füreder added a comment - - edited 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? vgaidarji Can you please help/enlighten me, since you were the brave person/hero that added support for pipelines to plot plugin?

          reinholdfuereder Well, I don't have an immediate answer to this and deeper investigation required. 
          I'm more focused now (when I have free time) on JENKINS-48465.
          I definitely had plans to look at existing bugs too, but no ETA (sorry, busy days).

          Veaceslav Gaidarji added a comment - reinholdfuereder Well, I don't have an immediate answer to this and deeper investigation required.  I'm more focused now (when I have free time) on JENKINS-48465 . I definitely had plans to look at existing bugs too, but no ETA (sorry, busy days).

          Update to my aforementioned failure symptom:

          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?

          Seemingly the "Plot" is not shown anymore, when the respective plot step is not called due to skipping the stage containing it in the last pipeline build. Which is very undesirable in my case: I just would like to ALWAYS see the "Plot" even though there are missing data points for builds where the respective stage was skipped (which also applies for the last build).

          Luckily I have found a (surprising) workaround for that: in case of skipping the stage (and plot step) I am instead calling the plot step with just the same arguments for group, title and csvFileName (but NOT any of the other normally needed arguments like csvSeries etc)! (And this workaround is extracted into my Jenkins pipeline shared library to avoid duplications of the three arguments and the node context needed by plot step...)

          Reinhold Füreder added a comment - Update to my aforementioned failure symptom: 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? Seemingly the "Plot" is not shown anymore, when the respective plot step is not called due to skipping the stage containing it in the last pipeline build. Which is very undesirable in my case: I just would like to ALWAYS see the "Plot" even though there are missing data points for builds where the respective stage was skipped (which also applies for the last build). Luckily I have found a (surprising) workaround for that: in case of skipping the stage (and plot step) I am instead calling the plot step with just the same arguments for group , title and csvFileName (but NOT any of the other normally needed arguments like csvSeries etc)! (And this workaround is extracted into my Jenkins pipeline shared library to avoid duplications of the three arguments and the node context needed by plot step...)

            nidaley nidaley
            adulvac Andrei Dulvac
            Votes:
            5 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated: