SlideShare a Scribd company logo
CI/CD WITH JENKINS
Presented By :
Arjit Chauhan
DevOps Engineer
Mooglelabs
,
MOOGLELABS - SERVICES
Decoding Innovation" in AI/ML, Blockchain, DevOps, Data Science & Metaverse
Many organizations are afraid to take the leap toward AI/ML, Blockchain, DevOps, and
Data Science. MoogleLabs makes the journey streamlined and smooth for you. Founded by
seasoned IT experts, the company has the resources to help your business embrace new-age
technology.
At MoogleLabs, we help you compete effectively by leveraging cutting-edge technology and in
this endeavor, we have a talented team, which is certified in the technologies it works on. We
have transformed businesses with our deep understanding of technology that can be utilized for
various industries. The company is known for building a great client-business relationship by
being transparent throughout the whole journey. MoogleLabs is always ready to better itself to
provide the best services to its clients.
Our Applied AI brings roadmap to
scale enterprise-grade solutions,
with the power of analytics,
automation and next-level
computing.
Scale up your business with future-
ready ML-powered applications
integrated with AR/VR, image &
video analytics.
We help you build a secured
decentralized solution for Smart
Contracts, Crypto-token and NFT
Marketplace.
We specialize in DevOps managed
services including CI/CD,
Infrastructure Management, Cloud
Managed Services, DevSecOps, and
AI Ops.
Artificial Intelligence Machine Learning Blockchain DevOps
Uncover hidden stories in data
and turn it into maximized
revenue opportunities using
qualitative and quantitative data
processing techniques.
Data Science
 Introduction to Jenkins
 History
 Architecture
 Features
 Plugins
 Jenkins Pipelines and Jenkinsfile
 Jenkins vs other CI/CD tools
 Advantages
 Installing and Configuring
 Demo – CI/CD of React Application
,
CONTENTS
 Jenkins is an open source continuous integration/continuous delivery and
deployment (CI/CD) automation software DevOps tools written in the Java
programming language.
 It is used to implement CI/CD workflows, called pipelines.
 Jenkins is a self-contained , open source automation that can be used to automate all
sorts of tasks related to building , testing and deploying software.
 It uses the plugins for building and testing the project code continuously .
 Jenkins can be installed through native system packages, Docker or even run
standalone by an machine with a Java Runtime Environment (JRE) installed.
,
INTRODUCTION TO JENKINS
 Jenkins is a fork of a project called Hudson, which was trademarked by Oracle.
 Kohsuke first developed Hudson 2004 while working at Sun Microsystems. When
Oracle acquired Sun Microsystems in 2010, there was a dispute between Oracle and
the Hudson community with the respect to infrastructure used.
 Kohsuke wanted to create a method to perform continuous integration,the idea was
to test the code before committing to avoid the breaking builds.
 On Jan 11, 2011, a call for votes made to change the project name from Hudson to
Jenkins.
 On Jan 29, 2011 , creating the first Jenkins project.
,
HISTORY
,
ARCHITECTURE
 Jenkins Master is the main Jenkins server. It is responsible for scheduling the build job and
dispatching builds to the slaves for actual execution. The Jenkins Master also monitors the slaves
by either taking them online or offline according to the requirement.
,
JENKINS MASTER AND JENKINS SLAVE
 It can also help in recording and
presentation of build results.the master
instance can also help in the direct
execution of build jobs.
 The most important element in Jenkins
architecture is the Jenkins slave. It is a
java executable running on a remote
machine that hear the requests from the
Jenkins master instance .
 Users can run the slaves on a wide range
of other operating system and they
execute the build job sent by the Master.
,
FEATURES OF JENKINS
 A plugin is an enhancement to the Jenkins systems. They help extend Jenkins capabilities
and integrated Jenkins with other software.
 Plugins can be downloaded from the online Jenkins plugin repository and loaded using the
Jenkins Web UI or CLI.
 Currently, the Jenkins community claims over 1500+ plugins available for a wide range of
uses.
PLUGINS
Icons Description
Kubernetes plugin is great for automating build
agents on a Kubernetes cluster
Git plugin allows jobs to connect to remote
repositories
EC2 plugin is used for Jenkins to automatically
provision AWS
JUnit plugin provides graphical visualizations
PLUGINS MANAGER
 The role of Jenkins in DevOps is primarily due to the pipeline-as-code concept followed by
Jenkins.
 The continuous pipeline is an automated process for obtaining software from version
control to users and customers.
 Jenkins Pipeline is defined using a text file called the Jenkinsfile.
 The pipeline implements as code using Groovy Domain-specific language through an editor
or the configuration page on Jenkins instance.
 Jenkinsfile give leverage to the developer to easily access or edit or check the code
anytime.
JENKINS PIPELINE AND JENKINSFILE
 Two types os syntax using which we can define a Jenkinsfile:
-> Declarative Pipeline syntax
-> Scripted Pipeline syntax
 Declarative Pipeline syntax ->
The declarative syntax is a new feature that used code for the pipeline . It provides a
limited pre-defined structure. Thereby, it offers an easy and simple continuous delivery
pipeline.
(We will create Jenkinsfile in SCM)
 Scripted Pipeline syntax ->
The scripted pipeline syntax is the old traditional way to write the Jenkinsfile on Jenkins
web UI. Moreover it follows the groovy syntax and helps to develop a complex pipline
as code.
(It is written in Jenkins dashboard)
JENKINSFILE
 Jenkins : the most-used CI/CD solutions.
 No expenses required
 Limitless integrations
 Active community
,
JENKISN VS OTHER CI/CD TOOLS
 It is open source and it is user-friendly, easy to install and does not required additional
installations or components. It is free of cost.
 Easily Configurable: Jenkins can be easily modified and extended. It deploys code instantly,
generates test reports.
 Platform independent: Jenkins is available for all the platform and different operating
system.
 Rich Plugins ecosystem: The extensive pool of plugins makes Jenkins flexible and allow
building, deploying and automating across various platform.
 Issuse are detected and resolve almost right way which keeps the software in a state where
it can be released at any time safely.
 Most of the integration work in automated. Hence fewer integration issuses. This save both
time and money over the lifespan of a project.
ADVANTAGES
Prerequisites of Jenkins Installation
o Ubuntu server with 18.04, 20.04 or 22.04
o 256 MB of RAM
o 1 GB of drive space for solo use. However, no less than 10 GB is recommended if jenkins
run inside a Docker container
o 4GB+ of RAM
o 50GB+ of drive space
o Oracle JDK 8 or 11
o Jenkins by default runs on port 8080
INSTALLING AND CONFIGURING JENKINS
 STEP -1 Installing Java Development kit
o Sudo apt-get install openjdk-11-jdk
 Step -2 Installing Jenkins
o curl -fsSL https://pkg.jenkins.io/debian-stable/jenkins.io.key | sudo tee 
/usr/share/keyrings/jenkins-keyring.asc > /dev/null
o echo deb [signed-by=/usr/share/keyrings/jenkins-keyring.asc]  https://pkg.jenkins.io/debian-stable
binary/ | sudo tee  /etc/apt/sources.list.d/jenkins.list > /dev/null
o sudo apt-get update
o sudo apt-get install jenkins
o sudo systemctl start jenkins.service
 sudo systemctl status jenkins
 Now copy the IP and paste in browser with port 8080
 sudo cat /var/lib/jenkins/secrets/initialAdminPassword
 Customize Jenkins
 Dashboard Jenkins
DEMO –CI/CD OF React Application

More Related Content

PPTX
CICD with Jenkins
PDF
Using Jenkins as your go-to CI/CD tool
PPTX
GCP DevOps Training institute in Ameerpet - Visualpath.pptx
PPTX
Top 10 Best DevOps tools in 2020
PDF
Jenkins: An open-source automation server powering CI/CD Automation
PPTX
Continous Integration.pptx
PPTX
IM5- Introduction to DevOps tooools.pptx
PDF
Top DevOps tools
CICD with Jenkins
Using Jenkins as your go-to CI/CD tool
GCP DevOps Training institute in Ameerpet - Visualpath.pptx
Top 10 Best DevOps tools in 2020
Jenkins: An open-source automation server powering CI/CD Automation
Continous Integration.pptx
IM5- Introduction to DevOps tooools.pptx
Top DevOps tools

Similar to DevOps-CI_CD_JAVA_JAVA______Jenkins.pptx (20)

PPTX
varun JENKINS.pptx
PDF
35 Jenkins Interview Questions and Answers for 2023.pdf
PDF
Top 5 DevOps Tools You Should Know In 2022.pdf
DOCX
Who can be a DevOps Engineer.docx
DOCX
Sai krishna
PPTX
Jenkins - From Continuous Integration to Continuous Delivery
PPTX
Jenkins pipeline as code
PDF
Automate App Container Delivery with CI/CD and DevOps
PDF
Build and automate your machine learning application with docker and jenkins
PDF
Eclipse Che - A Revolutionary IDE for Distributed & Mainframe Development
PDF
PDF
data science course with placement in hyderabad
PDF
Jenkins in Data Science Institutes in Hyderabad.pdf
PDF
Jenkins CI
PPTX
Azure DevOps in Action
DOCX
PPTX
PDF
Top 9 DevOps Tools: Which DevOps Tool Should I Learn
PDF
The DevOps Paradigm
PDF
The DevOps paradigm - the evolution of IT professionals and opensource toolkit
varun JENKINS.pptx
35 Jenkins Interview Questions and Answers for 2023.pdf
Top 5 DevOps Tools You Should Know In 2022.pdf
Who can be a DevOps Engineer.docx
Sai krishna
Jenkins - From Continuous Integration to Continuous Delivery
Jenkins pipeline as code
Automate App Container Delivery with CI/CD and DevOps
Build and automate your machine learning application with docker and jenkins
Eclipse Che - A Revolutionary IDE for Distributed & Mainframe Development
data science course with placement in hyderabad
Jenkins in Data Science Institutes in Hyderabad.pdf
Jenkins CI
Azure DevOps in Action
Top 9 DevOps Tools: Which DevOps Tool Should I Learn
The DevOps Paradigm
The DevOps paradigm - the evolution of IT professionals and opensource toolkit
Ad

Recently uploaded (20)

PDF
The Final Stretch: How to Release a Game and Not Die in the Process.
PPTX
BOWEL ELIMINATION FACTORS AFFECTING AND TYPES
PPTX
The Healthy Child – Unit II | Child Health Nursing I | B.Sc Nursing 5th Semester
PDF
Anesthesia in Laparoscopic Surgery in India
PPTX
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
PPTX
Open Quiz Monsoon Mind Game Prelims.pptx
PDF
Mark Klimek Lecture Notes_240423 revision books _173037.pdf
PDF
TR - Agricultural Crops Production NC III.pdf
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PDF
STATICS OF THE RIGID BODIES Hibbelers.pdf
PPTX
human mycosis Human fungal infections are called human mycosis..pptx
PDF
Business Ethics Teaching Materials for college
PPTX
Cell Structure & Organelles in detailed.
PPTX
Renaissance Architecture: A Journey from Faith to Humanism
PPTX
GDM (1) (1).pptx small presentation for students
PDF
Abdominal Access Techniques with Prof. Dr. R K Mishra
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PDF
01-Introduction-to-Information-Management.pdf
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PDF
O5-L3 Freight Transport Ops (International) V1.pdf
The Final Stretch: How to Release a Game and Not Die in the Process.
BOWEL ELIMINATION FACTORS AFFECTING AND TYPES
The Healthy Child – Unit II | Child Health Nursing I | B.Sc Nursing 5th Semester
Anesthesia in Laparoscopic Surgery in India
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
Open Quiz Monsoon Mind Game Prelims.pptx
Mark Klimek Lecture Notes_240423 revision books _173037.pdf
TR - Agricultural Crops Production NC III.pdf
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
STATICS OF THE RIGID BODIES Hibbelers.pdf
human mycosis Human fungal infections are called human mycosis..pptx
Business Ethics Teaching Materials for college
Cell Structure & Organelles in detailed.
Renaissance Architecture: A Journey from Faith to Humanism
GDM (1) (1).pptx small presentation for students
Abdominal Access Techniques with Prof. Dr. R K Mishra
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
01-Introduction-to-Information-Management.pdf
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
O5-L3 Freight Transport Ops (International) V1.pdf
Ad

DevOps-CI_CD_JAVA_JAVA______Jenkins.pptx

  • 1. CI/CD WITH JENKINS Presented By : Arjit Chauhan DevOps Engineer Mooglelabs
  • 2. , MOOGLELABS - SERVICES Decoding Innovation" in AI/ML, Blockchain, DevOps, Data Science & Metaverse Many organizations are afraid to take the leap toward AI/ML, Blockchain, DevOps, and Data Science. MoogleLabs makes the journey streamlined and smooth for you. Founded by seasoned IT experts, the company has the resources to help your business embrace new-age technology. At MoogleLabs, we help you compete effectively by leveraging cutting-edge technology and in this endeavor, we have a talented team, which is certified in the technologies it works on. We have transformed businesses with our deep understanding of technology that can be utilized for various industries. The company is known for building a great client-business relationship by being transparent throughout the whole journey. MoogleLabs is always ready to better itself to provide the best services to its clients. Our Applied AI brings roadmap to scale enterprise-grade solutions, with the power of analytics, automation and next-level computing. Scale up your business with future- ready ML-powered applications integrated with AR/VR, image & video analytics. We help you build a secured decentralized solution for Smart Contracts, Crypto-token and NFT Marketplace. We specialize in DevOps managed services including CI/CD, Infrastructure Management, Cloud Managed Services, DevSecOps, and AI Ops. Artificial Intelligence Machine Learning Blockchain DevOps Uncover hidden stories in data and turn it into maximized revenue opportunities using qualitative and quantitative data processing techniques. Data Science
  • 3.  Introduction to Jenkins  History  Architecture  Features  Plugins  Jenkins Pipelines and Jenkinsfile  Jenkins vs other CI/CD tools  Advantages  Installing and Configuring  Demo – CI/CD of React Application , CONTENTS
  • 4.  Jenkins is an open source continuous integration/continuous delivery and deployment (CI/CD) automation software DevOps tools written in the Java programming language.  It is used to implement CI/CD workflows, called pipelines.  Jenkins is a self-contained , open source automation that can be used to automate all sorts of tasks related to building , testing and deploying software.  It uses the plugins for building and testing the project code continuously .  Jenkins can be installed through native system packages, Docker or even run standalone by an machine with a Java Runtime Environment (JRE) installed. , INTRODUCTION TO JENKINS
  • 5.  Jenkins is a fork of a project called Hudson, which was trademarked by Oracle.  Kohsuke first developed Hudson 2004 while working at Sun Microsystems. When Oracle acquired Sun Microsystems in 2010, there was a dispute between Oracle and the Hudson community with the respect to infrastructure used.  Kohsuke wanted to create a method to perform continuous integration,the idea was to test the code before committing to avoid the breaking builds.  On Jan 11, 2011, a call for votes made to change the project name from Hudson to Jenkins.  On Jan 29, 2011 , creating the first Jenkins project. , HISTORY
  • 7.  Jenkins Master is the main Jenkins server. It is responsible for scheduling the build job and dispatching builds to the slaves for actual execution. The Jenkins Master also monitors the slaves by either taking them online or offline according to the requirement. , JENKINS MASTER AND JENKINS SLAVE  It can also help in recording and presentation of build results.the master instance can also help in the direct execution of build jobs.  The most important element in Jenkins architecture is the Jenkins slave. It is a java executable running on a remote machine that hear the requests from the Jenkins master instance .  Users can run the slaves on a wide range of other operating system and they execute the build job sent by the Master.
  • 9.  A plugin is an enhancement to the Jenkins systems. They help extend Jenkins capabilities and integrated Jenkins with other software.  Plugins can be downloaded from the online Jenkins plugin repository and loaded using the Jenkins Web UI or CLI.  Currently, the Jenkins community claims over 1500+ plugins available for a wide range of uses. PLUGINS Icons Description Kubernetes plugin is great for automating build agents on a Kubernetes cluster Git plugin allows jobs to connect to remote repositories EC2 plugin is used for Jenkins to automatically provision AWS JUnit plugin provides graphical visualizations
  • 11.  The role of Jenkins in DevOps is primarily due to the pipeline-as-code concept followed by Jenkins.  The continuous pipeline is an automated process for obtaining software from version control to users and customers.  Jenkins Pipeline is defined using a text file called the Jenkinsfile.  The pipeline implements as code using Groovy Domain-specific language through an editor or the configuration page on Jenkins instance.  Jenkinsfile give leverage to the developer to easily access or edit or check the code anytime. JENKINS PIPELINE AND JENKINSFILE
  • 12.  Two types os syntax using which we can define a Jenkinsfile: -> Declarative Pipeline syntax -> Scripted Pipeline syntax  Declarative Pipeline syntax -> The declarative syntax is a new feature that used code for the pipeline . It provides a limited pre-defined structure. Thereby, it offers an easy and simple continuous delivery pipeline. (We will create Jenkinsfile in SCM)  Scripted Pipeline syntax -> The scripted pipeline syntax is the old traditional way to write the Jenkinsfile on Jenkins web UI. Moreover it follows the groovy syntax and helps to develop a complex pipline as code. (It is written in Jenkins dashboard) JENKINSFILE
  • 13.  Jenkins : the most-used CI/CD solutions.  No expenses required  Limitless integrations  Active community , JENKISN VS OTHER CI/CD TOOLS
  • 14.  It is open source and it is user-friendly, easy to install and does not required additional installations or components. It is free of cost.  Easily Configurable: Jenkins can be easily modified and extended. It deploys code instantly, generates test reports.  Platform independent: Jenkins is available for all the platform and different operating system.  Rich Plugins ecosystem: The extensive pool of plugins makes Jenkins flexible and allow building, deploying and automating across various platform.  Issuse are detected and resolve almost right way which keeps the software in a state where it can be released at any time safely.  Most of the integration work in automated. Hence fewer integration issuses. This save both time and money over the lifespan of a project. ADVANTAGES
  • 15. Prerequisites of Jenkins Installation o Ubuntu server with 18.04, 20.04 or 22.04 o 256 MB of RAM o 1 GB of drive space for solo use. However, no less than 10 GB is recommended if jenkins run inside a Docker container o 4GB+ of RAM o 50GB+ of drive space o Oracle JDK 8 or 11 o Jenkins by default runs on port 8080 INSTALLING AND CONFIGURING JENKINS
  • 16.  STEP -1 Installing Java Development kit o Sudo apt-get install openjdk-11-jdk  Step -2 Installing Jenkins o curl -fsSL https://pkg.jenkins.io/debian-stable/jenkins.io.key | sudo tee /usr/share/keyrings/jenkins-keyring.asc > /dev/null o echo deb [signed-by=/usr/share/keyrings/jenkins-keyring.asc] https://pkg.jenkins.io/debian-stable binary/ | sudo tee /etc/apt/sources.list.d/jenkins.list > /dev/null o sudo apt-get update o sudo apt-get install jenkins o sudo systemctl start jenkins.service
  • 17.  sudo systemctl status jenkins
  • 18.  Now copy the IP and paste in browser with port 8080  sudo cat /var/lib/jenkins/secrets/initialAdminPassword
  • 21. DEMO –CI/CD OF React Application