Another solution can be to use Docker. Your Dockerfile would be something like:
FROM jenkins:1.625.3 ADD yourplugin.hpi /usr/share/jenkins/ref/plugins/yourplugin.jpi Then build [ && push ] && run. My 2 cents. 2015-12-23 20:59 GMT+01:00 Mark Waite <[email protected]>: > jenkins-cli.jar includes the install-plugin command which can install a > plugin. It can also do a safe restart of the Jenkins server (may be needed > after the plugin installation). > > Mark Waite > > On Wed, Dec 23, 2015 at 12:39 PM Gavin Mogan <[email protected]> wrote: > >> Hey everyone >> >> I can't decide if this belongs on the user list or the dev list but >> trying here first. >> >> Has anyone come up with a way (maven or jenkins) to automatically deploy >> a plugin to a jenkins instance? I want to setup a nice demo server that >> always has the latest version of our plugin, but don't want to go through >> the steps of having to manually goto the plugins page, then upload, then >> wait, then restart, etc. >> >> I can probably script something with the cli tool, but don't want to >> duplicate work. >> >> Gavin >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Jenkins Developers" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/jenkinsci-dev/7444f258-8e22-4296-8d91-7988648227f6%40googlegroups.com >> <https://groups.google.com/d/msgid/jenkinsci-dev/7444f258-8e22-4296-8d91-7988648227f6%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> For more options, visit https://groups.google.com/d/optout. >> > -- > You received this message because you are subscribed to the Google Groups > "Jenkins Developers" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/jenkinsci-dev/CAO49JtGOf8_czr2smUr5_z-pSoULFpQa6aYcoM3v9TQ8hQxaYQ%40mail.gmail.com > <https://groups.google.com/d/msgid/jenkinsci-dev/CAO49JtGOf8_czr2smUr5_z-pSoULFpQa6aYcoM3v9TQ8hQxaYQ%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- Baptiste <Batmat> MATHUS - http://batmat.net Sauvez un arbre, Mangez un castor ! -- You received this message because you are subscribed to the Google Groups "Jenkins Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CANWgJS7OXOGDR%2BoMWOPRhs5h-hkoUewUe3g1yxsi%2BYeJ9GVVDA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
