Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-56000

Pipeline fails if more than 250 parameters specified

    Details

    • Similar Issues:

      Description

      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 

       

       

        Attachments

          Issue Links

            Activity

            Hide
            jglick Jesse Glick added a comment -

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

            Show
            jglick Jesse Glick added a comment - Groovy limitation in list literals. In Scripted you could work around that by using a loop or similar constructions.

              People

              • Assignee:
                Unassigned
                Reporter:
                rodrigc Craig Rodrigues
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: