[JIRA] (JENKINS-38846) Support tuple in Pipeline

16 views
Skip to first unread message

owood@cloudbees.com (JIRA)

unread,
Oct 9, 2016, 7:29:01 PM10/9/16
to jenkinsc...@googlegroups.com
Owen Wood created an issue
 
Jenkins / Improvement JENKINS-38846
Support tuple in Pipeline
Issue Type: Improvement Improvement
Assignee: Unassigned
Attachments: about.md, console.log
Components: workflow-cps-plugin
Created: 2016/Oct/09 11:28 PM
Priority: Minor Minor
Reporter: Owen Wood

Fresh install of Jenkins 2.7.4, with Pipeline installed (attached about.md)

Using Groovy tuple expressions in Pipeline currently throws:

Started by user anonymous
org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
General error during canonicalization: java.lang.UnsupportedOperationException

java.lang.UnsupportedOperationException
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
	at org.codehaus.groovy.reflection.CachedConstructor.invoke(CachedConstructor.java:83)
	at org.codehaus.groovy.runtime.callsite.ConstructorSite$ConstructorSiteNoUnwrapNoCoerce.callConstructor(ConstructorSite.java:105)

Full console output attached.

Sample Pipeline to reproduce the issue:

def tupleFunc() {
    ["a","b"]
}

node {
    (tA, tB) = tupleFunc()
    
    echo "tA: $tA"
    echo "tb: $tB"
}
Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages