Please see my question, here: http://stackoverflow.com/questions/42790966/how-to-call-a-groovy-function-from-a-jenkinsfile
Essentially, I have a declarative pipeline where I am trying to load a .groovy file and call a function defined in it.
The function makes a node call (that uses mustache to replace some placeholder values with actual values and generate a file based on it).
This however fails. Even an echo call from the function fails, with "java.lang.NullPointerException: Cannot invoke method generateManifest() on null object". I have no idea why.
Any tips are more than welcome!
Please sign in to leave a comment.