Arrays may not be passed directly to methods

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      If you have a Java object array (as opposed to a list, as with typical Groovy code) and try to pass it as an argument to a CPS-transformed method, only the first element arrives, rather than an array.

      Workarounds:

      • wrap the array in Arrays.asList before passing it, and treat the argument as a List
      • annotate the method as @NonCPS (assuming it is not calling any steps)

            Assignee:
            Jesse Glick
            Reporter:
            Jesse Glick
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: