Way to import/replicate plugins configuration from one server to another .

40 views
Skip to first unread message

Taher Furniturewala

unread,
Nov 13, 2015, 1:16:24 PM11/13/15
to jenkins...@googlegroups.com

 

Am in the process of configuring a replacement( upgraded)  Jenkins master for an existing one .

 

On the new master , I want the same plugins which are there on the current one  ( The versions of course would be different ie whatever is the latest )

 

The manual way is to open the ‘manage plugin’  window in the old and new servers ,  search one at a time in the new server and checkmark it and then install .

 

Am contemplating if I copy over the old plugins directory contents onto the new server and restart and then choose the new versions available , would that work smoothly and be a better way to do it  ?

 

Is there any other simplified way to do this ?

 

( Would be cool to have something like ‘clone jenkins server ‘  , just like we can clone jobs at the moment  .. )

 

Thanks

Taher .

 




This email and any attachments may contain confidential and privileged material for the sole use of the intended recipient. Any review, copying, or distribution of this email (or any attachments) by others is prohibited. If you are not the intended recipient, please contact the sender immediately and permanently delete this email and any attachments. No employee or agent of TiVo Inc. is authorized to conclude any binding agreement on behalf of TiVo Inc. by email. Binding agreements with TiVo Inc. may only be made by a signed written agreement.

Michael Wiles

unread,
Nov 14, 2015, 9:10:01 AM11/14/15
to jenkins...@googlegroups.com

Take a look at the file system for the origin jenkins... I'm fairly confident you'll see the hpi (jenkins plugin package) files there.

I'm not 100% sure but if you copy those files to the same location on the new jenkins and restart that should work...


--
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/712CB46A62E6AA4EA165C01FEC43CD7A08773230%40SJEXMB02.Tivo.com.
For more options, visit https://groups.google.com/d/optout.

Olemis Lang

unread,
Nov 14, 2015, 10:28:32 AM11/14/15
to jenkins...@googlegroups.com
On 11/14/15, Michael Wiles <michae...@gmail.com> wrote:
> On Fri, 13 Nov 2015, 20:16 Taher Furniturewala <tfurni...@tivo.com>
> wrote:
>
>>
>> Am in the process of configuring a replacement( upgraded) Jenkins master
>> for an existing one .
>>
>> On the new master , I want the same plugins which are there on the
>> current
>> one ( The versions of course would be different ie whatever is the latest
>> )
>>
[...]
>>
>> Am contemplating if I copy over the old plugins directory contents onto
>> the new server and restart and then choose the new versions available ,
>> would that work smoothly and be a better way to do it ?
>>
>> Is there any other simplified way to do this ?
>>
>
> Take a look at the file system for the origin jenkins... I'm fairly
> confident you'll see the hpi (jenkins plugin package) files there.
>
> I'm not 100% sure but if you copy those files to the same location on the
> new jenkins and restart that should work...
>
[...]

I'd like to follow with a (somehow) different (but related) question .
Is there any way to automate such things (e.g. server installations /
migrations , plugin installs , build job config , ...) using Ansible
[1]_ or any other equivalent tool ?

.. [1] http://www.ansible.com

--
Regards,

Olemis - @olemislc

Apache™ Bloodhound contributor
http://issues.apache.org/bloodhound
http://blood-hound.net

Brython committer
http://brython.info
http://github.com/brython-dev/brython

Blog ES: http://simelo-es.blogspot.com/
Blog EN: http://simelo-en.blogspot.com/

Featured article:

Victor Martinez

unread,
Nov 14, 2015, 1:07:23 PM11/14/15
to Jenkins Users
Hi,

 You can use Puppet, Chef and Ansible in order to configure your Infrastructure and also your Jenkins configuration. 

1) Chef recipe has been there longer than the Puppet one, and it does provide slaves auto provisioning for JNLP/ssh/swarm, Puppet module only supports swarm by default, although you can code your own module to use ssh connections. Ansible playbook no idea yet!
2) Both of them use jobs templating, but in that case I will run away of that strategy and use the Configuration as Code paradigm (called Pipeline/Workflow as Code too), either using JobDSL or Workflow plugins or Jenkins Builder in order to use the Dev best practices in the Jobs setup
3) Plugins installation and configuration are fully supported
4) Some pieces of the Jenkins global setup cannot be automated via those modules/recipes/playbooks but you can easily run some groovy script to configure them accordingly, and they support groovy scripts themselves.

 Further details:
  - Puppethttps://forge.puppetlabs.com/rtyler/jenkins It's maintained by the Jenkins community and driven by RTyler!
  - Chefhttps://supermarket.chef.io/cookbooks/jenkins (It has been developed by an awesome Ruby engineer ;) 
  - Ansiblehttps://github.com/geerlingguy/ansible-role-jenkins (It has been developed by an Evangelist of Ansible ;)

I hope it helps

Taher Furniturewala

unread,
Nov 16, 2015, 7:39:00 PM11/16/15
to jenkins...@googlegroups.com

 

Yes , thanks that’s what I did : tar’ed the plugins directory of the current Master , and untarred it in the JENKINS_HOME of the replacement master .

 

Worked fine  ;  but I still  went through comparing each plugin  and versions on both ( had to unpin a few and upgrade a few )  .


For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages