[JIRA] (JENKINS-41490) Declarative JSON schema doesn't allow nested tree steps within tree steps

3 views
Skip to first unread message

andrew.bayer@gmail.com (JIRA)

unread,
Jan 26, 2017, 3:28:01 PM1/26/17
to jenkinsc...@googlegroups.com
Andrew Bayer created an issue
 
Jenkins / Bug JENKINS-41490
Declarative JSON schema doesn't allow nested tree steps within tree steps
Issue Type: Bug Bug
Assignee: Andrew Bayer
Components: pipeline-model-definition-plugin
Created: 2017/Jan/26 8:27 PM
Priority: Minor Minor
Reporter: Andrew Bayer

We allow non-tree steps as children for tree steps in the JSON schema, but not tree steps. That's silly.

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)
Atlassian logo

kzantow@cloudbees.com (JIRA)

unread,
Jan 26, 2017, 3:30:01 PM1/26/17
to jenkinsc...@googlegroups.com
Keith Zantow commented on Bug JENKINS-41490
 
Re: Declarative JSON schema doesn't allow nested tree steps within tree steps

Actually this is a blocker issue to me. Because from JSON you can't do:

node('windows') {
  retry(5) {
   steps...

andrew.bayer@gmail.com (JIRA)

unread,
Jan 26, 2017, 3:32:01 PM1/26/17
to jenkinsc...@googlegroups.com

andrew.bayer@gmail.com (JIRA)

unread,
Jan 26, 2017, 3:36:02 PM1/26/17
to jenkinsc...@googlegroups.com

andrew.bayer@gmail.com (JIRA)

unread,
Jan 26, 2017, 3:36:02 PM1/26/17
to jenkinsc...@googlegroups.com
Andrew Bayer started work on Bug JENKINS-41490
 
Change By: Andrew Bayer
Status: Open In Progress

andrew.bayer@gmail.com (JIRA)

unread,
Jan 26, 2017, 3:37:01 PM1/26/17
to jenkinsc...@googlegroups.com

andrew.bayer@gmail.com (JIRA)

unread,
Jan 27, 2017, 11:56:02 AM1/27/17
to jenkinsc...@googlegroups.com

scm_issue_link@java.net (JIRA)

unread,
Jan 27, 2017, 11:56:02 AM1/27/17
to jenkinsc...@googlegroups.com
SCM/JIRA link daemon commented on Bug JENKINS-41490
 
Re: Declarative JSON schema doesn't allow nested tree steps within tree steps

Code changed in jenkins
User: Andrew Bayer
Path:
pipeline-model-api/src/main/resources/ast-schema.json
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/AbstractModelDefTest.java
pipeline-model-definition/src/test/java/org/jenkinsci/plugins/pipeline/modeldefinition/BasicModelDefTest.java
pipeline-model-definition/src/test/resources/json/nestedTreeSteps.json
pipeline-model-definition/src/test/resources/nestedTreeSteps.groovy
http://jenkins-ci.org/commit/pipeline-model-definition-plugin/ca9c202861194c80b78dd1f88c013643e524060a
Log:
Merge pull request #104 from abayer/jenkins-41490-jenkins-41491

[FIXED JENKINS-41490, JENKINS-41491] Tree steps and validation!

Compare: https://github.com/jenkinsci/pipeline-model-definition-plugin/compare/3a0ee9510ed4...ca9c20286119

scm_issue_link@java.net (JIRA)

unread,
Jan 27, 2017, 11:56:02 AM1/27/17
to jenkinsc...@googlegroups.com

Code changed in jenkins
User: Andrew Bayer
Path:
pipeline-model-api/src/main/resources/ast-schema.json
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/AbstractModelDefTest.java
pipeline-model-definition/src/test/java/org/jenkinsci/plugins/pipeline/modeldefinition/BasicModelDefTest.java
pipeline-model-definition/src/test/resources/json/nestedTreeSteps.json
pipeline-model-definition/src/test/resources/nestedTreeSteps.groovy


[FIXED JENKINS-41490, JENKINS-41491] Tree steps and validation!

So this started with fixing JENKINS-41490, so that the editor can
actually do nested tree steps (d'oh), but in the process, I discovered
a strange decision from waaaaaay back in the day to force validation
in certain cases to treat the step parameter type as a String, even
when it wasn't one. That...was bad. So, fixing both those things.

bitwiseman@gmail.com (JIRA)

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