Shared libraries are a means of externalizing common functionalities for Jenkins pipelines. Find out when to use them and how to do it right