You are on page 1of 8

Installing Jenkins on Windows

Memory 2 GB RAM (Recommended)

Disk Space We need at least 1 GB of space in our hard drive for Jenkins

Hardware Requirements

Software Requirements

JDK We need either Java Development (JDK) or Java Runtime Environment


(JRE)

Operating Jenkins can be installed on Windows, Mac OS X, Ubuntu/Debian, Red


System Hat/Fedora/CentOS, openSUSE, FReeBSD, OpenBSD, Gentoo.

Java The WAR (Web Application Resource) file can be run in any container
Container that supports Servlet 2.4/JSP 2.0 or later. (For example Tomcat 5).

• Java 8 - either a Java Runtime Environment (JRE) or a Java Development Kit (JDK) is fine
Note: This is not a requirement if running Jenkins as a Docker container.

Release Types

Jenkins supports two types of releases based on the organization needs:

o Long-term support release


o Weekly release

Long term support release (LTS): Long-term support releases (LTS) are available every 12
weeks. They are stable and are widely used and tested. Basically, this release is intended for
end users.

Weekly release: This release is available in every week by fixing bugs in its earlier version.
These releases are intended towards plugin developers.

We will use the long term support release (LTS) though the process remains the same for Weekly
release.

1
Install Java Version 8

Since Jenkins is a Java based application, therefore Java is a must.

To download the Java Click here. Select file according to your platform.

Download Jenkins war File

This war is required to install Jenkins.

The official website for Jenkins is https://jenkins.io/

When you click the given link, you will get the home page of the Jenkins official website

Click on the Download button.

2
Click on Generic Java Package (.war) to download the Jenkins war file.
Place the war file in any folder.

Open the command prompt and go to the directory where the Jenkins.war file is located. And
then run the following command:

1. C:/Java -jar Jenkins.war  

When you run this command, various tasks will run, one of which is the extraction of the war
file which is done by an embedded webserver called winstone.

After the command is run, various tasks will run, one of which is the extraction of the war file
which is done by an embedded webserver called winstone.

Once the processing is complete without major errors, the following line will come in the
output of the command prompt.

INFO: Jenkins is fully up and running

3
Click on Allow access button to allow the access.

Accessing Jenkins

Now you can access the Jenkins. Open your browser and type the following url on your
browser:

Unlocking Jenkins

When you first access a new Jenkins instance, you are asked to unlock it using an
automaticallygenerated password.

1. Browse to localhost:8080 (or whichever port you configured for Jenkins when
installing it) and wait until the Unlock Jenkins page appears.
2. From the Jenkins console log output, copy the automatically-generated
alphanumeric password (between the 2 sets of asterisks).
3. On the Unlock Jenkins page, paste this password into the Administrator
password field and click Continue.

4
or

Fill the administrator password from the path mention.


In the above image c:Users\Spandana\.jenkins\secrets\initialAdminPassword
Then click on continiue.

Customizing Jenkins with plugins


After unlocking Jenkins, the Customize Jenkins page appears. Here you can install any
number of
useful plugins as part of your initial setup.
Click one of the two options shown:
 Install suggested plugins - to install the recommended set of plugins, which are based
on most common use cases.
 Select plugins to install - to choose which set of plugins to initially install. When you
first
access the plugin selection page, the suggested plugins are selected by default.

5
Click on install

Creating the first administrator user


Finally, after customizing Jenkins with plugins, Jenkins asks you to create your first
administrator user.
1. When the Create First Admin User page appears, specify the details for your
administrator user in the respective fields and click Save and Finish.
2. When the Jenkins is ready page appears, click Start using Jenkins. Notes:
 This page may indicate Jenkins is almost ready! instead and if so, click
Restart.
 If the page does not automatically refresh after a minute, use your web
browser to refresh the page manually.
3. If required, log in to Jenkins with the credentials of the user you just created and you
are ready to start using Jenkins!

6
If you create a new user you will be continued as new user or Skip this and continue as
admin.

Click on save and finish

7
Click on start using jenkins

Jenkins home page

You might also like