Automating Jenkins module install

continuous integrationJenkins

Is there any way to automate the install of modules within Jenkins? I'm trying to script/automate the install of my CI box as much as possible. I have just about everything working but at the moment it requires someone go into Jenkins and install the modules via the web interface.

Best Answer

You can download the plugins from http://mirrors.jenkins-ci.org/plugins/PLUGIN_NAME/latest/PLUGIN_NAME.hpi . Dropping them into jenkins/plugins/ will do the trick.

Don't forget to restart Jenkins.

Also, if you're using Chef instead of Puppet, the Jenkins cookbook will take care of installing plugins as well.