Installing Jenkins as a service on Windows

Download

The latest version of the Jenkins can be downloaded from the below.

https://jenkins.io/download/

The LTS version receives updates every 12 weeks while the Weekly version receives an update every week, which might be an overkill to maintain. So download the Long Term Support (LTS) version.

image

Select the download for the environment you are going to install Jenkins on.

Since we want to install it as a service on a Windows machine, then download the Windows version.

Installation

On Jenkins download page, under ‘Download Jenkins x.xxx.x for: ‘, select Windows. A zip file is downloaded, extract it to get the Jenkins Windows Installer.

2

3

Double click on the installer to start the Jenkins installation.And click on Next to continue the installation.

4

Select the location to install the Jenkins and click on Next.

5

Click on Install to start the installation process.

6

7

8

9

Once the installation is complete, click on ‘Finish’ to complete the Jenkins installation and launch Jenkins and the browser on the system will be launched with the below page.

Configuration

10

Wait for few minutes till Jenkins completes the initial configuration needed on the first start up.

You need to provide Jenkins one time admin password to continue further setup and start using the Jenkins. The initial password will be available in the Jenkins\secrets\initialAdminPassword file inside the installation folder. The initial password file path is also provided on the same page.

11

The Jenkins installation folder looks similar to the below screen.

12

Open the initialAdminPassword file in notepad to view the one time admin password.

13

Enter the password from initialAdminPassword file into the below screen and click on Continue.

In Customize Jenkins page, you can either select to install the commonly used plugins by selecting ‘Install suggested plugins’ or if you want to select the plugins you want to install click on ‘Select plugins to install’.

15

Jenkins starts downloading the selected plugins and configuring them to your Jenkins installation.

16

Once the plugins are configured, the first admin user for Jenkins needs to be created. Provide Username, Password, Full Name, E-mail address and click on ‘Save and Continue’ to create the user.

17

18

The Jenkins url can be changed in the below screen. Let us leave it to localhost for now. We can change it at any time from the Jenkins configurations later. So just click on ‘Save and Finish’.

19

The Jenkins installation and configuration is completed. Click on ‘Start using Jenkins’ to view the Jenkins home page.

20

You are logged into the Jenkins using the first admin account you created during the configuration process and the Jenkins default home view is displayed.

21

Restart

Jenkins is installed as a service. To restart Jenkins, type ‘Windows + R’ –> services.msc, which will display the below screen. Search for Jenkins service and you can click on Stop/Restart/Start links in the left side to stop, restart or start the service.

24-8

 

Uninstall

In Control Panel, find Jenkins and click on ‘Uninstall’.

image

 

Conclusion

 

In this blog, we have installed Jenkins as a service on a Windows machine, did the initial configurations and the Jenkins installation is ready for use.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s