This issue is archived. You can view it, but you can't modify it. Learn more

ExportXMLWordPrintable

      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.

            Assignee:
            Jesse Glick
            Reporter:
            Sverre Moe
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: