I\'m following the tutorial on the pipeline library plugin. I made a repository containing the following files:
D:.
│ Test.groovy
│
├───src
└───vars
Using the 2.8 version of Pipeline:Groovy plugin I found that if I update the groovy scripts under /vars/myscript.groovy doesn't work, but if I restart jenkins everything works fine. If I simply reload configuration from file, nothing happens.
So I think the scripts are instantiated as global functions only when jenkins start. (but maybe I'm wrong :) )