Update jenkins plugins automatically from local repo

108 views
Skip to first unread message

jje

unread,
Jul 8, 2015, 2:40:38 AM7/8/15
to jenkins...@googlegroups.com
Hello Folks!
 
As my jenkins server is running in a subnet without internet access i was wondering if it's possible to configure jenkins to check for plugin updates on variable URL different from jenkins plugin centre one. We are going to download content of plug in centre regularly and put it on our backup server.
Is this practicable?
=)
 
Is there an other way to do so via scripting or console? If so could anyone provide an example?
 
Thanks in advance!
Joe

jje

unread,
Jul 8, 2015, 2:50:02 AM7/8/15
to jenkins...@googlegroups.com
Most comfortable way would be to let jenkins update centre point to an URL different from common one. But this is not manageable, is it?

Daniel Beck

unread,
Jul 8, 2015, 2:52:25 AM7/8/15
to jenkins...@googlegroups.com
You can define additional update centers on the Advanced tab of the plugin manager. Alternatively, UpdateSites Manager Plugin should be able to do replace the built-in update site.

Remember that you need to cannot just use the same JSON (other download URLs), and need to sign the file contents.
> --
> 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/c922badb-ff45-4fcc-8b35-6bcc1db03aad%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

jje

unread,
Jul 8, 2015, 3:25:39 AM7/8/15
to jenkins...@googlegroups.com, m...@beckweb.net
Hi Daniel,
 
thanks for that fast answer. From which jenkins server release that feature is provided?I've checked update site manager plugin, and redefined the location. Unfortunataly searching for updates on update centre does not work.What is meant with "sign the file contents"?
"

jje

unread,
Jul 8, 2015, 3:29:47 AM7/8/15
to jenkins...@googlegroups.com, m...@beckweb.net
Okay... i've found a description how to make my own update centre.
"Wer lesen kann ist klar im Vorteil"
;-)

Christoph Obexer

unread,
Jul 8, 2015, 1:25:26 PM7/8/15
to jenkins...@googlegroups.com
This would be so much easier if
https://issues.jenkins-ci.org/browse/JENKINS-26231 was fixed...

I don't see a reason why the json file needs to contain absolute URLs in
the first place

Br,
Christoph

jje

unread,
Jul 9, 2015, 8:44:09 AM7/9/15
to jenkins...@googlegroups.com
Now I've tried to create my own update-center. Haven't done this before and now I stuck. Check this:

https://groups.google.com/forum/#!topic/jenkinsci-users/ewt5cFxGm24
Reply all
Reply to author
Forward
0 new messages