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

Pipeline fails if more than 250 parameters specified

    XMLWordPrintable

Details

    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

            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.

            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.
            neothethird Jan Sprinz added a comment -

            This can quickly be caused by matrices.

            neothethird Jan Sprinz added a comment - This can quickly be caused by matrices.

            People

              Unassigned Unassigned
              rodrigc Craig Rodrigues
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: