You may be the first to try to use varargs in a Groovy CPS-transformed script. Disambiguating varargs calls is complicated enough in Java, and argument handling is an order of magnitude more complicated in Groovy, so I am not that surprised it does not work. The following does work:

fn(["This should only be one string"])
def fn(strs) {
    echo "${strs.size()}"
}
Change By: Jesse Glick (11/Apr/15 1:47 PM)
Summary: String arrays, or variable args passed to functions don't seem to work Varargs mishandled in Groovy CPS

        
Priority: Minor Major
Assignee: Jesse Glick Kohsuke Kawaguchi
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to