-
Bug
-
Resolution: Not A Defect
-
Minor
-
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