-
Type:
Bug
-
Resolution: Not A Defect
-
Priority:
Major
-
Component/s: workflow-cps-global-lib-plugin, workflow-cps-plugin
The following shared library class:
package org.test; class X implements Serializable { Â String toString() { "X" } }
used in a Jenkinsfile like:
def x = new org.test.X() echo "${x}"
will not result in any output. The output wont even show the echo step.
However
def x = new org.test.X() echo "${x.toString()}"
will work as expected
- relates to
-
JENKINS-45982 Calling super to CPS-transformed methods fails with CpsCallableInvocation
-
- Resolved
-
- links to