How to utilize maven configurations in custom plugin.

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

How to utilize maven configurations in custom plugin.

phanikumar
Hello team,

I have developed a plugin for Google App Engine Deployment. I would like to
customize it furthermore by providing the users to select the maven version
for compilation and deployment. Is there a way by which I can provide the
users to select specific maven version.




--
Sent from: http://jenkins-ci.361315.n4.nabble.com/Jenkins-dev-f387835.html

--
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/1507122823703-0.post%40n4.nabble.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: How to utilize maven configurations in custom plugin.

Robert Sandell-2
Not exactly version, but Jenkins has a thing called ToolInstallers [1] that is used for users to select what tool (and version) to install.
There is one of those implemented for Maven, the first usage example that came to mind is in the withMaven step [2], but htere might be easier examples to refer to.

/B


2017-10-04 15:13 GMT+02:00 phanikumar <[hidden email]>:
Hello team,

I have developed a plugin for Google App Engine Deployment. I would like to
customize it furthermore by providing the users to select the maven version
for compilation and deployment. Is there a way by which I can provide the
users to select specific maven version.




--
Sent from: http://jenkins-ci.361315.n4.nabble.com/Jenkins-dev-f387835.html

--
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/1507122823703-0.post%40n4.nabble.com.
For more options, visit https://groups.google.com/d/optout.



--
Robert Sandell
Software Engineer
CloudBees Inc.

--
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/CALzHZS1Wz2ZnAN8BmJoyS5Ky6goPTvuPYupqneqn_7uOF_VuZQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: How to utilize maven configurations in custom plugin.

phanikumar
The above code helped me in getting the maven installation drop-down in my
plugin. But for getting the Installer path it is suggesting me to get the
path using ToolKitInstaller.getHome. How do I get the exact maven path from
the bunch of available maven installations? Is there a sample code to get
the maven binary path from the selected name. Any help is really
appreciated.

Thanks in Advance.



--
Sent from: http://jenkins-ci.361315.n4.nabble.com/Jenkins-dev-f387835.html

--
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/1507241295837-0.post%40n4.nabble.com.
For more options, visit https://groups.google.com/d/optout.