-
Bug
-
Resolution: Fixed
-
Minor
Jenkinsfiles like what you see below (note the lack of 'expression' block in the 'when' clause) cause a NullPointerException instead of reporting a syntax error.
pipeline { agent { label 'Some Machine' } parameters { string(name: 'Type', defaultValue: 'Nightly', description: 'Type of build to perform -- can be "Nightly," "CI," or "PR"') } stages { stage('Fix Me') { when { params.Type == 'CI' } steps { echo "Hello World" } } } }
- links to
[JENKINS-47559] NullPointerException in Declarative Jenkinsfile Pipeline Syntax Validator (when clause)
Component/s | New: pipeline-model-definition-plugin [ 21706 ] | |
Component/s | Original: declarative-pipeline-when-conditions-plugin [ 23168 ] | |
Component/s | Original: pipeline [ 21692 ] |
Status | Original: Open [ 1 ] | New: In Progress [ 3 ] |
Remote Link | New: This issue links to "PR #209 (Web Link)" [ 17926 ] |
Status | Original: In Progress [ 3 ] | New: In Review [ 10005 ] |
Resolution | New: Fixed [ 1 ] | |
Status | Original: In Review [ 10005 ] | New: Resolved [ 5 ] |
Status | Original: Resolved [ 5 ] | New: Closed [ 6 ] |
PR up at https://github.com/jenkinsci/pipeline-model-definition-plugin/pull/209