[JIRA] (JENKINS-39799) Nasty compilation failure when post doesn't contain name/closure blocks

3 views
Skip to first unread message

andrew.bayer@gmail.com (JIRA)

unread,
Nov 16, 2016, 6:30:01 PM11/16/16
to jenkinsc...@googlegroups.com
Andrew Bayer updated an issue
 
Jenkins / Bug JENKINS-39799
Nasty compilation failure when post doesn't contain name/closure blocks
Change By: Andrew Bayer
Summary: Nasty compilation failure when invalid build condition names used post doesn't contain name/closure blocks
Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)
Atlassian logo

andrew.bayer@gmail.com (JIRA)

unread,
Nov 16, 2016, 7:07:01 PM11/16/16
to jenkinsc...@googlegroups.com

andrew.bayer@gmail.com (JIRA)

unread,
Nov 16, 2016, 7:07:01 PM11/16/16
to jenkinsc...@googlegroups.com

scm_issue_link@java.net (JIRA)

unread,
Nov 17, 2016, 2:16:02 PM11/17/16
to jenkinsc...@googlegroups.com

Code changed in jenkins
User: Andrew Bayer
Path:
pipeline-model-definition/src/main/groovy/org/jenkinsci/plugins/pipeline/modeldefinition/parser/ModelParser.groovy
pipeline-model-definition/src/main/groovy/org/jenkinsci/plugins/pipeline/modeldefinition/validator/ModelValidatorImpl.groovy
pipeline-model-definition/src/test/java/org/jenkinsci/plugins/pipeline/modeldefinition/ValidatorTest.java
pipeline-model-definition/src/test/resources/errors/badPostContent.groovy
http://jenkins-ci.org/commit/pipeline-model-definition-plugin/bfc38f958d33fa9115fa1d357504f58a8174ec10
Log:
[FIXED JENKINS-39799] Properly handle bad content in post blocks.

We actually would have errored out properly-ish if it wasn't for the
fact that we ended up with a ModelASTBuildCondition with null
condition and null branch, leading to the NPE during compilation. I
decided to improve the error messaging and make sure we don't attempt
to validate further when condition or branch are null.

andrew.bayer@gmail.com (JIRA)

unread,
Nov 17, 2016, 2:18:01 PM11/17/16
to jenkinsc...@googlegroups.com

bitwiseman@gmail.com (JIRA)

unread,
Oct 22, 2019, 11:24:11 PM10/22/19
to jenkinsc...@googlegroups.com
Liam Newman closed an issue as Fixed
 

Bulk closing resolved issues.

Change By: Liam Newman
Status: Resolved Closed
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages