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

Plot plugin doesn't display data points from previous builds in case of multiple .properties files

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • plot-plugin
    • None
    • Plot plugin 2.1.1, Jenkins ver. 2.176.1, Chrome

      If a single properties file is provided, previous builds data points are shown. Below is the snippet

       

                      plot csvFileName: '$WORKSPACE/Throughput_all_plots.csv',
                      group: 'Throughput_Plots',
                      keepRecords: true,
                      //latest data point
                      propertiesSeries: [[file: 'DRThroughputTestReport.properties', label: 'DR_Throughput']],
                      numBuilds: '10',
                      style: 'line',
                      title: 'Throughput_Plot',
                      yaxis: 'RedoLogThroughput(MBps)',
                      yaxisMaximum: '20',
                      yaxisMinimum: '0'
      

      But in case of two of them, it only shows current build's data point 

                      plot csvFileName: '$WORKSPACE/Throughput_all_plots.csv',
                      group: 'Throughput_Plots',
                      keepRecords: true,
                      propertiesSeries: [[file: 'DRThroughputTestReport.properties', label: 'DR_Throughput'], [file: 'HAThroughputTestReport.properties', label: 'HA_Throughput']],
                      numBuilds: '10',
                      style: 'line',
                      title: 'Throughput_Plot',
                      yaxis: 'RedoLogThroughput(MBps)',
                      yaxisMaximum: '20',
                      yaxisMinimum: '0'
      

      This is also the case when I create 2 different plots altogether.

              success{
              node(params.MASTER){
              script{
                      plot csvFileName: '$WORKSPACE/Throughput_all_plots.csv',
                      group: 'Throughput_Plots',
                      keepRecords: true,
                      propertiesSeries: [[file: 'DRThroughputTestReport.properties', label: 'DR_Throughput'], [file: 'HAThroughputTestReport.properties', label: 'HA_Throughput']],
                      numBuilds: '10',
                      style: 'line',
                      title: 'Throughput_Plot',
                      yaxis: 'RedoLogThroughput(MBps)',
                      yaxisMaximum: '20',
                      yaxisMinimum: '0'
      
      
                      plot csvFileName: '$WORKSPACE/HAThroughput_all_plots.csv',
                      group: 'HAThroughput_Plots',
                      keepRecords: true,
      
                      propertiesSeries: [[file: 'HAThroughputTestReport.properties', label: '']],
                      style: 'line',
                      title: 'HAThroughput_Plot',
                      yaxis: 'RedoLogThroughput(MBps)',
                      yaxisMaximum: '20',
                      yaxisMinimum: '0'
                  }
                  }
                }
              }
      

       

            vgaidarji Veaceslav Gaidarji
            j1mehta Jatin Mehta
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: