First of all,I wish you a happy new year with lot of success for all of you 😀
Now ,to have a good start for 2021 we will learn how to use one of the most important characteristics of Jenkins!You already know how flexible is Jenkins to fit your need,by using the appropriate plugins.
Today we will see how to add plugins to your Jenkins.
There are many ways to add a plugin to your Jenkins master,the most common is to download them and add them from the plugin management tab ,there is also another one , by uploading the plugin by yourself,let’s check it:
Add plugin from plugin manager
- Select Dashboard then Plugin manager on the user interface
Here you got many plugin related tabs
- plugin updates
- plugin available
- plugin installed
- We will select for example the slack notification plugin,type it in search bar then every plugin containing slack will appear
- Select slack notification plugin click on the name and it will display a description of the plugin
- Now we just have to check the box and start installation
- When it’s done we can verify that plugin is installed by checking the installed tab(check if the box enabled is checked,it also allow you to uninstall it or just disable it by unchecking the box”Enabled”)
- As plugin is now installed you can add slack notification to your post built execution,select one of your builds and update it’s configuration ,then select add post build action you will see slack notification in the drop down menu
Upload plugin manually
- Download your plugin Manually,here we will use JDK_Parameter_Plugin
- Go to advanced tab and select upload plugin then browse until your hpi file ( the plugin format )below we have downloaded a plugin JDK and we will upload it manually
- When it is done , a message will show you success
- Go now on installed tab to check if all is ok
- Note :In the advanced tab you can add a repo for the plugins download, by default it is the Jenkins site repo
That’s it, you know now how to install your plugin on Jenkins by using the plugin manager and also manually!
Feel free to comment and share,don’t forget to check dbi bloggers for many others topics,you can also give a look on https://www.jenkins.io/ to have load of interesting info on Jenkins 😉