-
Bug
-
Resolution: Duplicate
-
Major
-
Jenkins 2.89.4
We're currently running into an issue where lists we expect to work are causing compilation errors. The syntax is valid, but the plugin throws an error anyway. When our lists are deemed too big we see something similar to the following WorkflowScript: 29: List expressions can only contain up to 250 elements @ line 29, column 16.
I've attached an example of a failing Jenkinsfile
- duplicates
-
JENKINS-47363 Pipeline cps fails when creating array with more than 250 elements
-
- Resolved
-
- relates to
-
JENKINS-56000 Pipeline fails if more than 250 parameters specified
-
- Open
-
Sadly, this is a duplicate of
JENKINS-47363, which I couldn't come up with a fix for, just the compile-time error message you received. You will need to declare your list in multiple pieces - sorry!