Can two different jenkins builders exist in the same hpi and share the same global configuration?

后端 未结 2 629
眼角桃花
眼角桃花 2021-01-25 13:07

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.

2条回答
  •  温柔的废话
    2021-01-25 13:46

    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.

提交回复
热议问题