SlideShare a Scribd company logo
LinuxDady.Com
How to setup jenkins step by step for
beginners
For more information visit
https://linuxdady.com
How to setup Jenkins step by
step
BY DEEPAK KUMAR · PUBLISHED JULY 11, 2019 · UPDATED JULY 11, 2019
In this tutorial we are going to learn how to setup Jenkins server in our infra.
But before installation of Jenkins set your mind about required hardware for
Jenkins and how many jobs will run on your jenkins server at a time. This is
important because if you will not plan your jenkins server hardware
configuration then job execution and build process will impact on jenkins
server.
How to setup jenkins?
Pr required hardware preferred for jenkins server in production environment
RAM : 16 GB
CPU : 2 Dual cores
JAVA : Above JDK 1.8
OS : Centos/Rhel
This hardware requirement is only a basic idea which is given on official
website of jenkins. But mainly it’s depended on how many projects or job you
are running at a time. If you are running single job at time, then why 16 GB
RAM. So, it depends on need.
How to install jenkins?
There are mainly two way to install jenkins. So, it’s depended on your
requirement which one you want to follow. Here we will discuss both ways.
▪ From yum or rpm package.
▪ From .war file.
How to setup jenkins from yum repository
As you know jenkins is written in java language so its basic requirement is java
should be installed on our base machine where we are installing jenkins.
We can also install java manually by download its package from its office
website. But that is time consuming so we are installing it by yum .
1 yum install java* -y
Java has been successfully installed in our base machine now check java
version.
1 java -version
Jenkins package is not available in default repository of centos or redhat. So, we
have to add jenkins EPEL. Let’s do it.
1
2
3
yum install wget* -y
wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat-stable/jenkins.repo
rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io.key
[Click & Read:– Jenkins server and it’s basic terminology]
[Click & Read:– Aws application load balancer configuration step by
step]
After adding EPEL now jenkins package will be in our jenkins EPEL. So, we can
simply install it with the help of yum command.
1 yum install jenkins -y
I think you better understood how to install Jenkins server. Now just only check
service is up properly or not.
1
2
3
4
systemctl start jenkins.service
systemctl enable jenkins.service
systemctl restart jenkins.service
systemctl status jenkins.service
/var/lib/jenkins is jenkins default home directory. So, have a look of it properly.
Because jenkins will put all data here and jenkins config.xml file is also available
here that we can change accordingly if required.
1
2
cd /var/lib/jenkins/
ls
We have competed all step how to set jenkins. Now open your browser and hit
below URL from your browser. But change your server IP address according.
Also check your firewall, selinux and SG if you are using aws ec2 instance.
1 http://52.91.52.14:8080
when you will hit above URL in your browser it will prompt for default
password and will tell location where jenkins generated default password
during installation.
So, go to location and copy paste password and click on –> Continue
1 cat /var/lib/jenkins/secrets/initialAdminPassword
Jenkins first time login and select option . You want to install plugin
automatically or manually.
When required plugin will installed then create jenkins dashboard login user
name and password according to requirement.
Username and password for jenkins dashboard has been created. So have a look
below.
How to setup jenkins second way
The second way of jenkins installation is by jenkins.war file. But first you have
to download package from jenkins official website and then copy .war file at
your required location. The benefit of doing this is there is not internet
dependency on base machine and limitation of jenkins installation by yum or
rpm is only root privilege or root user can install jenkins setup. But with the
help of .war file normal user can setup jenkins without any permission issue.
Download package from below link.
1 https://jenkins.io/download/
If you are using Linux based operating system, then simple copy below link into
your terminal.
1
2
wget http://mirrors.jenkins.io/war-stable/latest/jenkins.war
ls
Now let’s run jenkins.war file that we have download. You can run with the help
of nohup and & shown as fig. & sign will start jenkins service in the background
and nohup file will record all logs.
1 java -jar jenkins.war
Service of jenkins has been started via .war file. So take access from URL and
set default password.
1 http://52.91.52.14:8080
Now default password will generate where you have put your jenkins.war file.
Copy that file and try to login and set your desired password. Next step will be
same as above.
Conclusion
In this tutorial we have learnt how to setup jenkins server in our IT infra from
both method. We can use any method depend of our requirement. I will
recommend you use jenkins.war file for installation because we can install it
without internet and root user dependency. Still if you have any query let me
know. I will try my best to resolve them.
Interview question on Jenkins
1. How to check jenkins version
2. What is hardware requirement for jenkins server?
3. What is jenkins home directory?
4. How we will take backup of jenkins if required?
5. Can we install jenkins without internet if yes how?
6. What is daily routine use cases of jenkins in your infra ?

More Related Content

What's hot

Easy Setup for Parallel Test Execution with Selenium Docker
Easy Setup for Parallel Test Execution with Selenium DockerEasy Setup for Parallel Test Execution with Selenium Docker
Easy Setup for Parallel Test Execution with Selenium Docker
Sargis Sargsyan
 
Selenoid: browsers in containers
Selenoid: browsers in containersSelenoid: browsers in containers
Selenoid: browsers in containers
Ivan Krutov
 
Selenoid
SelenoidSelenoid
Selenoid
DataArt
 
SV iOS Meetup Slides: YmsCoreBluetooth and Deep Core Bluetooth
SV iOS Meetup Slides: YmsCoreBluetooth and Deep Core BluetoothSV iOS Meetup Slides: YmsCoreBluetooth and Deep Core Bluetooth
SV iOS Meetup Slides: YmsCoreBluetooth and Deep Core Bluetooth
Charles Y. Choi
 
DevOps Fest 2020. Роман Орлов. Инфраструктура тестирования в Kubernetes
DevOps Fest 2020. Роман Орлов. Инфраструктура тестирования в KubernetesDevOps Fest 2020. Роман Орлов. Инфраструктура тестирования в Kubernetes
DevOps Fest 2020. Роман Орлов. Инфраструктура тестирования в Kubernetes
DevOps_Fest
 
Installing maven on windows
Installing maven on windowsInstalling maven on windows
Installing maven on windows
Juan Carlos Pérez Pardo
 
DockerCon EU 2017 - Docker on Windows workshop
DockerCon EU 2017 - Docker on Windows workshopDockerCon EU 2017 - Docker on Windows workshop
DockerCon EU 2017 - Docker on Windows workshop
Elton Stoneman
 
DockerCon 17 EU: Modernizing .NET Apps with Docker
DockerCon 17 EU: Modernizing .NET Apps with DockerDockerCon 17 EU: Modernizing .NET Apps with Docker
DockerCon 17 EU: Modernizing .NET Apps with Docker
Elton Stoneman
 
Virtual server on aws
Virtual server on awsVirtual server on aws
Virtual server on aws
kamarul kawnayeen
 
Scalable Selenium cluster: up and running
Scalable Selenium cluster: up and runningScalable Selenium cluster: up and running
Scalable Selenium cluster: up and running
Ivan Krutov
 
Welcome to Jenkins
Welcome to JenkinsWelcome to Jenkins
Welcome to Jenkins
Somkiat Puisungnoen
 
Bluetooth Over-The-Air Firmware Update
Bluetooth Over-The-Air Firmware UpdateBluetooth Over-The-Air Firmware Update
Bluetooth Over-The-Air Firmware Update
Ramin Firoozye
 
How to Dockerize Parallel Execution of Selenium Tests - SQA Days EU, Rgia, La...
How to Dockerize Parallel Execution of Selenium Tests - SQA Days EU, Rgia, La...How to Dockerize Parallel Execution of Selenium Tests - SQA Days EU, Rgia, La...
How to Dockerize Parallel Execution of Selenium Tests - SQA Days EU, Rgia, La...
Sargis Sargsyan
 
Selenium Grid
Selenium GridSelenium Grid
Selenium Grid
nirvdrum
 
Automated-Testing-inside-containers
Automated-Testing-inside-containersAutomated-Testing-inside-containers
Automated-Testing-inside-containers
Manoj Kumar Kumar
 
Jenkins for One
Jenkins for OneJenkins for One
Jenkins for One
Matthew McCullough
 
Xpirit MeetUp: Docker Windows Workshop
Xpirit MeetUp: Docker Windows WorkshopXpirit MeetUp: Docker Windows Workshop
Xpirit MeetUp: Docker Windows Workshop
Elton Stoneman
 
ContainerSched 2017: Why Containers Will Take Over the World
ContainerSched 2017: Why Containers Will Take Over the WorldContainerSched 2017: Why Containers Will Take Over the World
ContainerSched 2017: Why Containers Will Take Over the World
Elton Stoneman
 
Docker - A container full of Chocolatey
Docker - A container full of ChocolateyDocker - A container full of Chocolatey
Docker - A container full of Chocolatey
Stefan Scherer
 
Run Selenium Tests With Jenkins and BrowseEmAll
Run Selenium Tests With Jenkins and BrowseEmAllRun Selenium Tests With Jenkins and BrowseEmAll
Run Selenium Tests With Jenkins and BrowseEmAll
Daniel Herken
 

What's hot (20)

Easy Setup for Parallel Test Execution with Selenium Docker
Easy Setup for Parallel Test Execution with Selenium DockerEasy Setup for Parallel Test Execution with Selenium Docker
Easy Setup for Parallel Test Execution with Selenium Docker
 
Selenoid: browsers in containers
Selenoid: browsers in containersSelenoid: browsers in containers
Selenoid: browsers in containers
 
Selenoid
SelenoidSelenoid
Selenoid
 
SV iOS Meetup Slides: YmsCoreBluetooth and Deep Core Bluetooth
SV iOS Meetup Slides: YmsCoreBluetooth and Deep Core BluetoothSV iOS Meetup Slides: YmsCoreBluetooth and Deep Core Bluetooth
SV iOS Meetup Slides: YmsCoreBluetooth and Deep Core Bluetooth
 
DevOps Fest 2020. Роман Орлов. Инфраструктура тестирования в Kubernetes
DevOps Fest 2020. Роман Орлов. Инфраструктура тестирования в KubernetesDevOps Fest 2020. Роман Орлов. Инфраструктура тестирования в Kubernetes
DevOps Fest 2020. Роман Орлов. Инфраструктура тестирования в Kubernetes
 
Installing maven on windows
Installing maven on windowsInstalling maven on windows
Installing maven on windows
 
DockerCon EU 2017 - Docker on Windows workshop
DockerCon EU 2017 - Docker on Windows workshopDockerCon EU 2017 - Docker on Windows workshop
DockerCon EU 2017 - Docker on Windows workshop
 
DockerCon 17 EU: Modernizing .NET Apps with Docker
DockerCon 17 EU: Modernizing .NET Apps with DockerDockerCon 17 EU: Modernizing .NET Apps with Docker
DockerCon 17 EU: Modernizing .NET Apps with Docker
 
Virtual server on aws
Virtual server on awsVirtual server on aws
Virtual server on aws
 
Scalable Selenium cluster: up and running
Scalable Selenium cluster: up and runningScalable Selenium cluster: up and running
Scalable Selenium cluster: up and running
 
Welcome to Jenkins
Welcome to JenkinsWelcome to Jenkins
Welcome to Jenkins
 
Bluetooth Over-The-Air Firmware Update
Bluetooth Over-The-Air Firmware UpdateBluetooth Over-The-Air Firmware Update
Bluetooth Over-The-Air Firmware Update
 
How to Dockerize Parallel Execution of Selenium Tests - SQA Days EU, Rgia, La...
How to Dockerize Parallel Execution of Selenium Tests - SQA Days EU, Rgia, La...How to Dockerize Parallel Execution of Selenium Tests - SQA Days EU, Rgia, La...
How to Dockerize Parallel Execution of Selenium Tests - SQA Days EU, Rgia, La...
 
Selenium Grid
Selenium GridSelenium Grid
Selenium Grid
 
Automated-Testing-inside-containers
Automated-Testing-inside-containersAutomated-Testing-inside-containers
Automated-Testing-inside-containers
 
Jenkins for One
Jenkins for OneJenkins for One
Jenkins for One
 
Xpirit MeetUp: Docker Windows Workshop
Xpirit MeetUp: Docker Windows WorkshopXpirit MeetUp: Docker Windows Workshop
Xpirit MeetUp: Docker Windows Workshop
 
ContainerSched 2017: Why Containers Will Take Over the World
ContainerSched 2017: Why Containers Will Take Over the WorldContainerSched 2017: Why Containers Will Take Over the World
ContainerSched 2017: Why Containers Will Take Over the World
 
Docker - A container full of Chocolatey
Docker - A container full of ChocolateyDocker - A container full of Chocolatey
Docker - A container full of Chocolatey
 
Run Selenium Tests With Jenkins and BrowseEmAll
Run Selenium Tests With Jenkins and BrowseEmAllRun Selenium Tests With Jenkins and BrowseEmAll
Run Selenium Tests With Jenkins and BrowseEmAll
 

Similar to How to setup jenkins

Drupal Continuous Integration with Jenkins - The Basics
Drupal Continuous Integration with Jenkins - The BasicsDrupal Continuous Integration with Jenkins - The Basics
Drupal Continuous Integration with Jenkins - The Basics
John Smith
 
Build using jenkins on rtc repository
Build using jenkins on rtc repositoryBuild using jenkins on rtc repository
Build using jenkins on rtc repository
Ankit Vashistha
 
Your own minecraft server on a linode vps
Your own minecraft server on a linode vpsYour own minecraft server on a linode vps
Your own minecraft server on a linode vpsCleo Morisson
 
Jenkins Tutorial.pdf
Jenkins Tutorial.pdfJenkins Tutorial.pdf
Jenkins Tutorial.pdf
devtestervicky
 
Front end workflow with yeoman
Front end workflow with yeomanFront end workflow with yeoman
Front end workflow with yeoman
hassan hafez
 
Jenkins
JenkinsJenkins
Setting up and open fidy dev environment
Setting up and open fidy dev environmentSetting up and open fidy dev environment
Setting up and open fidy dev environmentianibbo
 
Setting Up a Cloud Server - Part 1 - Transcript.pdf
Setting Up a Cloud Server - Part 1 - Transcript.pdfSetting Up a Cloud Server - Part 1 - Transcript.pdf
Setting Up a Cloud Server - Part 1 - Transcript.pdf
ShaiAlmog1
 
Devops-Lab.pptx
Devops-Lab.pptxDevops-Lab.pptx
Devops-Lab.pptx
Richa Sharma
 
7 Habits of Highly Effective Jenkins Users
7 Habits of Highly Effective Jenkins Users7 Habits of Highly Effective Jenkins Users
7 Habits of Highly Effective Jenkins Users
Andrew Bayer
 
Drupal Continuous Integration with Jenkins - Deploy
Drupal Continuous Integration with Jenkins - DeployDrupal Continuous Integration with Jenkins - Deploy
Drupal Continuous Integration with Jenkins - Deploy
John Smith
 
An Introduction To Jenkins
An Introduction To JenkinsAn Introduction To Jenkins
An Introduction To Jenkins
Knoldus Inc.
 
Jenkins log monitoring with elk stack
Jenkins log monitoring with elk stackJenkins log monitoring with elk stack
Jenkins log monitoring with elk stack
Subhasis Roy
 
Prizm Installation Guide
Prizm Installation GuidePrizm Installation Guide
Prizm Installation Guide
vjvarenya
 
Getting started with Jenkins
Getting started with JenkinsGetting started with Jenkins
Getting started with Jenkins
Edureka!
 
Ansible Introduction
Ansible Introduction Ansible Introduction
Ansible Introduction
Robert Reiz
 
Medooze MCU Video Multiconference Server Installation and configuration guide...
Medooze MCU Video Multiconference Server Installation and configuration guide...Medooze MCU Video Multiconference Server Installation and configuration guide...
Medooze MCU Video Multiconference Server Installation and configuration guide...sreeharsha43
 
Os dev tool box
Os dev tool boxOs dev tool box
Os dev tool box
bpowell29a
 
varun JENKINS.pptx
varun JENKINS.pptxvarun JENKINS.pptx
varun JENKINS.pptx
VgPolampalli
 
What is jenkins
What is jenkinsWhat is jenkins
What is jenkins
linuxdady
 

Similar to How to setup jenkins (20)

Drupal Continuous Integration with Jenkins - The Basics
Drupal Continuous Integration with Jenkins - The BasicsDrupal Continuous Integration with Jenkins - The Basics
Drupal Continuous Integration with Jenkins - The Basics
 
Build using jenkins on rtc repository
Build using jenkins on rtc repositoryBuild using jenkins on rtc repository
Build using jenkins on rtc repository
 
Your own minecraft server on a linode vps
Your own minecraft server on a linode vpsYour own minecraft server on a linode vps
Your own minecraft server on a linode vps
 
Jenkins Tutorial.pdf
Jenkins Tutorial.pdfJenkins Tutorial.pdf
Jenkins Tutorial.pdf
 
Front end workflow with yeoman
Front end workflow with yeomanFront end workflow with yeoman
Front end workflow with yeoman
 
Jenkins
JenkinsJenkins
Jenkins
 
Setting up and open fidy dev environment
Setting up and open fidy dev environmentSetting up and open fidy dev environment
Setting up and open fidy dev environment
 
Setting Up a Cloud Server - Part 1 - Transcript.pdf
Setting Up a Cloud Server - Part 1 - Transcript.pdfSetting Up a Cloud Server - Part 1 - Transcript.pdf
Setting Up a Cloud Server - Part 1 - Transcript.pdf
 
Devops-Lab.pptx
Devops-Lab.pptxDevops-Lab.pptx
Devops-Lab.pptx
 
7 Habits of Highly Effective Jenkins Users
7 Habits of Highly Effective Jenkins Users7 Habits of Highly Effective Jenkins Users
7 Habits of Highly Effective Jenkins Users
 
Drupal Continuous Integration with Jenkins - Deploy
Drupal Continuous Integration with Jenkins - DeployDrupal Continuous Integration with Jenkins - Deploy
Drupal Continuous Integration with Jenkins - Deploy
 
An Introduction To Jenkins
An Introduction To JenkinsAn Introduction To Jenkins
An Introduction To Jenkins
 
Jenkins log monitoring with elk stack
Jenkins log monitoring with elk stackJenkins log monitoring with elk stack
Jenkins log monitoring with elk stack
 
Prizm Installation Guide
Prizm Installation GuidePrizm Installation Guide
Prizm Installation Guide
 
Getting started with Jenkins
Getting started with JenkinsGetting started with Jenkins
Getting started with Jenkins
 
Ansible Introduction
Ansible Introduction Ansible Introduction
Ansible Introduction
 
Medooze MCU Video Multiconference Server Installation and configuration guide...
Medooze MCU Video Multiconference Server Installation and configuration guide...Medooze MCU Video Multiconference Server Installation and configuration guide...
Medooze MCU Video Multiconference Server Installation and configuration guide...
 
Os dev tool box
Os dev tool boxOs dev tool box
Os dev tool box
 
varun JENKINS.pptx
varun JENKINS.pptxvarun JENKINS.pptx
varun JENKINS.pptx
 
What is jenkins
What is jenkinsWhat is jenkins
What is jenkins
 

Recently uploaded

Guidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th SemesterGuidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Atul Kumar Singh
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
Atul Kumar Singh
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup   New Member Orientation and Q&A (May 2024).pdfWelcome to TechSoup   New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
TechSoup
 
The Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptxThe Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptx
DhatriParmar
 
Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.
Ashokrao Mane college of Pharmacy Peth-Vadgaon
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
Thiyagu K
 
Honest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptxHonest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptx
timhan337
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
Delapenabediema
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
Pavel ( NSTU)
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
siemaillard
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
Vivekanand Anglo Vedic Academy
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
DeeptiGupta154
 
"Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe..."Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe...
SACHIN R KONDAGURI
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
Celine George
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
heathfieldcps1
 
Francesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptxFrancesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptx
EduSkills OECD
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
Peter Windle
 
Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
joachimlavalley1
 
Acetabularia Information For Class 9 .docx
Acetabularia Information For Class 9  .docxAcetabularia Information For Class 9  .docx
Acetabularia Information For Class 9 .docx
vaibhavrinwa19
 

Recently uploaded (20)

Guidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th SemesterGuidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th Semester
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
 
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup   New Member Orientation and Q&A (May 2024).pdfWelcome to TechSoup   New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
 
The Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptxThe Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptx
 
Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
 
Honest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptxHonest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptx
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
 
"Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe..."Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe...
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
 
Francesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptxFrancesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptx
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
 
Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
 
Acetabularia Information For Class 9 .docx
Acetabularia Information For Class 9  .docxAcetabularia Information For Class 9  .docx
Acetabularia Information For Class 9 .docx
 

How to setup jenkins

  • 1. LinuxDady.Com How to setup jenkins step by step for beginners For more information visit https://linuxdady.com
  • 2. How to setup Jenkins step by step BY DEEPAK KUMAR · PUBLISHED JULY 11, 2019 · UPDATED JULY 11, 2019 In this tutorial we are going to learn how to setup Jenkins server in our infra. But before installation of Jenkins set your mind about required hardware for Jenkins and how many jobs will run on your jenkins server at a time. This is important because if you will not plan your jenkins server hardware configuration then job execution and build process will impact on jenkins server. How to setup jenkins? Pr required hardware preferred for jenkins server in production environment RAM : 16 GB CPU : 2 Dual cores JAVA : Above JDK 1.8 OS : Centos/Rhel This hardware requirement is only a basic idea which is given on official website of jenkins. But mainly it’s depended on how many projects or job you are running at a time. If you are running single job at time, then why 16 GB RAM. So, it depends on need. How to install jenkins? There are mainly two way to install jenkins. So, it’s depended on your requirement which one you want to follow. Here we will discuss both ways. ▪ From yum or rpm package. ▪ From .war file. How to setup jenkins from yum repository As you know jenkins is written in java language so its basic requirement is java should be installed on our base machine where we are installing jenkins. We can also install java manually by download its package from its office website. But that is time consuming so we are installing it by yum .
  • 3. 1 yum install java* -y Java has been successfully installed in our base machine now check java version. 1 java -version Jenkins package is not available in default repository of centos or redhat. So, we have to add jenkins EPEL. Let’s do it. 1 2 3 yum install wget* -y wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat-stable/jenkins.repo rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io.key [Click & Read:– Jenkins server and it’s basic terminology] [Click & Read:– Aws application load balancer configuration step by step]
  • 4. After adding EPEL now jenkins package will be in our jenkins EPEL. So, we can simply install it with the help of yum command. 1 yum install jenkins -y I think you better understood how to install Jenkins server. Now just only check service is up properly or not. 1 2 3 4 systemctl start jenkins.service systemctl enable jenkins.service systemctl restart jenkins.service systemctl status jenkins.service
  • 5. /var/lib/jenkins is jenkins default home directory. So, have a look of it properly. Because jenkins will put all data here and jenkins config.xml file is also available here that we can change accordingly if required. 1 2 cd /var/lib/jenkins/ ls We have competed all step how to set jenkins. Now open your browser and hit below URL from your browser. But change your server IP address according. Also check your firewall, selinux and SG if you are using aws ec2 instance. 1 http://52.91.52.14:8080 when you will hit above URL in your browser it will prompt for default password and will tell location where jenkins generated default password during installation.
  • 6. So, go to location and copy paste password and click on –> Continue 1 cat /var/lib/jenkins/secrets/initialAdminPassword Jenkins first time login and select option . You want to install plugin automatically or manually.
  • 7. When required plugin will installed then create jenkins dashboard login user name and password according to requirement.
  • 8. Username and password for jenkins dashboard has been created. So have a look below. How to setup jenkins second way The second way of jenkins installation is by jenkins.war file. But first you have to download package from jenkins official website and then copy .war file at
  • 9. your required location. The benefit of doing this is there is not internet dependency on base machine and limitation of jenkins installation by yum or rpm is only root privilege or root user can install jenkins setup. But with the help of .war file normal user can setup jenkins without any permission issue. Download package from below link. 1 https://jenkins.io/download/ If you are using Linux based operating system, then simple copy below link into your terminal. 1 2 wget http://mirrors.jenkins.io/war-stable/latest/jenkins.war ls
  • 10. Now let’s run jenkins.war file that we have download. You can run with the help of nohup and & shown as fig. & sign will start jenkins service in the background and nohup file will record all logs. 1 java -jar jenkins.war Service of jenkins has been started via .war file. So take access from URL and set default password. 1 http://52.91.52.14:8080
  • 11. Now default password will generate where you have put your jenkins.war file. Copy that file and try to login and set your desired password. Next step will be same as above. Conclusion In this tutorial we have learnt how to setup jenkins server in our IT infra from both method. We can use any method depend of our requirement. I will recommend you use jenkins.war file for installation because we can install it without internet and root user dependency. Still if you have any query let me know. I will try my best to resolve them. Interview question on Jenkins 1. How to check jenkins version 2. What is hardware requirement for jenkins server? 3. What is jenkins home directory?
  • 12. 4. How we will take backup of jenkins if required? 5. Can we install jenkins without internet if yes how? 6. What is daily routine use cases of jenkins in your infra ?