Plugin to get the plugins diff between two Jenkins servers

15 views
Skip to first unread message

alok joshi

unread,
Mar 9, 2017, 5:36:33 PM3/9/17
to jenkins...@googlegroups.com
Hi folks,

I am wondering if there exists a plugin which takes a Jenkins URL as input, credentials as input and returns a list of extra set/list of plugins installed on this remote Jenkins, as compared to the Jenkins instance I am logged into.

It will have a similar UI experience with Job-import-plugin, but only returns the extra set of plugins installed on the source Jenkins instance. I don't want to add this feature into job-import-plugin because its a separate functionality altogether.

My org is making a platform change to host user's Jenkins instances on, and we would like such kind of functionality, so users are aware of the extra set of plugins they need to install on their new Jenkins instance.

Thanks,
Alok

Fritz Elfert

unread,
Mar 9, 2017, 6:20:26 PM3/9/17
to jenkins...@googlegroups.com
Don't know about a plugin, but I would use jenkins-cli and a little shell-script
like this instead (untested, because written as I wrote this mail):

#!/bin/sh
JURL1=http://jenkins1.url
JURL2=http://jenkins2.url
curl -L $JURL1/jnlpJars/jenkins-cli.jar > jenkins1-cli.jar
java -jar jenkins1-cli.jar -s $JURL1 list-plugins | sort > plugins-jenkins1.lst
curl -L $JURL2/jnlpJars/jenkins-cli.jar > jenkins2-cli.jar
java -jar jenkins2-cli.jar -s $JURL2 list-plugins | sort > plugins-jenkins2.lst
diff -uw plugins-jenkins1.lst plugin-jenkins2.lst


Cheers
-Fritz

On 09.03.2017 23:35, alok joshi wrote:
> Hi folks,
>
> I am wondering if there exists a plugin which takes a Jenkins URL as
> input, credentials as input and returns a list of *extra* set/list of
> plugins installed on this remote Jenkins, as compared to the Jenkins
> instance I am logged into.
>
> It will have a similar UI experience with Job-import-plugin
> <https://wiki.jenkins-ci.org/display/JENKINS/Job+Import+Plugin>, but
> only returns the extra set of plugins installed on the source Jenkins
> instance. I don't want to add this feature into job-import-plugin
> because its a separate functionality altogether.
>
> My org is making a platform change to host user's Jenkins instances on,
> and we would like such kind of functionality, so users are aware of the
> extra set of plugins they need to install on their new Jenkins instance.
>
> Thanks,
> Alok
>
> --
> 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
> <mailto:jenkinsci-use...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/CAOfSH6TJO2Y_A1vs6g_JpsuJG%3DxpX4pY1btfDpiCqgoqMMXBxA%40mail.gmail.com
> <https://groups.google.com/d/msgid/jenkinsci-users/CAOfSH6TJO2Y_A1vs6g_JpsuJG%3DxpX4pY1btfDpiCqgoqMMXBxA%40mail.gmail.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout.


signature.asc
Reply all
Reply to author
Forward
0 new messages