Thank you very much, Daniel.  That is exactly what I needed!

On Thursday, June 3, 2021 at 12:54:02 PM UTC-6 Daniel Beck wrote:

>
>
> > On 3. Jun 2021, at 19:18, Christopher Mead <[email protected]> 
> wrote:
> > 
> > This covered enough for me to create a useful plugin for internal use at 
> work. However, it makes no mention of what to do to add "global 
> configuration" that would apply for all instances of your plugin in jobs. 
> In other words, I'd like to understand enough to add a single string of 
> configuration data that would appear under "Manage Jenkins" > "Configure 
> System" and apply to every instance of the plugin in jobs.
>
> There's a project archetype for this called 'global-configuration', see 
> https://github.com/jenkinsci/archetypes -- see the README how to create a 
> project from this, or just steal from 
> https://github.com/jenkinsci/archetypes/tree/master/global-configuration/src/main/resources/archetype-resources/src/main
>
> All you need in addition is to look up the instance of your global config 
> using ExtensionList#lookupSingleton from your build step (or whatever else 
> you create), and retrieve the current configuration from it.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/5c3b4bab-3e7c-4fc8-9a6b-dd87d7731b8an%40googlegroups.com.

Reply via email to