in Technology by
How to install a Custom Jenkins Plugin or a Version of Plugin Not available in Jenkins Update Center?

1 Answer

0 votes
by

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.

  • SOURCE: If this points to a local file, that file will be installed. If this is an URL, Jenkins downloads the URL and installs that as a plugin. Otherwise, the name is assumed to be the short name of the plugin in the existing update center (like "findbugs") and the plugin will be installed from the update center.
  • -deploy: Deploy plugins right away without postponing them until the reboot.
  • -name VAL: If specified, the plugin will be installed as this short name (whereas normally the name is inferred from the source name automatically).
  • -restart: Restart Jenkins upon successful installation.

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:

  • Navigate to the Manage Jenkins > Manage Plugins page in the web UI.
  • Click on the Advanced tab.
  • Choose the .hpi file under the Upload Plugin section.
  • Upload the plugin file.
  • Restart the Jenkins instance

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.

Related questions

0 votes
    I have a Jenkins project that does a gradle build and uploads build artifacts to a Nexus maven hosted ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Jun 14, 2022 in Education by JackTerrance
0 votes
    How to get the Jenkins version programmatically in Jobs/Pipelines or nodes other than master?...
asked Sep 14, 2021 in Technology by JackTerrance
0 votes
    Inno Setup is a nice easy to use installer. It is rated high in this stackoverflow question. I have ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 21, 2022 in Education by JackTerrance
0 votes
    I use an out-of-the-box Anaconda installation to work with Python. Now I have read that it is ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Jun 2, 2022 in Education by JackTerrance
0 votes
    Default Environment Variables by Jenkins & How to introduce custom environment variables?...
asked Sep 14, 2021 in Technology by JackTerrance
0 votes
    What are default Environment Variables by Jenkins & How to introduce custom environment variables?...
asked Jul 17, 2021 in Technology by JackTerrance
0 votes
    What are the ways to install Jenkins?...
asked Sep 14, 2021 in Technology by JackTerrance
0 votes
    What are the ways to install Jenkins?...
asked Jul 16, 2021 in Technology by JackTerrance
0 votes
    Roads should not be tilted towards center on turns.Is it True or False statement 1. True 2. False...
asked May 9, 2021 in General by JackTerrance
0 votes
    I know a little of Python and more than a year ago I wrote a small script, using pipenv to manage the ... 3.0 should work. Select the correct answer from above options...
asked Jan 19, 2022 in Education by JackTerrance
0 votes
    Details If you use the function createCustomToken to sign in the user and setting his custom claim, updating ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 3, 2022 in Education by JackTerrance
0 votes
    The expected value or _______ of a random variable is the center of its distribution. (a) mode (b) ... questions and answers pdf, Data Science interview questions for beginners...
asked Oct 31, 2021 in Education by JackTerrance
0 votes
    In our web application we have lots of JS and CSS files. We need to append a version number to these references every ... . We need to append a parameter to the file reference like...
asked Feb 7, 2022 in Education by JackTerrance
0 votes
    In our web application we have lots of JS and CSS files. We need to append a version number to these references every ... . We need to append a parameter to the file reference like...
asked Feb 5, 2022 in Education by JackTerrance
0 votes
    Is "Select column from updated" available in "After Update" trigger? If not what other approach can be ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 19, 2022 in Education by JackTerrance
...