jenkinsci / jenkinsci/plot-plugin

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

Open
#300 0 comments 0 reactions 0 assignees View on GitHub
component:plot-plugin imported-jira-issue priority:major resolution:unresolved
Dominant language
Java
Stars
62
Forks
93
Avg merge
1d 17h
Merged PRs (30d)
1

Description

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



 

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.