Re: How can I find the plugin name to use with install-plugins.sh?

2019-05-02 Thread 'Sven Hüßner' via Jenkins Users
I realize this is something of a necro, but for future people coming by, 
this will help:

Use Jenkins-CLI to retrieve a list of plugins installed in the instance:

java -jar jenkins-cli.jar -s http://10.10.18.10:9000/ list-plugins

jdk-tool   JDK Tool Plugin  
1.2
build-timeout  Build Timeout
1.19
resource-disposer  Resource Disposer Plugin 
0.12
jsch   JSch dependency plugin   
0.1.55
workflow-scm-step  Pipeline: SCM Step   
2.7
...


You can also get this via

$ JENKINS_HOST=username:passw...@myhost.com:port

$ curl -sSL 
"http://$JENKINS_HOST/pluginManager/api/xml?depth=1=/*/*/shortName|/*/*/version=plugins"
 
| perl -pe 's/.*?([\w-]+).*?([^<]+)()(<\/\w+>)+/\1 
\2\n/g'|sed 's/ /:/'


Example Output:

cucumber-testresult-plugin:0.8.2
pam-auth:1.1
matrix-project:1.4.1
script-security:1.13
...



This is from https://github.com/jenkinsci/docker/blob/master/README.md

Then you can use a file with the format of
:
:
:


And copy it over in your Dockerfile, then use it as input for 
install-plugins.sh

Dockerfile:
COPY plugins.txt /usr/share/jenkins/plugins.txt
RUN /usr/local/bin/install-plugins.sh < /usr/share/jenkins/plugins.txt

It's quite a bit irritating though when you come to updating those plugins 
later on. And I haven't found a solution for it yet.


Am Donnerstag, 13. September 2018 13:42:43 UTC+2 schrieb Thomas Sundberg:
>
> Hi! 
>
> I am creating a Jenkins installation from a Dockerfile. I want to 
> specify all plugins so they are available when the image is built. 
>
> This typically looks like many lines like this: 
>
> RUN /usr/local/bin/install-plugins.sh greenballs 
>
> Is there a way to find the proper name for each plugin? I am currently 
> looking for the proper name for the Docker Pipeline 
> Plugin,https://wiki.jenkins.io/display/JENKINS/Docker+Pipeline+Plugin 
>
> Cheers, 
> Thomas 
>
> -- 
> Thomas Sundberg 
> M. Sc. in Computer Science 
>
> Mobile: +46 70 767 33 15 
> Blog: http://www.thinkcode.se/blog 
> Twitter: @thomassundberg 
>
> Better software through faster feedback 
>

-- 
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/da81f9f9-5945-45f1-b77a-ca3a60f21e52%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How can I find the plugin name to use with install-plugins.sh?

2018-10-10 Thread dave.bender
Is there an API call that could be used to retrieve that and other tidbits 
about the plugin?   We're looking for a way to effectively audit and 
automate our plugin management.  I suppose we could call that page and 
screen scrape the data, but I was wondering if the data displayed is 
already available somewhere. 


Dave


On Friday, September 14, 2018 at 5:04:32 AM UTC-5, Richard Bywater wrote:

> Note that you can also find the ID of a plugin on the plugins.jenkins.io 
> page for that plugin (e.g. https://plugins.jenkins.io/docker-workflow) - 
> its ID is shown just below the plugin name header.
>
> Richard.
>
> On Fri, Sep 14, 2018 at 12:00 AM Thomas Sundberg  > wrote:
>
>> Hi!
>>
>> This is partly answering my own question:
>>
>> Install the plugin you want to try.
>>
>> Run the script
>>
>> Jenkins.instance.pluginManager.plugins.each{
>>   plugin ->
>> println ("${plugin.getDisplayName()} (${plugin.getShortName()}):
>> ${plugin.getVersion()}")
>> }
>>
>> Locate the short name of the plugin you want to deploy and add it to
>> the Dockerfile.
>>
>> In this particular case, look for the line
>>
>> Docker Pipeline (docker-workflow): 1.17
>>
>> and add
>>
>> RUN /usr/local/bin/install-plugins.sh docker-workflow
>>
>> in your Dockerfile.
>>
>> Clumsy? Yes
>> Did it work? Yes
>>
>> What would you like?
>> A section at the page
>> https://wiki.jenkins.io/display/JENKINS/Docker+Pipeline+Plugin stating
>> that the command line name for this plugin is docker-workflow
>>
>> Cheers,
>> Thomas
>>
>> On Thu, 13 Sep 2018 at 13:42, Thomas Sundberg > 
>> wrote:
>> >
>> > Hi!
>> >
>> > I am creating a Jenkins installation from a Dockerfile. I want to
>> > specify all plugins so they are available when the image is built.
>> >
>> > This typically looks like many lines like this:
>> >
>> > RUN /usr/local/bin/install-plugins.sh greenballs
>> >
>> > Is there a way to find the proper name for each plugin? I am currently
>> > looking for the proper name for the Docker Pipeline
>> > Plugin,https://wiki.jenkins.io/display/JENKINS/Docker+Pipeline+Plugin
>> >
>> > Cheers,
>> > Thomas
>> >
>> > --
>> > Thomas Sundberg
>> > M. Sc. in Computer Science
>> >
>> > Mobile: +46 70 767 33 15
>> > Blog: http://www.thinkcode.se/blog
>> > Twitter: @thomassundberg
>> >
>> > Better software through faster feedback
>>
>>
>>
>> --
>> Thomas Sundberg
>> M. Sc. in Computer Science
>>
>> Mobile: +46 70 767 33 15
>> Blog: http://www.thinkcode.se/blog
>> Twitter: @thomassundberg
>>
>> Better software through faster feedback
>>
>> -- 
>> 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-use...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/jenkinsci-users/CACpkv-x3VCcC8sWiDqMT%2BDUpPej09cZL7aKXQYQ20zjzENMoxQ%40mail.gmail.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/a7868849-5c56-4c32-af6d-d68bb74e4b16%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How can I find the plugin name to use with install-plugins.sh?

2018-09-17 Thread Thomas Sundberg
Thank you Richard!

This was exactly what I needed but I had missed since it was rather
small and with grey text.

/Thomas

On Fri, 14 Sep 2018 at 12:04, Richard Bywater  wrote:
>
> Note that you can also find the ID of a plugin on the plugins.jenkins.io page 
> for that plugin (e.g. https://plugins.jenkins.io/docker-workflow) - its ID is 
> shown just below the plugin name header.
>
> Richard.
>
> On Fri, Sep 14, 2018 at 12:00 AM Thomas Sundberg  wrote:
>>
>> Hi!
>>
>> This is partly answering my own question:
>>
>> Install the plugin you want to try.
>>
>> Run the script
>>
>> Jenkins.instance.pluginManager.plugins.each{
>>   plugin ->
>> println ("${plugin.getDisplayName()} (${plugin.getShortName()}):
>> ${plugin.getVersion()}")
>> }
>>
>> Locate the short name of the plugin you want to deploy and add it to
>> the Dockerfile.
>>
>> In this particular case, look for the line
>>
>> Docker Pipeline (docker-workflow): 1.17
>>
>> and add
>>
>> RUN /usr/local/bin/install-plugins.sh docker-workflow
>>
>> in your Dockerfile.
>>
>> Clumsy? Yes
>> Did it work? Yes
>>
>> What would you like?
>> A section at the page
>> https://wiki.jenkins.io/display/JENKINS/Docker+Pipeline+Plugin stating
>> that the command line name for this plugin is docker-workflow
>>
>> Cheers,
>> Thomas
>>
>> On Thu, 13 Sep 2018 at 13:42, Thomas Sundberg  wrote:
>> >
>> > Hi!
>> >
>> > I am creating a Jenkins installation from a Dockerfile. I want to
>> > specify all plugins so they are available when the image is built.
>> >
>> > This typically looks like many lines like this:
>> >
>> > RUN /usr/local/bin/install-plugins.sh greenballs
>> >
>> > Is there a way to find the proper name for each plugin? I am currently
>> > looking for the proper name for the Docker Pipeline
>> > Plugin,https://wiki.jenkins.io/display/JENKINS/Docker+Pipeline+Plugin
>> >
>> > Cheers,
>> > Thomas
>> >
>> > --
>> > Thomas Sundberg
>> > M. Sc. in Computer Science
>> >
>> > Mobile: +46 70 767 33 15
>> > Blog: http://www.thinkcode.se/blog
>> > Twitter: @thomassundberg
>> >
>> > Better software through faster feedback
>>
>>
>>
>> --
>> Thomas Sundberg
>> M. Sc. in Computer Science
>>
>> Mobile: +46 70 767 33 15
>> Blog: http://www.thinkcode.se/blog
>> Twitter: @thomassundberg
>>
>> Better software through faster feedback
>>
>> --
>> 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/CACpkv-x3VCcC8sWiDqMT%2BDUpPej09cZL7aKXQYQ20zjzENMoxQ%40mail.gmail.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/CAAy0hwek0EFfzzkZLzGtpLYd%2Bu1qk8h6KEwg_bTLvRjcP-Fc_A%40mail.gmail.com.
> For more options, visit https://groups.google.com/d/optout.



-- 
Thomas Sundberg
M. Sc. in Computer Science

Mobile: +46 70 767 33 15
Blog: http://www.thinkcode.se/blog
Twitter: @thomassundberg

Better software through faster feedback

-- 
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/CACpkv-y%3D5JB-MG4m%2BgsBscq%2BnDg4ZiR79_8Pvh18QKaqMyu7qA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: How can I find the plugin name to use with install-plugins.sh?

2018-09-14 Thread Jan Monterrubio
If I recall correctly, install plugins can handle a pipe delimited list of
plugin names and versions. Or maybe I’m confusing that script with a
different one.

On Fri, Sep 14, 2018 at 05:04 Richard Bywater  wrote:

> Note that you can also find the ID of a plugin on the plugins.jenkins.io
> page for that plugin (e.g. https://plugins.jenkins.io/docker-workflow) -
> its ID is shown just below the plugin name header.
>
> Richard.
>
> On Fri, Sep 14, 2018 at 12:00 AM Thomas Sundberg  wrote:
>
>> Hi!
>>
>> This is partly answering my own question:
>>
>> Install the plugin you want to try.
>>
>> Run the script
>>
>> Jenkins.instance.pluginManager.plugins.each{
>>   plugin ->
>> println ("${plugin.getDisplayName()} (${plugin.getShortName()}):
>> ${plugin.getVersion()}")
>> }
>>
>> Locate the short name of the plugin you want to deploy and add it to
>> the Dockerfile.
>>
>> In this particular case, look for the line
>>
>> Docker Pipeline (docker-workflow): 1.17
>>
>> and add
>>
>> RUN /usr/local/bin/install-plugins.sh docker-workflow
>>
>> in your Dockerfile.
>>
>> Clumsy? Yes
>> Did it work? Yes
>>
>> What would you like?
>> A section at the page
>> https://wiki.jenkins.io/display/JENKINS/Docker+Pipeline+Plugin stating
>> that the command line name for this plugin is docker-workflow
>>
>> Cheers,
>> Thomas
>>
>> On Thu, 13 Sep 2018 at 13:42, Thomas Sundberg  wrote:
>> >
>> > Hi!
>> >
>> > I am creating a Jenkins installation from a Dockerfile. I want to
>> > specify all plugins so they are available when the image is built.
>> >
>> > This typically looks like many lines like this:
>> >
>> > RUN /usr/local/bin/install-plugins.sh greenballs
>> >
>> > Is there a way to find the proper name for each plugin? I am currently
>> > looking for the proper name for the Docker Pipeline
>> > Plugin,https://wiki.jenkins.io/display/JENKINS/Docker+Pipeline+Plugin
>> >
>> > Cheers,
>> > Thomas
>> >
>> > --
>> > Thomas Sundberg
>> > M. Sc. in Computer Science
>> >
>> > Mobile: +46 70 767 33 15
>> > Blog: http://www.thinkcode.se/blog
>> > Twitter: @thomassundberg
>> >
>> > Better software through faster feedback
>>
>>
>>
>> --
>> Thomas Sundberg
>> M. Sc. in Computer Science
>>
>> Mobile: +46 70 767 33 15
>> Blog: http://www.thinkcode.se/blog
>> Twitter: @thomassundberg
>>
>> Better software through faster feedback
>>
>> --
>> 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/CACpkv-x3VCcC8sWiDqMT%2BDUpPej09cZL7aKXQYQ20zjzENMoxQ%40mail.gmail.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/CAAy0hwek0EFfzzkZLzGtpLYd%2Bu1qk8h6KEwg_bTLvRjcP-Fc_A%40mail.gmail.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/CADgiF9LQ-8BSC%2BhezJjOr%3D43ORx4MK0GaQvKKsN6AUXa8WQJbQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: How can I find the plugin name to use with install-plugins.sh?

2018-09-14 Thread Richard Bywater
Note that you can also find the ID of a plugin on the plugins.jenkins.io
page for that plugin (e.g. https://plugins.jenkins.io/docker-workflow) -
its ID is shown just below the plugin name header.

Richard.

On Fri, Sep 14, 2018 at 12:00 AM Thomas Sundberg  wrote:

> Hi!
>
> This is partly answering my own question:
>
> Install the plugin you want to try.
>
> Run the script
>
> Jenkins.instance.pluginManager.plugins.each{
>   plugin ->
> println ("${plugin.getDisplayName()} (${plugin.getShortName()}):
> ${plugin.getVersion()}")
> }
>
> Locate the short name of the plugin you want to deploy and add it to
> the Dockerfile.
>
> In this particular case, look for the line
>
> Docker Pipeline (docker-workflow): 1.17
>
> and add
>
> RUN /usr/local/bin/install-plugins.sh docker-workflow
>
> in your Dockerfile.
>
> Clumsy? Yes
> Did it work? Yes
>
> What would you like?
> A section at the page
> https://wiki.jenkins.io/display/JENKINS/Docker+Pipeline+Plugin stating
> that the command line name for this plugin is docker-workflow
>
> Cheers,
> Thomas
>
> On Thu, 13 Sep 2018 at 13:42, Thomas Sundberg  wrote:
> >
> > Hi!
> >
> > I am creating a Jenkins installation from a Dockerfile. I want to
> > specify all plugins so they are available when the image is built.
> >
> > This typically looks like many lines like this:
> >
> > RUN /usr/local/bin/install-plugins.sh greenballs
> >
> > Is there a way to find the proper name for each plugin? I am currently
> > looking for the proper name for the Docker Pipeline
> > Plugin,https://wiki.jenkins.io/display/JENKINS/Docker+Pipeline+Plugin
> >
> > Cheers,
> > Thomas
> >
> > --
> > Thomas Sundberg
> > M. Sc. in Computer Science
> >
> > Mobile: +46 70 767 33 15
> > Blog: http://www.thinkcode.se/blog
> > Twitter: @thomassundberg
> >
> > Better software through faster feedback
>
>
>
> --
> Thomas Sundberg
> M. Sc. in Computer Science
>
> Mobile: +46 70 767 33 15
> Blog: http://www.thinkcode.se/blog
> Twitter: @thomassundberg
>
> Better software through faster feedback
>
> --
> 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/CACpkv-x3VCcC8sWiDqMT%2BDUpPej09cZL7aKXQYQ20zjzENMoxQ%40mail.gmail.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/CAAy0hwek0EFfzzkZLzGtpLYd%2Bu1qk8h6KEwg_bTLvRjcP-Fc_A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: How can I find the plugin name to use with install-plugins.sh?

2018-09-13 Thread Thomas Sundberg
Hi!

This is partly answering my own question:

Install the plugin you want to try.

Run the script

Jenkins.instance.pluginManager.plugins.each{
  plugin ->
println ("${plugin.getDisplayName()} (${plugin.getShortName()}):
${plugin.getVersion()}")
}

Locate the short name of the plugin you want to deploy and add it to
the Dockerfile.

In this particular case, look for the line

Docker Pipeline (docker-workflow): 1.17

and add

RUN /usr/local/bin/install-plugins.sh docker-workflow

in your Dockerfile.

Clumsy? Yes
Did it work? Yes

What would you like?
A section at the page
https://wiki.jenkins.io/display/JENKINS/Docker+Pipeline+Plugin stating
that the command line name for this plugin is docker-workflow

Cheers,
Thomas

On Thu, 13 Sep 2018 at 13:42, Thomas Sundberg  wrote:
>
> Hi!
>
> I am creating a Jenkins installation from a Dockerfile. I want to
> specify all plugins so they are available when the image is built.
>
> This typically looks like many lines like this:
>
> RUN /usr/local/bin/install-plugins.sh greenballs
>
> Is there a way to find the proper name for each plugin? I am currently
> looking for the proper name for the Docker Pipeline
> Plugin,https://wiki.jenkins.io/display/JENKINS/Docker+Pipeline+Plugin
>
> Cheers,
> Thomas
>
> --
> Thomas Sundberg
> M. Sc. in Computer Science
>
> Mobile: +46 70 767 33 15
> Blog: http://www.thinkcode.se/blog
> Twitter: @thomassundberg
>
> Better software through faster feedback



--
Thomas Sundberg
M. Sc. in Computer Science

Mobile: +46 70 767 33 15
Blog: http://www.thinkcode.se/blog
Twitter: @thomassundberg

Better software through faster feedback

-- 
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/CACpkv-x3VCcC8sWiDqMT%2BDUpPej09cZL7aKXQYQ20zjzENMoxQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


How can I find the plugin name to use with install-plugins.sh?

2018-09-13 Thread Thomas Sundberg
Hi!

I am creating a Jenkins installation from a Dockerfile. I want to
specify all plugins so they are available when the image is built.

This typically looks like many lines like this:

RUN /usr/local/bin/install-plugins.sh greenballs

Is there a way to find the proper name for each plugin? I am currently
looking for the proper name for the Docker Pipeline
Plugin,https://wiki.jenkins.io/display/JENKINS/Docker+Pipeline+Plugin

Cheers,
Thomas

--
Thomas Sundberg
M. Sc. in Computer Science

Mobile: +46 70 767 33 15
Blog: http://www.thinkcode.se/blog
Twitter: @thomassundberg

Better software through faster feedback

-- 
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/CACpkv-w2BTZH6zKrFp4jeMx1GHZT%3DSKepY6jZxoORda613JRiw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.