This naming does not work:
vars/packageInformation.groovy

I get the following exception when calling a function 
packageInformation.init()
java.lang.NullPointerException: Cannot invoke method init() on null object

This works
vars/packageinformation.groovy

According to the instructions/tutorial on GitHub 
<https://github.com/jenkinsci/workflow-cps-global-lib-plugin> the files 
should be camelCased.
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.


-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/c67e6a2a-a52e-4a16-8453-aa84ede0e386%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to