You need to implement: 
https://www.jenkins.io/doc/developer/extensions/jenkins-core/#globalconfiguration
 
<https://www.jenkins.io/doc/developer/extensions/jenkins-core/#globalconfiguration>

Here is an example implementation:
https://github.com/jenkinsci/warnings-ng-plugin/blob/master/plugin/src/main/java/io/jenkins/plugins/analysis/core/model/WarningsPluginConfiguration.java
 
<https://github.com/jenkinsci/warnings-ng-plugin/blob/master/plugin/src/main/java/io/jenkins/plugins/analysis/core/model/WarningsPluginConfiguration.java>
https://github.com/jenkinsci/warnings-ng-plugin/blob/master/plugin/src/main/resources/io/jenkins/plugins/analysis/core/model/WarningsPluginConfiguration/config.jelly
 
<https://github.com/jenkinsci/warnings-ng-plugin/blob/master/plugin/src/main/resources/io/jenkins/plugins/analysis/core/model/WarningsPluginConfiguration/config.jelly>


> Am 15.09.2020 um 04:56 schrieb Paul <[email protected]>:
> 
> Good evening,
> 
> I'm just starting to build a Jenkins plugin internal to my company. One of 
> the things I need to do is have a "global tool configuration" for my plugin. 
> Basically my plugin relies on an external executable and I would like to be 
> able to configure the external executable. Kind of like how nodejs does it.
> 
> My question(s): Where can I see examples of an implementation of this 
> configuration? How can I call this configuration in my main plugin? I'm 
> following the sample from https://www.jenkins.io/doc/developer/tutorial/
> 
> 
> Thanks!
> 
> -- 
> 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] 
> <mailto:[email protected]>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/jenkinsci-dev/82f4d55e-cbe5-4f65-abf1-479bd9f4054en%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/jenkinsci-dev/82f4d55e-cbe5-4f65-abf1-479bd9f4054en%40googlegroups.com?utm_medium=email&utm_source=footer>.

-- 
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/DAABA5F9-6CA4-4474-B7AC-B0521E44F694%40gmail.com.

Reply via email to