• Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • plot-plugin
    • None
    • Matrix Project Plugin

      When using a Multi-configuration project (from the Matrix Project Plugin) together with the Plot Plugin I've found two issues:

      1. Plots are not displayed after restart. No plots are displayed until you run the project at least once after the restart.
      2. When configuring the project all the options are not displayed as they should. For example clicking on the "Load data from csv file" radio button does not show the options "Include all columns", "Include columns by name" etc. instead "Uncaught TypeError: Cannot read property 'next' of undefined" is written to the javascript console. (This might require more than one plot to reproduce, not sure)

          [JENKINS-34046] Plots in Multi-configuration project

          Max Fractal added a comment -

          I can confirm the first issue. But in our case, after restart we don't see broken images, but the message that says that there are no plots yet. After we run the job once, all data comes back. Can we increase the priority? Thanks.

          Max Fractal added a comment - I can confirm the first issue. But in our case, after restart we don't see broken images, but the message that says that there are no plots yet. After we run the job once, all data comes back. Can we increase the priority? Thanks.

          Lars added a comment -

          Annoying bug since the plots not only disappear after restart. They also seem to disappear some time after build.
          That makes this plugin unusable.

          Lars added a comment - Annoying bug since the plots not only disappear after restart. They also seem to disappear some time after build. That makes this plugin unusable.

          Lars added a comment -

          I looked into the code. In case of MatrixProjects the plots are stored in maps. On initialization these maps are not filled. So no plots are shown after restart. I changed this, but the next problem was that the project the plots belong to was null after initialization. (A project in this case is one configuration of a multi-configuration project.) In my opinion connecting a plot to a configuration is completely unneccessary since all configurations have the same plots (with different values of course, but the plots are the same).
          But I did not change that and tried to find a minimally invasive solution by using the null project plots in case no plots are found for a project.
          With my pull request https://github.com/jenkinsci/plot-plugin/pull/24 there are plots shown even after restart.

          Lars added a comment - I looked into the code. In case of MatrixProjects the plots are stored in maps. On initialization these maps are not filled. So no plots are shown after restart. I changed this, but the next problem was that the project the plots belong to was null after initialization. (A project in this case is one configuration of a multi-configuration project.) In my opinion connecting a plot to a configuration is completely unneccessary since all configurations have the same plots (with different values of course, but the plots are the same). But I did not change that and tried to find a minimally invasive solution by using the null project plots in case no plots are found for a project. With my pull request https://github.com/jenkinsci/plot-plugin/pull/24 there are plots shown even after restart.

            nidaley nidaley
            johnv John V
            Votes:
            2 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated: