FYI if you don't have Java installed on the machine that is wanting to make the call to add the plugin, you can do it via the SSH mechanism too. See https://wiki.jenkins-ci.org/display/JENKINS/Jenkins+SSH
Richard. On Wed, Jun 11, 2014 at 3:07 PM, Code <[email protected]> wrote: > I changed to use jenkins-cli.jar as you suggested and it works as I > expected. > > > On Monday, June 9, 2014 11:17:39 AM UTC+7, Mark Waite wrote: > >> If you're already scripting, and you're installing a plugin from the >> update center, couldn't just just as easily use the command line interface? >> >> For example, I use the command: >> >> java -jar jenkins-cli.jar -s http://wheezy64b:8080/ install-plugin git >> git-client >> >> https://wiki.jenkins-ci.org/display/JENKINS/Jenkins+CLI gives more >> instructions on using the command line interface. >> >> Mark Waite >> >> >> On Sun, Jun 8, 2014 at 10:10 PM, Code <[email protected]> wrote: >> >>> My goal is to create a script to automatically install and setup jenkins >>> on a linux instance (CentOs.) Jenkins document >>> <https://wiki.jenkins-ci.org/display/JENKINS/Plugins> says I can >>> manually install a plugin by copying the hpi/jpi file to plugins directory. >>> I tried to do that by using the following commands >>> >>> *cd /var/lib/jenkins/plugins* >>> *curl -O http://updates.jenkins-ci.org/latest/chucknorris.hpi >>> <http://updates.jenkins-ci.org/latest/chucknorris.hpi>* >>> >>> then I checked and the file was there. So, I restarted the service (*service >>> jenkins restart*.) After the website was back online, I went to >>> JENKINS_URL/pluginManager/installed but checknorris wasn't there. I >>> would like to know what I did wrong and how I can fix this issue. >>> >>> Thanks! >>> >>> >>> -- >>> 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]. >>> >>> For more options, visit https://groups.google.com/d/optout. >>> >> >> >> >> -- >> Thanks! >> Mark Waite >> > -- > 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]. > 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]. For more options, visit https://groups.google.com/d/optout.
