-
Type:
Bug
-
Resolution: Not A Defect
-
Priority:
Minor
-
Component/s: groovy-plugin
-
None
The following script produces different output:
import groovy.transform.TupleConstructor
@TupleConstructor
class SimpleName {
String name
String toString()
{ name }}
c = [new SimpleName("aaa"), new SimpleName("bbb")]
println c.class.name
println c.size()
println c.join("-")
Â
In groovyConsole the output is:
 java.util.ArrayList
2
aaa-bbb
Â
 In jenkins pipeline the output is:
Started by user Roman Ivanov
Running in Durability level: MAX_SURVIVABILITY
[Pipeline] echo
java.util.ArrayList
[Pipeline] echo
2
[Pipeline] echo
aaa
[Pipeline] End of Pipeline
Finished: SUCCESS
Â
Â
Â
Â
Â
Â