I have an IniParser class that I want to use as coming from a shared library in Jenkins (because of DRY).
I tried putting the class in src/com/xxx/IniParser.groovy
and accessing the class using the following code in my pipeline:
@Library('my-ini-parser') _
def parserObj = com.xxx.IniParser()
I also tried putting the class in vars
folder and trying to access. No luck. Please propose a solution.