Skip to content

[JENKINS-58433] Plot plugin doesn't display data points from previous builds in case of multiple .properties files #300

Description

@jenkins-infra-bot

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'
    }
    }
  }
}

 


Originally reported by j1mehta, imported from: Plot plugin doesn't display data points from previous builds in case of multiple .properties files
  • assignee: vgaidarji
  • status: Open
  • priority: Major
  • component(s): plot-plugin
  • resolution: Unresolved
  • votes: 0
  • watchers: 1
  • imported: 20260512-210953
Raw content of original issue

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: <span class="code-quote">'$WORKSPACE/HAThroughput_all_plots.csv'</span>,
            group: <span class="code-quote">'HAThroughput_Plots'</span>,
            keepRecords: <span class="code-keyword">true</span>,

            propertiesSeries: [[file: <span class="code-quote">'HAThroughputTestReport.properties'</span>, label: '']],
            style: <span class="code-quote">'line'</span>,
            title: <span class="code-quote">'HAThroughput_Plot'</span>,
            yaxis: <span class="code-quote">'RedoLogThroughput(MBps)'</span>,
            yaxisMaximum: <span class="code-quote">'20'</span>,
            yaxisMinimum: <span class="code-quote">'0'</span>
        }
        }
      }
    }

 

  • environment: Plot plugin 2.1.1, Jenkins ver. 2.176.1, Chrome

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions