Im not sure if this is a groovy thing or a jenkins shared library DSL thing but I don't understand how this automatic getter setter stuff works.
I have this shared lib:
/vars/myFunc.groovy
I have this in it:
def getDerp() { return something }
def getHerp() { return something }
Now in my jenkinsfile I can reference it like this:
echo myFunc.derp
echo myFunc.herp
But I tried naming my methods like this:
def getMyDerp() { return something }
def getMyHerp() { return something }
Now in my jenkinsfile I tried to do this:
echo myFunc.myderp
echo myFunc.myherp
But that didn't work.
I'm just curious how this works and if its possible to do method names like getExtraHumps.