So I was playing around and tried something. Here's a class I defined: class MyClass implements Serializable {
MyClass() { } def bark(){ sh 'echo WOOF!' } } and so I instantiate it def mc = new MyClass() and I access my method mc.bark() and I get hudson.remoting.ProxyException: groovy.lang.MissingMethodException: No signature of method: MyClass.sh() is applicable for argument types: (java.lang.String) values: [echo WOOF!] So my question is: if I want to access what I perceive as normal pipeline functions from inside a class how do I do it? What magic foo do I have to use? -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAArvnv0Dgkh-CnjYebNBzHji9pOpBZGDLhnioKD87w4-7BWn4w%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.