Installing All Jenkins Plugins from hpi files.

10 views
Skip to first unread message

Miguel Campos

unread,
Sep 1, 2019, 6:53:46 AM9/1/19
to Jenkins Users
Hello,
I have a need of being able to "replicate Jenkins masters" I mean ensure that every new Jenkins master I install is exactly the same as the version I defined some time ago.
by exactly the same I mean configuration and versions.
However I need to have then configured different credentials, and having different "secret.key"  so that it if a Jenkins instance is compromised the other instances are safe.

To get base version of Jenkins is easy is a matter of getting the right jenkins.war.
the problem shows when dealing with plugins.
Maintaining a txt with names and versions manually I think is going to be to muh work and too complecated to maintain it is a verry long list.
So my Intention is "clone" my Base instance plugins, so I can use the gui tools to perform the upgrades and testing and once I'm ok with that I can "clone" the plugins and make a tgz that I can use later to install a fresh instance.

I do not know if it's save to Just copy the plugins folder from a running instance. (there are also some config fines I do not know if I need those)

So What I tried to do instead is to download all the hpi files for the list of files and versions. and make the zip with those.

My problem:
When starting a fresh install of jenkins using only the jenkins.war and the plugins directory containing only all the hpi files for the plugins something is wrong with the dependencies.
I mean for example with the role base auth.  it has a dependency of the matrix-auth plugin.
I have both hpi with the right versions.  but some how when Jenkins boot instead of installing all the hpi disregarding dependencies  for the plugins.
instead some how I.ve got installed version 1.1 for the matrix-auth when my hpi is the right one.

I would like to understand why is this happening. why if my hpi file is for version 2.4 I've got 1.1  installed.
and if there is a way to control this.

Should I control dependencies and install hpi in order? I guess that will be much complicated. (I've seen some scripts doing something like that for dockers)

What is the right way of getting a new clear instance of Jenkins master that is exactly the same as other? (but clear without credentials projects etc etc.
Thanks.


Norman Khine

unread,
Sep 1, 2019, 7:22:51 AM9/1/19
to jenkins...@googlegroups.com
Maybe this is what you are looking for assuming you are using AWS 

--
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/c64d6ac6-5d88-4309-af5b-a0bd96df5840%40googlegroups.com.
--
%>>> "".join( [ {'*':'@','^':'.'}.get(c,None) or chr(97+(ord(c)-83)%26) for c in ",adym,*)&uzq^zqf" ] )

Miguel Campos

unread,
Sep 2, 2019, 5:36:09 AM9/2/19
to Jenkins Users
Thanks,
but unfortunatelly I'm not using AWS just running on VM
To unsubscribe from this group and stop receiving emails from it, send an email to jenkins...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages