[JIRA] (JENKINS-42762) Regression: Multiple when conditions no longer work

1 view
Skip to first unread message

andrew.bayer@gmail.com (JIRA)

unread,
Mar 14, 2017, 12:40:03 PM3/14/17
to jenkinsc...@googlegroups.com
Andrew Bayer started work on Bug JENKINS-42762
 
Change By: Andrew Bayer
Status: Open In Progress
Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)
Atlassian logo

andrew.bayer@gmail.com (JIRA)

unread,
Mar 14, 2017, 12:40:03 PM3/14/17
to jenkinsc...@googlegroups.com
Andrew Bayer created an issue
 
Jenkins / Bug JENKINS-42762
Regression: Multiple when conditions no longer work
Issue Type: Bug Bug
Assignee: Andrew Bayer
Components: pipeline-model-definition-plugin
Created: 2017/Mar/14 4:39 PM
Environment: Declarative 1.0/1.1.1
Priority: Critical Critical
Reporter: Andrew Bayer

So I borked this - I mistakenly thought we already had logic that prevented you from actually having multiple when conditions, but I was wrong. So now I'm going to reenable it, and it'll work basically like if the multiple when conditions were wrapped in an allOf condition, replicating previous behavior.

andrew.bayer@gmail.com (JIRA)

unread,
Mar 14, 2017, 1:08:01 PM3/14/17
to jenkinsc...@googlegroups.com

andrew.bayer@gmail.com (JIRA)

unread,
Mar 14, 2017, 1:08:02 PM3/14/17
to jenkinsc...@googlegroups.com

scm_issue_link@java.net (JIRA)

unread,
Mar 15, 2017, 7:59:02 PM3/15/17
to jenkinsc...@googlegroups.com
SCM/JIRA link daemon commented on Bug JENKINS-42762
 
Re: Regression: Multiple when conditions no longer work

Code changed in jenkins
User: Andrew Bayer
Path:
pipeline-model-api/src/main/java/org/jenkinsci/plugins/pipeline/modeldefinition/ast/ModelASTWhen.java
pipeline-model-api/src/main/resources/ast-schema.json
pipeline-model-definition/src/main/groovy/org/jenkinsci/plugins/pipeline/modeldefinition/Utils.groovy
pipeline-model-definition/src/main/groovy/org/jenkinsci/plugins/pipeline/modeldefinition/model/StageConditionals.groovy
pipeline-model-definition/src/main/groovy/org/jenkinsci/plugins/pipeline/modeldefinition/parser/JSONParser.groovy
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/main/resources/org/jenkinsci/plugins/pipeline/modeldefinition/ModelInterpreter.groovy
pipeline-model-definition/src/test/java/org/jenkinsci/plugins/pipeline/modeldefinition/BasicModelDefTest.java
pipeline-model-definition/src/test/resources/whenMultiple.groovy
http://jenkins-ci.org/commit/pipeline-model-definition-plugin/3bc41e062a1edbf8d2a0323bc05c38d4d96dba67
Log:
[FIXED JENKINS-42762] Allow multiple conditions in when directly

Reverts changes made in JENKINS-41185 fix. Does not affect the core of
the changes in JENKINS-41185.

scm_issue_link@java.net (JIRA)

unread,
Mar 15, 2017, 7:59:03 PM3/15/17
to jenkinsc...@googlegroups.com

Code changed in jenkins
User: Andrew Bayer
Path:
pipeline-model-api/src/main/java/org/jenkinsci/plugins/pipeline/modeldefinition/ast/ModelASTWhen.java
pipeline-model-api/src/main/resources/ast-schema.json
pipeline-model-definition/src/main/groovy/org/jenkinsci/plugins/pipeline/modeldefinition/Utils.groovy
pipeline-model-definition/src/main/groovy/org/jenkinsci/plugins/pipeline/modeldefinition/model/StageConditionals.groovy
pipeline-model-definition/src/main/groovy/org/jenkinsci/plugins/pipeline/modeldefinition/parser/JSONParser.groovy
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/main/resources/org/jenkinsci/plugins/pipeline/modeldefinition/ModelInterpreter.groovy

pipeline-model-definition/src/test/java/org/jenkinsci/plugins/pipeline/modeldefinition/AbstractModelDefTest.java
pipeline-model-definition/src/test/java/org/jenkinsci/plugins/pipeline/modeldefinition/BasicModelDefTest.java
pipeline-model-definition/src/test/resources/json/basicWhen.json
pipeline-model-definition/src/test/resources/json/errors/emptyWhen.json
pipeline-model-definition/src/test/resources/json/errors/unknownWhenConditional.json
pipeline-model-definition/src/test/resources/json/errors/whenInvalidParameterType.json
pipeline-model-definition/src/test/resources/json/errors/whenMissingRequiredParameter.json
pipeline-model-definition/src/test/resources/json/errors/whenUnknownParameter.json
pipeline-model-definition/src/test/resources/json/skippedWhen.json
pipeline-model-definition/src/test/resources/json/whenAnd.json
pipeline-model-definition/src/test/resources/json/whenBranchFalse.json
pipeline-model-definition/src/test/resources/json/whenEnvFalse.json
pipeline-model-definition/src/test/resources/json/whenNot.json
pipeline-model-definition/src/test/resources/json/whenOr.json
pipeline-model-definition/src/test/resources/whenMultiple.groovy
http://jenkins-ci.org/commit/pipeline-model-definition-plugin/2b88323cb2f73c194aba5abd0a99d6136c7f7f49
Log:
Merge pull request #138 from abayer/jenkins-42762

[FIXED JENKINS-42762] Allow multiple conditions in when directly

andrew.bayer@gmail.com (JIRA)

unread,
Mar 15, 2017, 8:42:01 PM3/15/17
to jenkinsc...@googlegroups.com

bitwiseman@gmail.com (JIRA)

unread,
Oct 22, 2019, 11:24:57 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