"Global Tool Configuration"

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

"Global Tool Configuration"

Paul Dimitriu
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/82f4d55e-cbe5-4f65-abf1-479bd9f4054en%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: "Global Tool Configuration"

Goyot, Martin
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.



Le mar. 15 sept. 2020 à 05:20, Paul <[hidden email]> 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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/82f4d55e-cbe5-4f65-abf1-479bd9f4054en%40googlegroups.com.

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CA%2Bb6JB9WcEGr40ffwrDdxUUDt3wzaj46fFHJ-GCCX8cFUs3kTw%40mail.gmail.com.
Reply | Threaded
Open this post in threaded view
|

Re: "Global Tool Configuration"

Ulli Hafner
In reply to this post by Paul Dimitriu
You need to implement: https://www.jenkins.io/doc/developer/extensions/jenkins-core/#globalconfiguration

Here is an example implementation:


Am 15.09.2020 um 04:56 schrieb Paul <[hidden email]>:

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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/82f4d55e-cbe5-4f65-abf1-479bd9f4054en%40googlegroups.com.

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/DAABA5F9-6CA4-4474-B7AC-B0521E44F694%40gmail.com.