Install and Jenkins on Windows 10, Docker, Mac OSX, OpenBSD, OpenSUSE, RedHat, Fedora, CentOS, Ubuntu, and Debian


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

2016-11-29-22_50_49-windows-media-player

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.

 

2016-11-29-22_50_49-windows-media-player

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.

2016-11-29-22_51_34-jenkins

Click on the OS to download the package. In our case we will first try to install Jenkins on Windows 10

2016-11-29-22_52_12-thank-you-for-downloading-windows-installer

Extract the jenkins.exe from the zip file downloaded from the jenkins.io. Click on the exe and it will start the installer.

2016-11-29-23_08_15-jenkins-2-19-4

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.

2016-11-29-23_08_54-jenkins-2-19-4-setup

Once you select the destination folder, click on Next and in the next dialog box click on install.

2016-11-29-23_09_04-jenkins-2-19-4-setup

It will start installing Jenkins 2.19.4

2016-11-29-23_09_21-jenkins-2-19-4

Click on Finish when setup wizard is completed.

2016-11-29-23_12_02-1-installation

Let’s verify whether Jenkins service is created and available in the Windows Services.

2016-11-29-23_23_34-films-tv

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.

2016-11-29-23_32_23-windows-media-player

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.

2016-11-29-23_34_08-windows-media-player

It will start installing common plugins and it will take some time.

2016-11-29-23_35_05-windows-media-player

Wait till all the plugins are installed.

2016-11-29-23_41_35-setupwizard-jenkins

Once all plugins are installed, it will ask you to create an admin user. Provide details and click on Save and Finish.

2016-11-29-23_49_57-setupwizard-jenkins

Jenkins is ready to Use. Click on Start using Jenkins.

2016-11-29-23_50_41-setupwizard-jenkins

Bingo…. Here is the Jenkins Dashboard.

2016-11-29-23_51_15-windows-media-player

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.

2016-11-29-22_54_36-windows-media-player

 

For Redhat, Fedora, and CentOS select the Package based on the OS from https://jenkins.io

2016-11-29-22_55_33-redhat-repository-for-jenkins

For Ubuntu and Debian download the packages as given in below screenshot and install in the system.

2016-11-29-22_56_09-debian-repository-for-jenkins

For OpenSUSE download the packages as given in below screenshot and install in the system.

2016-11-29-22_57_34-windows-media-player

 

Leave a comment

Your email address will not be published. Required fields are marked *