How can I update jenkins plugins from the terminal?

后端 未结 6 1902
庸人自扰
庸人自扰 2021-01-30 11:07

I am trying to create a bash script for setting up Jenkins. Is there any way to update a plugin list from the Jenkins terminal?

At first setup there is no plugin availab

6条回答
  •  孤街浪徒
    2021-01-30 11:47

    You can actually install plugins from the computer terminal (rather than the Jenkins terminal).

    1. Download the plugin from the plugin site (http://updates.jenkins-ci.org/download/plugins)
    2. Copy that plugin into the $JENKINS_HOME/plugins directory
    3. At that point either start Jenkins or call the reload settings service (http://yourservername:8080/jenkins/reload)

    This will enable the plugin in Jenkins and assuming that Jenkins is started.

    cd $JENKINS_HOME/plugins
    curl -O http://updates.jenkins-ci.org/download/plugins/cobertura.hpi
    curl http://yourservername:8080/reload
    

提交回复
热议问题