How to install a plugin in Jenkins manually

后端 未结 12 648
你的背包
你的背包 2020-11-29 17:06

Installing a plugin from the Update center results in:

Checking internet connectivity Failed to connect to http://www.google.com/. Perhaps you need

12条回答
  •  夕颜
    夕颜 (楼主)
    2020-11-29 17:56

    To install plugin "git" with all its dependencies:

    curl -XPOST http://localhost:8080/pluginManager/installNecessaryPlugins -d ''
    

    Here, the plugin installed is git ; the version, specified as @current is ignored by Jenkins. Jenkins is running on localhost port 8080, change this as needed. As far as I know, this is the simplest way to install a plugin with all its dependencies 'by hand'. Tested on Jenkins v1.644

提交回复
热议问题