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

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

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

Thomas Sundberg-2
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 [hidden email].
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.
Reply | Threaded
Open this post in threaded view
|

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

Thomas Sundberg-2
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 <[hidden email]> 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 [hidden email].
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.
Reply | Threaded
Open this post in threaded view
|

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

Richard Bywater-3
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 <[hidden email]> 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 <[hidden email]> 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 [hidden email].
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 [hidden email].
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.
Reply | Threaded
Open this post in threaded view
|

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

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 <[hidden email]> 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 <[hidden email]> 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 <[hidden email]> 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 [hidden email].
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 [hidden email].
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 [hidden email].
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.
Reply | Threaded
Open this post in threaded view
|

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

Thomas Sundberg-2
In reply to this post by Richard Bywater-3
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 <[hidden email]> 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 <[hidden email]> 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 <[hidden email]> 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 [hidden email].
>> 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 [hidden email].
> 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 [hidden email].
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.