This title might be a little bit confusing cause my English is not that good and I hope you can understand what I am saying. What I am trying to say is I have an interface and a class Jenkins shared lib(see below).
What I want is to new an instance of that interface but the class
So what I can do now is:
def commonfunctions = new widelyUsedFunctions(env,steps)
And I know this could work but I did not new an instance of the interface, What I want is something like this:
widelyUsed widelyUsed = new widelyUsedFunctions(env,steps)
However it not working.
Could anyone help me?