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:
@Library(“shared-lib”)
import org.baseFunctions.widelyUsedFunction
def commonfunctions = new widelyUsedFunctions(env,steps)
commonfunctions.printTest(“interface test”)
And I know this could work but I did not new an instance of the interface, What I want is something like this:
@Library(“shared-lib@109-enable-asic-simulator-test-in-quince-daily”)_
import org.baseFunctions.widelyUsedFunctions
import org.baseFunctions.widelyUsed
widelyUsed widelyUsed = new widelyUsedFunctions(env,steps)
widelyUsedFunctions.printTest(“interface test”)
However it not working.
Could anyone help me?