• Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • pipeline

      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)

          [JENKINS-32062] Arrays may not be passed directly to methods

            jglick Jesse Glick
            jglick Jesse Glick
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: