Hi Paul, As a general rule, a good way to find examples is to browse the code of the jenkins plugins. You can find them all under https://github.com/jenkinsci.
Now, regarding your particular question, here is an example of Global Tool Configuration addition: https://github.com/jenkinsci/tuleap-api-plugin/blob/master/src/main/java/io/jenkins/plugins/tuleap_server_configuration/TuleapConfiguration.java and its ressources counterparts: https://github.com/jenkinsci/tuleap-api-plugin/tree/master/src/main/resources/io/jenkins/plugins/tuleap_server_configuration/TuleapConfiguration Le mar. 15 sept. 2020 à 05:20, Paul <[email protected]> a écrit : > 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]. > 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/CA%2Bb6JB9WcEGr40ffwrDdxUUDt3wzaj46fFHJ-GCCX8cFUs3kTw%40mail.gmail.com.
