Commit da41f6b
authored
[JENKINS-75091] Fix null pointer exception when title is missing (jenkinsci#169)
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'
}
}
}
}1 parent 81a319a commit da41f6b
1 file changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
425 | 425 | | |
426 | 426 | | |
427 | 427 | | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
428 | 434 | | |
429 | 435 | | |
430 | 436 | | |
| |||
0 commit comments