Hi, I'm setting up a folder library as per here.
Now in one of their examples they talk about not declaring the enclosing class (so as to allow access to steps) This works fine, in the file MyClass.groovy @package my.package def myMethod(data) { // do stuff with data } return this I can declare an instance of the class and use it with method = new my.package.MyClass() myClass.myMethod(my_data) But I cannot create a contructor, is there a way to do this? -- 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/3c86d57e-4186-43df-8288-e5f4c552c17e%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.