-
Type:
Bug
-
Resolution: Cannot Reproduce
-
Priority:
Minor
-
Component/s: pipeline
Scripts within workflowLib.git/vars does not work if file name convention is camelCased
This naming does not work:
vars/camelCased.groovy
I get the following exception when calling a function camelCased.init()
java.lang.NullPointerException: Cannot invoke method init() on null object
This works
vars/camelcased.groovy
According to Pipeline Global Library documentation on GitHub
The vars directory hosts scripts that define global variables accessible from Pipeline scripts. The basename of each *.groovy file should be a Groovy (~ Java) identifier, conventionally camelCased.