InterviewSolution
| 1. |
How to install a Custom Jenkins Plugin or a Version of Plugin Not available in Jenkins Update Center? |
|
Answer» Generally, it is the best practice to use the latest version of a plugin. But there are ways to install custom plugins or outdated versions of a published plugin. Jenkins Plugins are exported using a .hpi file and the same can be installed in multiple ways - Using the Jenkins CLI java -jar jenkins-cli.jar -s http://localhost:8080/ install-plugin SOURCE ... [-DEPLOY] [-name VAL] [-restart] The above command Installs a plugin either from a file, an URL or from the update center.
ADVANCED Installation - via - Web UI Assuming a .hpi file has been downloaded, a logged-in Jenkins administrator may upload the file from within the web UI:
Advanced Installation - via - On the master Assuming a .hpi file has been explicitly downloaded by a systems administrator, the administrator can manually place the .hpi file in a specific location on the file system. Copy the downloaded .hpi file into the JENKINS_HOME/plugins directory on the Jenkins controller (for example, on Debian systems JENKINS_HOME is generally /var/lib/jenkins). The master will need to be restarted before the plugin is loaded and made available in the Jenkins environment. |
|