I need to create two different Jenkins Builder classes. Each does different things and each requires its own .jelly, however, both require the same global configuration (global.
Avoid global.jelly
altogether. This is semi-deprecated. JobProperty
is also only suitable if you want per-job configuration, whereas the request is about global configuration.
Rather, use the GlobalConfiguration
API which is designed for this purpose. There is a standard archetype showing how to use it.