First and foremost download Jenkins from https://jenkins.io
Jenkins installation comes in different flavor.
For almost every operating system and also for Docker container, Jenkins installation is available.
In this post we will look at installation in General way and also operating system specific.
Download a WAR file from https://jenkins.io
On command line or in terminal run,
java -jar jenkins.war
Make sure Java is installed on your system and JAVA_HOME as well as path Environment variables has entry for Java installation Directory.
Go to https://jenkins.io and click on the Download Jenkins that will bring the pop up to select the package to download based on the Operating system.
Click on the drop down arrow as shown in the below figure and you will get all the options to download installation package of Jenkins based on OS.
Click on the OS to download the package. In our case we will first try to install Jenkins on Windows 10
Extract the jenkins.exe from the zip file downloaded from the jenkins.io. Click on the exe and it will start the installer.
Select Destination folder where you want to install Jenkins. Please remember that this is the JENKINS_HOME directory as you are going to install Jenkins from the Windows Installer.
Once you select the destination folder, click on Next and in the next dialog box click on install.
It will start installing Jenkins 2.19.4
Click on Finish when setup wizard is completed.
Let’s verify whether Jenkins service is created and available in the Windows Services.
Visit http://localhost:8080 and you will get Unlock Jenkins Screen. Enter password by copying it from the given location on the screen that is available in JENKINS_HOME directory.
If you are not connected to Internet or behind the Firewall, it will ask for the Proxy details else it will give you below screen. Click on the Install Suggested plugins.
It will start installing common plugins and it will take some time.
Wait till all the plugins are installed.
Once all plugins are installed, it will ask you to create an admin user. Provide details and click on Save and Finish.
Jenkins is ready to Use. Click on Start using Jenkins.
Bingo…. Here is the Jenkins Dashboard.
For Docker, Go to https://jenkins.io and click on the Download Jenkins that will bring the pop up to select the package to download for Docker and it will redirect us to below page.
For Redhat, Fedora, and CentOS select the Package based on the OS from https://jenkins.io
For Ubuntu and Debian download the packages as given in below screenshot and install in the system.
For OpenSUSE download the packages as given in below screenshot and install in the system.