10. src and vars
Directory ‘src’ has a standard Java source directory
structure. It is added to the classpath when
executing your pipelines.
Directory ‘vars’ contains scripts that define global
variables accessible from your pipelines.
12. Serializable
Your classes should implement Serializable when
they have state, this is needed in order to allow
Jenkins to stop and resume your pipelines properly.
17. Conclusions
Jenkins shared libraries are a wonderful tool if you
want to ‘DRY’ some common patterns that emerged
in your pipelines.
Remember that you are inside Jenkins, so things may
behave a little different from what you think.