0% found this document useful (0 votes)
265 views7 pages

LAB-1 (JENKINS Installation Document)

Jenkins is an open source tool for continuous integration and delivery. It allows automating the build, test, and deployment of code changes. Jenkins provides a server-based system that is typically run on Apache Tomcat and supports version control systems and build tools. It is written in Java and released under the MIT license. This document provides step-by-step instructions for installing Jenkins on an Ubuntu server, including downloading the WAR file, running Jenkins in the background, accessing it via the web interface, and adding a description. Configuration data is stored in the hidden .jenkins folder in the user's home directory.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
265 views7 pages

LAB-1 (JENKINS Installation Document)

Jenkins is an open source tool for continuous integration and delivery. It allows automating the build, test, and deployment of code changes. Jenkins provides a server-based system that is typically run on Apache Tomcat and supports version control systems and build tools. It is written in Java and released under the MIT license. This document provides step-by-step instructions for installing Jenkins on an Ubuntu server, including downloading the WAR file, running Jenkins in the background, accessing it via the web interface, and adding a description. Configuration data is stored in the hidden .jenkins folder in the user's home directory.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 7

JENKINS

Definition: Jenkins is an open source continuous integration tool written in Java. The
project was forked from the open source Hudson project which was originally
developed at Sun Microsystems (after a dispute with Sun’s acquirer, Oracle). Jenkins
provides continuous integration services for software development. It is a server-
based system, typically run from a servlet container such as Apache Tomcat. It
supports SCM tools including AccuRev, CVS, Subversion, Git, Mercurial, Perforce,
Clear case and RTC, and can execute Apache Ant and Apache Maven based projects
as well as arbitrary shell scripts and Windows batch commands. The primary
developer of Jenkins is Kohsuke Kawaguchi, founder of CloudBees. Jenkins is
released under the MIT License and is free software.

Jenkins Architecture:
Jenkins is a powerful application that allows continuous integration and continuous delivery of
projects, regardless of the platform you are working on. It is a free source that can handle any kind
of build or continuous integration. You can integrate Jenkins with a number of testing and
deployment technologies.
Jenkins Step by step installation on Ubuntu:
In this lab, we will install and test Jenkins on the EC2 Ubuntu server. The server is an Ubuntu
16.04 server. (N.B. If you cannot access the lab VM any base Ubuntu 14.04 system will work).

STEP-1:
 Creating an EC2 Ubuntu with basic creating instance server.

The Commands used in this Jenkins installation is an Ubuntu server:

Step 2: Updating your Ubuntu server for latest patches.


 sudo apt-get update

Step 3: In order to run the latest version of Jenkins we must have Java 8 installed. To begin the
Jenkins setup, install Java:
 sudo apt-get install openjdk-8*
 java –version (shows which version of java is installed)

Step4: Now we can download the Jenkins WAR file. For this class, we will download the latest
version of Jenkins
 wget http://mirrors.jenkins-ci.org/war/latest/jenkins.war

Step 5: Launch Jenkins in the background and verify its execution.


 nohup java -jar jenkins.war --httpPort=8888 > jenkins.log 2>&1 &
Note: ------ command used to run the job in background
Step 6: jobs
------ to check running jobs
Step 7: Open Your Web Browser and copy your public ip Address and your port number
 http:// (Public dns or dns ip):8888
Note: if your browser doesn’t open Jenkins site you need to add your port-
number in your Security groups (inbound and outbound)

Step 8: Repeat same Step 7 and it will take you to Jenkins page and need to put
the password
Step9: Use this command
 ls (you will see log and war file in your Ubuntu home directory)

Step 10:
 cat jenkins.log
 you will see the password like this when you scroll down

OR
 if you don’t find the password follow the path in that page:
/home/ubuntu/.jenkins/secrets/initialAdminPassword

Step11: Need to Install only Suggested plugins


Step12: Need to create a user name and password for the jenkins

If you are using Virtual Box rather than VMWare as your desktop hypervisor you will need to
forward port 8888 to your host system before you will be able to access the Jenkins server port.

If accessing Jenkins from your host machine is proving problematic you can always install Firefox
on your lab system and use a browser within your lab system to reach Jenkins:
 user@ubuntu:~$ sudo apt-get install firefox
 user@ubuntu:~$ firefox &
o Running firefox with an “&” suffix runs it in the background. You can lock (pin)
the firefox start icon to the Launcher (launch bar) once it is running so that you can
launch it from the Launcher going forward.
 Open your browser and paste public ip address with your port number

Looking at the main Jenkins page answer the following questions:


 What version of Jenkins are you running?
 Locate the Build Executor Status pane
o How Many Build Executors does your Jenkins system have?
 Minimize the Build Executor Status pane
o What is the role of your Jenkins system (master or slave)?
 Locate the Build Queue pane
o How many builds are queued for execution?

Click the “add description” link at the top right of the home page to add a description to your
Jenkins system:

Add your description by clicking the “Submit” button below and to the right of the text box to
display the description on the Jenkins Home page. If you have several Jenkins systems running
adding a description can simplify the process of identifying the various build servers and their
purposes.

Where do you think Jenkins saves this configuration data?

Run the following grep search in your lab system using the exact text you added to your home
page:
 user@ubuntu: ~$ grep -r "Jenkins Lab System"
.jenkins/config.xml: <description>Jenkins Lab System</description>
As you can see Jenkins keeps configuration in the hidden .jenkins folder by default. This is
known as the JENKINS_HOME directory. We’ll learn more about this directory and configuring
Jenkins in later labs.
Congratulation you have successfully installed and run a Jenkins Server!

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy