Thevars
directory hosts scripts that define global variables accessible from Pipeline. The basename of each*.groovy
file should be a Groovy (~ Java) identifier, conventionallycamelCased
. The matching*.txt
, if present, can contain documentation, processed through the system’s configured markup formatter (so may really be HTML, Markdown, etc., though thetxt
extension is required).
Please note the PipelineSyntax/Global Variables Reference page is ONLY updated when the pipelines run is successful. And therefore ONLY for this pipeline (and not any others).
I think even if for "vars/file.groovy" there is no corresponding "vars/file.txt", then the PipelineSyntax/Global Variables Reference page shows an "empty" entry for global var "file".
HTH Reinhold