Yes, I've been looking into Puppet. It is a consideration. I've written a script that runs as a cron job daily. It reads all the plugin MANIFEST.MF files and records the name/version of each installed plugin. This is then checked in to SVN.
My other script reads this list and downloads the plugins last recorded. Worst case, we'd be a day off (or so the theory goes). Our other office uses Puppet, so I've started learning it as well. Even with Puppet, though, I'd need a way to download the version of each plugin that we last used. I'm presuming Puppet doesn't have the where-with-all to do it by itself. My first attempt was to write a script. I'm looking into using jenkins-ci.jar, thinking it may do a better job of downloading plugins. If we just install a few products (anyone can do that), perform an SVN checkout and then run a script, that would be ideal. Thanks to you all for your assistance and suggestions. Chris Carlson Sr. Software Engineer Zodiac Inflight Innovations 2929 E. Imperial Hwy. Brea, CA 92821 USA P: 714.854.8478 www.imsco-us.com<http://www.imsco-us.com> From: [email protected] [mailto:[email protected]] On Behalf Of Kevin Fleming (BLOOMBERG/ 731 LEXIN) Sent: Tuesday, August 20, 2013 9:23 AM To: [email protected] Subject: RE: How to download plugins from Linux shell Ahh, but there's the rub. If you've deployed from an automated system you need to update using it too. If you let the Jenkins admin install new plugins (or update plugins) through Jenkins itself, then your recipe in your SCM will be obsolete, and may not work at all if you have to deploy a new server for recovery (this could happen if jobs that you restore to the server require those newer/additional plugins). This why system admins use tools like Chef/Puppet to manage software deployment and updates (as someone suggested earlier in this thread). ----- Original Message ----- From: [email protected]<mailto:[email protected]> To: [email protected]<mailto:[email protected]> At: Aug 20 2013 12:08:30 I appreciate your suggestion. Under normal conditions, a *new* plugin would be downloaded through Jenkins. Also, any upgrades would be downloaded through Jenkins. Our motivation is, what if our server goes down, and we have to get a new one up right away? We want to create a new Linux box, install Jenkins, SVN checkout what we had, retrieve the same version plugins we had, then bring up Jenkins. Now, make it easy enough that a non-Jenkins user, a low-level tech, or just about anybody can do it. Chris Carlson Sr. Software Engineer Zodiac Inflight Innovations 2929 E. Imperial Hwy. Brea, CA 92821 USA P: 714.854.8478 www.imsco-us.com<http://www.imsco-us.com> From: [email protected]<mailto:[email protected]> [mailto:[email protected]] On Behalf Of Kevin Fleming (BLOOMBERG/ 731 LEXIN) Sent: Tuesday, August 20, 2013 6:35 AM To: [email protected]<mailto:[email protected]> Subject: RE: How to download plugins from Linux shell The other recommendations you've received are really valuable, and you should not discount them. If you go down the route of downloading HPI/JPI files yourself, you will lose the benefit of dependency handling that Jenkins provides. You will have to download *all* necessary plugins (not just the top-level list you want to install), and when you want to upgrade any plugin you'll need to be sure that its depedencies are met and that it does not break dependencies for other plugins. This is all manageable, of course, but seems like a great deal of extra work when you can just use jenkins-cli to tell Jenkins 'install plugin XYZ' and let it handle that stuff. ----- Original Message ----- From: [email protected]<mailto:[email protected]> To: [email protected]<mailto:[email protected]> At: Aug 19 2013 15:13:44 Woohoo! It worked for me, too! There must have been something wrong with the site, because wget didn't work for me before. Thanks, all! I appreciate your quick response. Chris Carlson Sr. Software Engineer Zodiac Inflight Innovations 2929 E. Imperial Hwy. Brea, CA 92821 USA P: 714.854.8478 www.imsco-us.com<http://www.imsco-us.com> From: [email protected]<mailto:[email protected]> [mailto:[email protected]] On Behalf Of William Soula Sent: Monday, August 19, 2013 12:10 PM To: [email protected]<mailto:[email protected]> Subject: RE: How to download plugins from Linux shell The following command works for me: wget http://updates.jenkins-ci.org/download/plugins/AdaptivePlugin/0.1/AdaptivePlugin.hpi Will ________________________________ From: [email protected]<mailto:[email protected]> [[email protected]] on behalf of Richard Bywater [[email protected]] Sent: Monday, August 19, 2013 2:04 PM To: [email protected]<mailto:[email protected]> Subject: Re: How to download plugins from Linux shell I believe the site was having issues a while ago so perhaps try again as works for me. Richard. On Tuesday, August 20, 2013, Christopher Carlson wrote: Will, I tried that. I get a 404 error. Chris Carlson Sr. Software Engineer Zodiac Inflight Innovations 2929 E. Imperial Hwy. Brea, CA 92821 USA P: 714.854.8478 www.imsco-us.com<http://www.imsco-us.com> > -----Original Message----- > From: [email protected]<UrlBlockedError.aspx> > [mailto:jenkinsci-<UrlBlockedError.aspx> > [email protected]<UrlBlockedError.aspx>] On Behalf Of William Soula > Sent: Monday, August 19, 2013 11:37 AM > To: [email protected]<UrlBlockedError.aspx> > Subject: RE: How to download plugins from Linux shell > > Should be able to wget off this url: > http://updates.jenkins-ci.org/download/plugins/ > > Will > ________________________________________ > From: > [email protected]<mailto:[email protected]> > [jenkinsci- > [email protected]<mailto:[email protected]>] on behalf of > Christopher Carlson > [[email protected]] > Sent: Monday, August 19, 2013 1:33 PM > To: [email protected]<mailto:[email protected]> > Subject: RE: How to download plugins from Linux shell > > Will, > > Thanks for your suggestion. > > What you're describing is kind of what I want to do. I just can't figure out > how to download the plugins programmatically. It seems my options are: > 1. Use Jenkins CLI > a. Install Jenkins > b. Use Jenkins to download jenkins-cli.jar > c. Run a script to use jenkins-cli.jar to download the plugins > d. Instruct Jenkins to reload configuration 2. Use Jenkins > a. Install Jenkins > b. Use Jenkins to manually install each plugin version we're currently > using > c. Instruct Jenkins to reload configuration 3. Create our own .war package > > In each of the first two cases, this requires someone to use Jenkins to > install > the plugins. > > In the last case, we would need to continually create .war packages every > time we upgrade plugins. > > I was hoping there was a simple 'rsync', 'scp', 'ftp' or 'wget' method for > downloading plugins. > > > Chris Carlson > Sr. Software Engineer > Zodiac Inflight Innovations > > 2929 E. Imperial Hwy. > Brea, CA 92821 USA > P: 714.854.8478 > www.imsco-us.com<http://www.imsco-us.com> > > > > -----Original Message----- > > From: > > [email protected]<mailto:[email protected]> > > [mailto:jenkinsci- > > [email protected]<mailto:[email protected]>] On Behalf Of William > > Soula > > Sent: Monday, August 19, 2013 11:27 AM > > To: > > [email protected]<mailto:[email protected]> > > Subject: Re: How to download plugins from Linux shell > > > > You could also download the plugins and put them into the plugin > > folder so that when jenkins starts it will find all the jpis and unpack > > them. > > Or you could use chef. > > > > Will > > > > On 08/19/13 13:24, Daniel Beck wrote: > > > You could create a custom jenkins.war that bundles the plugins you > > > want in > > the versions you want. > > > > > > https://wiki.jenkins-ci.org/display/JENKINS/Bundling+plugins+with+Je > > > nk > > > ins > > > > > > On 19.08.2013, at 19:31, Christopher Carlson > > > <[email protected]<mailto:[email protected]>> > > wrote: > > > > > >> Is it possible to download plugins using a bash shell script? > > >> > > >> Our company would like to be able to automate setting up a build > > machine, and we want to limit the amount of steps required. They want > > something like: > > >> * Install Jenkins > > >> * svn co .../stable/jenkins > > >> * ./InstallPlugins > > >> This way, the only things maintained in subversion are the jobs, > > >> scripts > > and anything that can't be downloaded from the Internet. > > >> > > >> Thanks for any assistance you can provide. > > >> > > >> > > >> -- > > >> You received this message because you are subsc -- 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 [email protected]<mailto:[email protected]>. For more options, visit https://groups.google.com/groups/opt_out. -- 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 [email protected]<mailto:[email protected]>. For more options, visit https://groups.google.com/groups/opt_out. ________________________________ This email and any files transmitted with it are confidential & proprietary to Systems and Software Enterprises, LLC. This information is intended solely for the use of the individual or entity to which it is addressed. Access or transmittal of the information contained in this e-mail, in full or in part, to any other organization or persons is not authorized. -- 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 [email protected]<mailto:[email protected]>. For more options, visit https://groups.google.com/groups/opt_out. -- 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 [email protected]<mailto:[email protected]>. For more options, visit https://groups.google.com/groups/opt_out. ________________________________ This email and any files transmitted with it are confidential & proprietary to Systems and Software Enterprises, LLC. This information is intended solely for the use of the individual or entity to which it is addressed. Access or transmittal of the information contained in this e-mail, in full or in part, to any other organization or persons is not authorized. -- 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 [email protected]<mailto:[email protected]>. For more options, visit https://groups.google.com/groups/opt_out. -- 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 [email protected]<mailto:[email protected]>. For more options, visit https://groups.google.com/groups/opt_out. ________________________________ This email and any files transmitted with it are confidential & proprietary to Systems and Software Enterprises, LLC. This information is intended solely for the use of the individual or entity to which it is addressed. Access or transmittal of the information contained in this e-mail, in full or in part, to any other organization or persons is not authorized. -- 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 [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
