Step by Step Process of Installing Jenkins
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
-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.
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):
Clicking this link shows you the installation screen:
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.
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.