问题 I'm just starting with using Jenkins declarative pipelines. As I'm supporting a few similar projects I was thinking of putting similar pipeline steps (or even stages) into reusable building blocks. These blocks should be maintained at a central spot and then included by individual pipelines (speak: DRY). I saw shared libraries as an option for scripted pipelines but I'm not sure if it works for declarative pipelines, too. Do you know a way to use something like building blocks in Jenkins