[JENKINS-75091] Fix null pointer exception when title is missing#169
Merged
Conversation
https://issues.jenkins.io/browse/JENKINS-75091 provides a sample Pipeline that throws a null pointer exception when viewing plots after a few executions of the job. 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' } } } }
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
[JENKINS-75091] Fix null pointer exception when title is missing
JENKINS-75091 provides a sample Pipeline that throws a null pointer exception when viewing plots after a few executions of the job.
Testing done
Created a Pipeline with that script before the change and confirmed that it reports a null pointer exception. Used the same Pipeline after the fix and confirmed that the plugin is drawn correctly.
Submitter checklist