Re: Install specific version of plugins with Groovy script

2018-12-20 Thread RAJENDRA PRASAD
Hi Philip,
I waiting for your mail with solutions for configuring matrix authentication

Thanks
Rajendra

On Thu, 20 Dec, 2018, 11:33 RAJENDRA PRASAD  One point ,Forgot to mention in my previous  mail.
> It just installs the plugins restart you need to do manually.
> I tried thorough script it didn't work,
> Let me know if you have solution for that using groovy script.
>
> Since my Jenkins server is running on Linux server , i am using curl
> command to restart server.
>
>
>
>
> *Thanks and Regards,Rajendra Prasad Reddy Penumalli*
>
> On Thu, 20 Dec 2018 at 11:25, RAJENDRA PRASAD <
> rajendra.penuma...@gmail.com> wrote:
>
>> Yes Philip,
>> Please find attachments for Install plugins groovy script and plugins
>> list config file.
>> I made it configurable You can add or remove the plugins config file.
>>
>> *Note*: You cannot install specific version plugins on Jenkins unless it
>> is compatible.
>> To avoid that problem i removed that version, Jenkins automatically picks
>> latest plugin available for that jerkins  version
>>
>> Let me know if any other help is required
>>
>> Don't forget to send me your groovy script to install default users and
>> LDAP authentication script.
>>
>>
>>
>>
>>
>> *Thanks and Regards,Rajendra Prasad Reddy PenumalliMobile:9008566233*
>>
>>
>> On Wed, 19 Dec 2018 at 02:26, Phillip Dudley 
>> wrote:
>>
>>> Love these answers that aren't finished.
>>>
>>> Victor Martinez, do you have an example of what you're talking about?
>>>
>>> On Friday, April 20, 2018 at 4:43:24 PM UTC-5, geoffroy...@gmail.com
>>> wrote:

 Hello
 just in case, could someone share a groovy sample script to achieve
 this?
 I guess you have to download .jpi file into /plugins folder (also
 handling dependencies...), then restart jenkins?
 I had written that in shell (ugly but working), but still learning in
 Groovy!
 Thanks in advance


 On Thursday, 27 October 2016 11:28:19 UTC+2, Daniel Beck wrote:
>
>
> > On 28.04.2016, at 11:38, Alexandre Chaussier 
> wrote:
> >
> > All is OK if I want to use latest versions of plugins, but I would
> like to know if it is possible to request a specific version of the 
> plugins
> when I request installation from my groovy code ?
> >
> > I use the UpdateCenter.getPlugin() method but I don't see where I
> can add this constraint.
>
> Update center based installation can only install the one version
> defined in the update site.
>
> You need to go with URL based installation for specific versions.
>
> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Jenkins Users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to jenkinsci-users+unsubscr...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/jenkinsci-users/c0a9cb82-a524-40f1-9f1f-c95fc43c1dfa%40googlegroups.com
>>> 
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAMrg02QqsptCLsz3Kseco85nnFCnRemXrkc-8Wn3pj5OBjOVmA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Install specific version of plugins with Groovy script

2018-12-19 Thread RAJENDRA PRASAD
One point ,Forgot to mention in my previous  mail.
It just installs the plugins restart you need to do manually.
I tried thorough script it didn't work,
Let me know if you have solution for that using groovy script.

Since my Jenkins server is running on Linux server , i am using curl
command to restart server.




*Thanks and Regards,Rajendra Prasad Reddy Penumalli*

On Thu, 20 Dec 2018 at 11:25, RAJENDRA PRASAD 
wrote:

> Yes Philip,
> Please find attachments for Install plugins groovy script and plugins list
> config file.
> I made it configurable You can add or remove the plugins config file.
>
> *Note*: You cannot install specific version plugins on Jenkins unless it
> is compatible.
> To avoid that problem i removed that version, Jenkins automatically picks
> latest plugin available for that jerkins  version
>
> Let me know if any other help is required
>
> Don't forget to send me your groovy script to install default users and
> LDAP authentication script.
>
>
>
>
>
> *Thanks and Regards,Rajendra Prasad Reddy PenumalliMobile:9008566233*
>
>
> On Wed, 19 Dec 2018 at 02:26, Phillip Dudley 
> wrote:
>
>> Love these answers that aren't finished.
>>
>> Victor Martinez, do you have an example of what you're talking about?
>>
>> On Friday, April 20, 2018 at 4:43:24 PM UTC-5, geoffroy...@gmail.com
>> wrote:
>>>
>>> Hello
>>> just in case, could someone share a groovy sample script to achieve this?
>>> I guess you have to download .jpi file into /plugins folder (also
>>> handling dependencies...), then restart jenkins?
>>> I had written that in shell (ugly but working), but still learning in
>>> Groovy!
>>> Thanks in advance
>>>
>>>
>>> On Thursday, 27 October 2016 11:28:19 UTC+2, Daniel Beck wrote:


 > On 28.04.2016, at 11:38, Alexandre Chaussier 
 wrote:
 >
 > All is OK if I want to use latest versions of plugins, but I would
 like to know if it is possible to request a specific version of the plugins
 when I request installation from my groovy code ?
 >
 > I use the UpdateCenter.getPlugin() method but I don't see where I can
 add this constraint.

 Update center based installation can only install the one version
 defined in the update site.

 You need to go with URL based installation for specific versions.

 --
>> You received this message because you are subscribed to the Google Groups
>> "Jenkins Users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to jenkinsci-users+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/jenkinsci-users/c0a9cb82-a524-40f1-9f1f-c95fc43c1dfa%40googlegroups.com
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAMrg02SgxaQAiBb6_X0UnjdJbFNSWQR2P7QdL8H%3DqS4Mpk8_2g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Install specific version of plugins with Groovy script

2018-12-19 Thread RAJENDRA PRASAD
Yes Philip,
Please find attachments for Install plugins groovy script and plugins list
config file.
I made it configurable You can add or remove the plugins config file.

*Note*: You cannot install specific version plugins on Jenkins unless it is
compatible.
To avoid that problem i removed that version, Jenkins automatically picks
latest plugin available for that jerkins  version

Let me know if any other help is required

Don't forget to send me your groovy script to install default users and
LDAP authentication script.





*Thanks and Regards,Rajendra Prasad Reddy PenumalliMobile:9008566233*


On Wed, 19 Dec 2018 at 02:26, Phillip Dudley  wrote:

> Love these answers that aren't finished.
>
> Victor Martinez, do you have an example of what you're talking about?
>
> On Friday, April 20, 2018 at 4:43:24 PM UTC-5, geoffroy...@gmail.com
> wrote:
>>
>> Hello
>> just in case, could someone share a groovy sample script to achieve this?
>> I guess you have to download .jpi file into /plugins folder (also
>> handling dependencies...), then restart jenkins?
>> I had written that in shell (ugly but working), but still learning in
>> Groovy!
>> Thanks in advance
>>
>>
>> On Thursday, 27 October 2016 11:28:19 UTC+2, Daniel Beck wrote:
>>>
>>>
>>> > On 28.04.2016, at 11:38, Alexandre Chaussier 
>>> wrote:
>>> >
>>> > All is OK if I want to use latest versions of plugins, but I would
>>> like to know if it is possible to request a specific version of the plugins
>>> when I request installation from my groovy code ?
>>> >
>>> > I use the UpdateCenter.getPlugin() method but I don't see where I can
>>> add this constraint.
>>>
>>> Update center based installation can only install the one version
>>> defined in the update site.
>>>
>>> You need to go with URL based installation for specific versions.
>>>
>>> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/c0a9cb82-a524-40f1-9f1f-c95fc43c1dfa%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAMrg02RcC5v6836KQpH1nfzUUBUs_VCfHorOcXQ5rjWjvpK1Tg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


02_installPlugins.groovy
Description: Binary data


pluginslist.cfg
Description: Binary data


Re: Install specific version of plugins with Groovy script

2018-12-19 Thread Victor Martinez
Hi Phillip,

I'm afraid I do not have an answer about it as I was in fact looking for an 
answer at that moment. Maybe I didn't ask correctly... I don't recall what 
I did instead.

JCasC might solve this or sort of, although it's a beta feature:
- 
https://github.com/jenkinsci/configuration-as-code-plugin/blob/master/README.md#plugin-management


Cheers

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/440fa3f6-377c-441a-a472-1b981dcfe4ba%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Install specific version of plugins with Groovy script

2018-12-18 Thread Phillip Dudley
Love these answers that aren't finished. 

Victor Martinez, do you have an example of what you're talking about? 

On Friday, April 20, 2018 at 4:43:24 PM UTC-5, geoffroy...@gmail.com wrote:
>
> Hello
> just in case, could someone share a groovy sample script to achieve this?
> I guess you have to download .jpi file into /plugins folder (also handling 
> dependencies...), then restart jenkins?
> I had written that in shell (ugly but working), but still learning in 
> Groovy!
> Thanks in advance
>
>
> On Thursday, 27 October 2016 11:28:19 UTC+2, Daniel Beck wrote:
>>
>>
>> > On 28.04.2016, at 11:38, Alexandre Chaussier  
>> wrote: 
>> > 
>> > All is OK if I want to use latest versions of plugins, but I would like 
>> to know if it is possible to request a specific version of the plugins when 
>> I request installation from my groovy code ? 
>> > 
>> > I use the UpdateCenter.getPlugin() method but I don't see where I can 
>> add this constraint. 
>>
>> Update center based installation can only install the one version defined 
>> in the update site. 
>>
>> You need to go with URL based installation for specific versions. 
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/c0a9cb82-a524-40f1-9f1f-c95fc43c1dfa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Install specific version of plugins with Groovy script

2018-04-20 Thread geoffroy . jabouley
Hello
just in case, could someone share a groovy sample script to achieve this?
I guess you have to download .jpi file into /plugins folder (also handling 
dependencies...), then restart jenkins?
I had written that in shell (ugly but working), but still learning in 
Groovy!
Thanks in advance


On Thursday, 27 October 2016 11:28:19 UTC+2, Daniel Beck wrote:
>
>
> > On 28.04.2016, at 11:38, Alexandre Chaussier  > wrote: 
> > 
> > All is OK if I want to use latest versions of plugins, but I would like 
> to know if it is possible to request a specific version of the plugins when 
> I request installation from my groovy code ? 
> > 
> > I use the UpdateCenter.getPlugin() method but I don't see where I can 
> add this constraint. 
>
> Update center based installation can only install the one version defined 
> in the update site. 
>
> You need to go with URL based installation for specific versions. 
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/a531b912-f86b-4732-a1f4-f8124ea6819c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Install specific version of plugins with Groovy script

2016-10-27 Thread Daniel Beck

> On 28.04.2016, at 11:38, Alexandre Chaussier  
> wrote:
> 
> All is OK if I want to use latest versions of plugins, but I would like to 
> know if it is possible to request a specific version of the plugins when I 
> request installation from my groovy code ?
> 
> I use the UpdateCenter.getPlugin() method but I don't see where I can add 
> this constraint.

Update center based installation can only install the one version defined in 
the update site.

You need to go with URL based installation for specific versions.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/7074E4A0-9F55-4175-8223-A8F565F577B0%40beckweb.net.
For more options, visit https://groups.google.com/d/optout.


Re: Install specific version of plugins with Groovy script

2016-10-27 Thread Victor Martinez
I'm also looking for a similar groovy command, any ideas?

On Thursday, 28 April 2016 11:38:43 UTC+2, Alexandre Chaussier wrote:
>
> Hello,
>
> Today, I use groovy scripts with an Ansible role to manage my Jenkins 
> installation and configuration.
>
> All is OK if I want to use latest versions of plugins, but I would like to 
> know if it is possible to request a specific version of the plugins when I 
> request installation from my groovy code ?
>
> I use the UpdateCenter.getPlugin() method but I don't see where I can add 
> this constraint.
>
>
> Thanks,
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/7af5dfd0-d6cf-446d-9c03-c7f1ef0bb2e8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.