[JIRA] (JENKINS-56000) Pipeline fails if more than 250 parameters specified

1 view
Skip to first unread message

rodrigc@FreeBSD.org (JIRA)

unread,
Feb 6, 2019, 2:25:02 PM2/6/19
to jenkinsc...@googlegroups.com
Craig Rodrigues created an issue
 
Jenkins / Bug JENKINS-56000
Pipeline fails if more than 250 parameters specified
Issue Type: Bug Bug
Assignee: Unassigned
Components: workflow-cps-plugin
Created: 2019-02-06 19:24
Priority: Minor Minor
Reporter: Craig Rodrigues

I created a pipeline with 419 booleanParams like this:

 

 parameters {
 
booleanParam(name: 'TestOne', defaultValue: false, description: '')
 booleanParam(name: 'TestTwo', defaultValue: false, description: '')
 booleanParam(name: 'TestThree', defaultValue: false, description: '')
 booleanParam(name: 'TestFour', defaultValue: false, description: '')
 booleanParam(name: 'TestFive', defaultValue: false, description: '')
...

 

 

When I tried to build/run the pipeline, I got:

 

WorkflowScript: -1: List expressions can only contain up to 250 elements @ line -1, column -1.
1 error 

 

 

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

jglick@cloudbees.com (JIRA)

unread,
Feb 6, 2019, 5:26:02 PM2/6/19
to jenkinsc...@googlegroups.com
Jesse Glick updated an issue

Groovy limitation in list literals. In Scripted you could work around that by using a loop or similar constructions.

Change By: Jesse Glick
Component/s: pipeline-model-definition-plugin
Component/s: workflow-cps-plugin

jan.sprinz@posteo.de (JIRA)

unread,
Dec 10, 2019, 12:38:02 PM12/10/19
to jenkinsc...@googlegroups.com
Jan Sprinz commented on Bug JENKINS-56000
 
Re: Pipeline fails if more than 250 parameters specified

This can quickly be caused by matrices.

This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages