• USA : +1 973 910 5725
  • INDIA: +91 905 291 3388
  • info@tekslate.com
  • Login

Step by Step Process of Installing Jenkins

Jenkins Installation

With the release of 2.0, the installation of Jenkins remains largely the same but the initial setup is different. After you have chosen your preferred OS or container for installation the first time you run Jenkins you will be presented with a setup wizard to properly configure Jenkins. Jenkins will not be accessible via the web interface or CLI until the initial setup is complete.

The Plugin Install Wizard will be launched

Requirements

-Jenkins requires Java7 or above and Servlet 3.1 to function.

-Java8 is recommended.

-Jenkins requires a fair amount of memory to operate well.

-Smaller installations should start around 256MB-1GB.

Installation

wget -q -O - https://jenkins-ci.org/debian/jenkins-ci.org.key | sudo apt-key add -
sudo sh -c 'echo deb http://pkg.jenkins-ci.org/debian-stable binary/ > /etc/apt/sources.list.d/jenkins.list'
sudo apt-get update
sudo apt-get install jenkins

Installation of a stable version

There is also a LTS YUM repository for the LTS Release Line

  • sudo wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat-stable/jenkins.repo
  • sudo rpm --import https://jenkins-ci.org/redhat/jenkins-ci.org.key
  • sudo yum install jenkins
These core tutorials will help you to learn the Step by Step Process of Installing Jenkins. For an in-depth
 understanding and practical experience, explore Online Jenkins Training.

Installation of Java

Jenkins requires Java in order to run, yet certain distros don’t include this by default. To install the Open Java Development Kit (OpenJDK) run the following:

sudo yum install java

Install Jenkins as a Windows service

First, you need to start Jenkins before installing it. This can be done from JNLP, or by running “java -jar jenkins.war“.

Now connect to Jenkins by going to the following URL http://<hostname>:8080/
Once Jenkins is started this way, look for the “Install as Windows Service” link in the “Manage Jenkins” page (requires Microsoft .NET framework version 2.0):

Capture.230

Clicking this link shows you the installation screen:

Capture.231

Choose the directory where Jenkins shall be installed (directory must already exist. If not create it before hand). This will become JENKINS_HOME and used to store data files and programs alike.
Upon successful completion of the installation, you should see a page asking you to restart Jenkins.

Learn more about Jenkins Interview Questions in this blog post.

Capture.232

This is to re-launch Jenkins as a newly installed Windows service. When you click yes, you’ll be asked to wait until the restart completes:

At this point you can use the service manager to confirm that Jenkins is running as a service.

Capture.234

Summary
Review Date
Reviewed Item
Step by Step Process of Installing Jenkins
Author Rating
5

“At TekSlate, we are trying to create high quality tutorials and articles, if you think any information is incorrect or want to add anything to the article, please feel free to get in touch with us at info@tekslate.com, we will update the article in 24 hours.”

0 Responses on Step by Step Process of Installing Jenkins"

    Leave a Message

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

    Site Disclaimer, Copyright © 2016 - All Rights Reserved.

    Support


    Please leave a message and we'll get back to you soon.

    I agree to be contacted via e-mail.