-
Bug
-
Resolution: Fixed
-
Minor
-
None
-
Jenkins 2.479.2 and plot plugin 2.2.0
Other plugins as noted in https://github.com/MarkEWaite/docker-lfs/blob/78310186c8f51421fcdfd8be3005e8f555cdb056/plugins.txt
The plot plugin provides a Pipeline step but the Pipeline step implementation has multiple issues. One of those issues is that a null pointer exception is reported if the plot title is not provided. When a freestyle project leaves the plot title empty, the plot title is not displayed. If a title argument is not provided in the Pipeline step, a null pointer exception is reported.
The Pipeline that I used to show the problem is
pipeline { agent { label 'linux' } stages { stage('Hello') { steps { echo 'Hello World' sh '''#!/bin/bash [ ! -f plot-a.csv ] && echo "Line-A,Line-B" > plot-a.csv let "OTHER_VAR=2*BUILD_ID+1" echo $BUILD_ID,$OTHER_VAR >> plot-a.csv ''' plot csvFileName: 'plot-923ffed9-0b83-4a7d-93eb-55894c27e904.csv', csvSeries: [[file: 'plot-a.csv']], group: 'Z-group', style: 'line' plot csvFileName: 'plot-923ffed9-0b83-4a7d-93eb-111111111111.csv', csvSeries: [[file: 'plot-a.csv']], group: 'Z-group', style: 'line' } } } }
Run the Pipeline a few times, then click the "Plot" link in the sidepanel and it will report a null pointer exception