SlideShare a Scribd company logo
DEVOPS CERTIFICATION TRAINING www.edureka.co/devops
What Will I Learn Today?
Why Continuous
Delivery?
What is Continuous
Delivery?
Before Jenkins Pipeline
What is a Jenkins
pipeline?
Pipeline Concepts
Create your first
Jenkins Pipeline
Declarative Pipeline Demo
Scripted Pipeline Demo
DEVOPS CERTIFICATION TRAINING www.edureka.co/devops
FAILURE
Developers
Manual testing
(UT, IT)
Application directly
deployed to prod
Code repo
ā€¢ Different environments (servers)
ā€¢ Different libraries & packages (dependencies)
ā€¢ End user load (traffic)
ā€¢ App not accessible to intended audience
Why did it fail?
POSSIBLE REASONS
Why Do We Need Continuous Delivery (CD)?
DEVOPS CERTIFICATION TRAINING www.edureka.co/devops
CD Pipeline
BUILD
CI-Jenkins
(UT, IT)
TEST ENVIRONMENT
(Acceptance testing, Load
testing)
COMMIT
(Version control system (Git))
Production readyDevelopers
DEVOPS CERTIFICATION TRAINING www.edureka.co/devops
Advantages of Continuous Delivery
Automates software release
Increases developer
productivity
Locates and addresses bugs
quicker
DEVOPS CERTIFICATION TRAINING www.edureka.co/devops
What is CD?
ā€¢ Continuous Delivery is a practise to continuously (any-time) release
software
ā€¢ Code changes are continuously built, tested & pushed to a non-
production environment by using automation tools
ā€¢ Software delivery cycles are more rapid and effective
DEVOPS CERTIFICATION TRAINING www.edureka.co/devops
uh
CASE STUDY:-
Continuous Delivery @ HP
DEVOPS CERTIFICATION TRAINING www.edureka.co/devops
HP Future Smart Case Study
HPā€™s LaserJet firmware division builds firmware that runs all their scanners and printers
ā€¢ In 2008, they were facing problems, their product delivery cycle was slow
ā€¢ It took them 6-12 months to build new features; making them slower than all their competitors
Problems
DEVOPS CERTIFICATION TRAINING www.edureka.co/devops
HP Future Smart Case Study
Single platform to support the whole workflow
Improved quality releases
Faster releases
Solution
DEVOPS CERTIFICATION TRAINING www.edureka.co/devops
HP Future Smart Case Study
How did they achieve this?
They implemented a CD pipeline
with two key features
ā€¢ Practice CI
ā€¢ Automation at every step
ā€¢ Overall development cost reduced ~ 40%
ā€¢ Programs under development increased ~ 140%
ā€¢ Development cost per program went down ~ 78%
DEVOPS CERTIFICATION TRAINING www.edureka.co/devops
Before Jenkins Pipeline
DEVOPS CERTIFICATION TRAINING www.edureka.co/devops
Before Jenkins Pipeline
Over the years, there have been multiple Jenkins pipeline releases including, Jenkins Build flow, Jenkins Build Pipeline plugin,
Jenkins Workflow, etc.
What are the key features of these plugins?
These pipelines are a collection of Jenkins jobs which trigger each
other in a specified sequence
Represent multiple Jenkins jobs as one pipeline
What do these pipelines do?
DEVOPS CERTIFICATION TRAINING www.edureka.co/devops
Build Plugin Pipeline Example
ā€¢ 3 jobs: Job1 ā†’ building, Job2 ā†’ testing the application and Job3 ā†’ deployment
ā€¢ Chain these jobs together & run using Build Pipeline Plugin (better for small deployment)
DEVOPS CERTIFICATION TRAINING www.edureka.co/devops
Limitations Of The Build Pipeline Plugin
The maintenance cost is huge and increases with the number of processes
Complex pipelines are hard to implement
Tedious to build and manage such a vast number of jobs
DEVOPS CERTIFICATION TRAINING www.edureka.co/devops
Jenkins Pipeline
DEVOPS CERTIFICATION TRAINING www.edureka.co/devops
What Is A Jenkins Pipeline?
ā€¢ Jenkins pipeline is a single platform that runs the entire pipeline as code
ā€¢ All the standard jobs defined by Jenkins are manually written in one script and they can be stored in a VCS
ā€¢ Instead of building several jobs for each phase, you can now code the entire workflow and put it in a Jenkinsfile
DEVOPS CERTIFICATION TRAINING www.edureka.co/devops
Key Features Of Jenkins Pipeline
Pipeline as
code
Restart
from saved
checkpoint
Run jobs in
parallel
Integrate
with other
plugins
Allows
conditional
loops (for,
when)
Code can
be checked
into a VCS
Incorporates
user input
DEVOPS CERTIFICATION TRAINING www.edureka.co/devops
What is a Jenkinsfile?
DEVOPS CERTIFICATION TRAINING www.edureka.co/devops
What Is A Jenkinsfile?
A text file that stores the pipeline as code
It can be checked into a SCM on your local
system
Enables the developers to access, edit and
check the code at all times
It is written using the Groovy DSL
Written based on two syntaxes
DEVOPS CERTIFICATION TRAINING www.edureka.co/devops
Two Ways Of Writing Jenkinsfile
DECLARATIVE PIPELINE
ā€¢ Recent feature
ā€¢ Simpler groovy syntax
ā€¢ Code is written locally in a file and is
checked into a SCM
ā€¢ The code is defined within a ā€˜pipelineā€™
block
SCRIPTED PIPELINE
ā€¢ Traditional way of writing the code
ā€¢ Stricter groovy syntax
ā€¢ Code is written on the Jenkins UI
instance
ā€¢ The code is defined within a ā€˜nodeā€™
block
DEVOPS CERTIFICATION TRAINING www.edureka.co/devops
Pipeline Concepts
DEVOPS CERTIFICATION TRAINING www.edureka.co/devops
Pipeline Concepts
Pipeline: A user defined block which contains all the stages. It is a key
part of declarative pipeline syntax.
Node: A node is a machine that executes an entire workflow. It is a key
part of the scripted pipeline syntax.
Note: Stages are explained in the following slides
DEVOPS CERTIFICATION TRAINING www.edureka.co/devops
Pipeline Concepts
Agent: instructs Jenkins to allocate an executor for the builds. It is defined for an entire pipeline or a specific stage.
It has the following parameters:
ā€¢ Any: Runs pipeline/ stage on any available agent
ā€¢ None: applied at the root of the pipeline, it indicates that there is no global agent for the entire pipeline & each stage must
specify its own agent
ā€¢ Label: Executes the pipeline/stage on the labelled agent.
ā€¢ Docker: Uses docker container as an execution environment for the pipeline or a specific stage.
DEVOPS CERTIFICATION TRAINING www.edureka.co/devops
Pipeline Concepts
Stages: It contains all the work, each stage
performs a specific task.
Steps: steps are carried out in sequence to execute a stage
DEVOPS CERTIFICATION TRAINING www.edureka.co/devops
Create Your First
Jenkins Pipeline
DEVOPS CERTIFICATION TRAINING www.edureka.co/devops
Create Your First Jenkins Pipeline
Step 1: Log into Jenkins and select New Item from the Dashboard
DEVOPS CERTIFICATION TRAINING www.edureka.co/devops
Create Your First Jenkins Pipeline
Step 2: Next, enter a name for your pipeline and select ā€˜Pipeline projectā€™. Click ā€˜okā€™ to proceed
DEVOPS CERTIFICATION TRAINING www.edureka.co/devops
Create Your First Jenkins Pipeline
Step 3: Scroll down to the pipeline and choose if you want a Declarative or Scripted pipeline.
DEVOPS CERTIFICATION TRAINING www.edureka.co/devops
Create Your First Jenkins Pipeline
Step 4a: If you want a Scripted pipeline, then choose ā€˜pipeline scriptā€™ and start typing your code
DEVOPS CERTIFICATION TRAINING www.edureka.co/devops
Create Your First Jenkins Pipeline
Step 4b: If you want a Declarative Pipeline, select ā€˜Pipeline script from SCMā€™ and choose your SCM. In my case Iā€™m going to use Git
throughout this demo. Enter your repository URL
DEVOPS CERTIFICATION TRAINING www.edureka.co/devops
Create Your First Jenkins Pipeline
Step 5: Within the Script path is the name of the Jenkinsfile that is going to be accessed from your SCM (Git) to run. Finally click
on ā€˜applyā€™ and ā€˜saveā€™. You have successfully created your first pipeline
DEVOPS CERTIFICATION TRAINING www.edureka.co/devops
Declarative
Pipeline demo
DEVOPS CERTIFICATION TRAINING www.edureka.co/devops
Declarative Pipeline Demo (Code)
Note: The code is explained in the following slides
DEVOPS CERTIFICATION TRAINING www.edureka.co/devops
Declarative Pipeline Demo (Code)
Note: The code is explained in the following slides
DEVOPS CERTIFICATION TRAINING www.edureka.co/devops
Declarative Pipeline Demo
runs a simple echo command
executes an input directive
runs ā€˜whenā€™ directive with ā€˜notā€™ tag
runs a parallel directive
Stage
1
Stage
2
Stage
3
Stage
4
DEVOPS CERTIFICATION TRAINING www.edureka.co/devops
Declarative Pipeline Demo
The echo command specified in ā€˜stepsā€™ block,
displays the message
Stage One
runs a simple echo command
Stage Two
executes an input directive
Stage Three
runs ā€˜whenā€™ directive with ā€˜notā€™ tag
Stage Four
runs a parallel directive
DEVOPS CERTIFICATION TRAINING www.edureka.co/devops
Declarative Pipeline Demo
ā€¢ Input directive allows to prompt a user input in
a stage
ā€¢ On receiving the user input the pipeline either
proceeds with further execution or aborts
Stage One
runs a simple echo command
Stage Two
executes an input directive
Stage Three
runs ā€˜whenā€™ directive with ā€˜notā€™ tag
Stage Four
runs a parallel directive
DEVOPS CERTIFICATION TRAINING www.edureka.co/devops
Declarative Pipeline Demo
ā€¢ ā€˜whenā€™ executes a step depending on the conditions
defined within loop
ā€¢ If conditions are met, corresponding stage is executed
ā€¢ In this demo weā€™re using a ā€˜notā€™ tag
ā€¢ This tag executes a stage when the nested condition
is false
Stage One
runs a simple echo command
Stage Two
executes an input directive
Stage Three
runs ā€˜whenā€™ directive with ā€˜notā€™ tag
Stage Four
runs a parallel directive
DEVOPS CERTIFICATION TRAINING www.edureka.co/devops
Declarative Pipeline Demo
ā€¢ Runs ā€˜Unit testā€™ and ā€˜Integration testā€™ stages in
parallel
ā€¢ ā€˜Unit Testā€™ runs an echo command
ā€¢ In ā€˜Integration testā€™ stage, a docker agent pulls an
ā€˜ubuntuā€™ image & runs the reuseNode which is a
Boolean (returns false by default)
ā€¢ If true, the docker container will run on the agent
specified at the top-level of the pipeline
Stage One
runs a simple echo command
Stage Two
executes an input directive
Stage Three
runs ā€˜whenā€™ directive with ā€˜notā€™ tag
Stage Four
runs a parallel directive
DEVOPS CERTIFICATION TRAINING www.edureka.co/devops
Declarative Pipeline Demo
Now that Iā€™ve explained the code, lets run the pipeline. The following screenshot is the result of the pipeline.
In the below image, the pipeline waits for the user input and on clicking ā€˜proceedā€™ the execution resumes.
DEVOPS CERTIFICATION TRAINING www.edureka.co/devops
Declarative Pipeline Demo
Final output of the Declarative pipeline demo
DEVOPS CERTIFICATION TRAINING www.edureka.co/devops
Scripted Pipeline
Demo
DEVOPS CERTIFICATION TRAINING www.edureka.co/devops
Scripted Pipeline Demo (Code)
To give you a basic understanding of the scripted pipeline, lets execute a simple code.
I will run the following script
DEVOPS CERTIFICATION TRAINING www.edureka.co/devops
Scripted Pipeline Demo (Code)
ā€¢ The node block runs the conditional ā€˜forā€™ loop for creating 2 stages: Stage #0 & Stage #1
ā€¢ These stages print ā€˜hello world!ā€™ message
ā€¢ ā€˜ifā€™ loop is used to execute 2 commands when ā€˜iā€™ = 0:
ā€˜gitā€™ command to clone the git directory & ā€˜echoā€˜ to display a message
ā€¢ ā€˜elseā€™ is executed when ā€˜iā€™ != 0:
ā€˜buildā€™ executes the job (ā€˜Declarative pipelineā€™) and then runs the echo command
DEVOPS CERTIFICATION TRAINING www.edureka.co/devops
Scripted Pipeline Demo
Now that Iā€™ve explained the code, lets run the pipeline.
The following screenshot is the result of Stage #0.
DEVOPS CERTIFICATION TRAINING www.edureka.co/devops
Scripted Pipeline Demo
Shows the logs of Stage #1 and starts building the ā€˜Declarative pipelineā€™
DEVOPS CERTIFICATION TRAINING www.edureka.co/devops
Scripted Pipeline Demo
Execution of the ā€˜Declarative pipelineā€™
DEVOPS CERTIFICATION TRAINING www.edureka.co/devops
Scripted Pipeline Demo
Results show the completion of ā€˜Declarative pipelineā€™ and Stage #1
DEVOPS CERTIFICATION TRAINING www.edureka.co/devops
Summary
Pipeline ConceptsWhat is a Jenkinsfile?
Why Continuous Delivery? HP Future Smart Case Study
What is a Jenkins Pipeline?
What Continuous Delivery?
DEVOPS CERTIFICATION TRAINING www.edureka.co/devops
WebDriver vs. IDE vs. RC
āž¢ Data Warehouse is like a relational database designed for analytical needs.
āž¢ It functions on the basis of OLAP (Online Analytical Processing).
āž¢ It is a central location where consolidated data from multiple locations (databases) are stored.

More Related Content

What's hot

What is Jenkins | Jenkins Tutorial for Beginners | Edureka
What is Jenkins | Jenkins Tutorial for Beginners | EdurekaWhat is Jenkins | Jenkins Tutorial for Beginners | Edureka
What is Jenkins | Jenkins Tutorial for Beginners | EdurekaEdureka!
Ā 
Jenkins Pipelines
Jenkins PipelinesJenkins Pipelines
Jenkins PipelinesSteffen Gebert
Ā 
CI/CD with Jenkins and Docker - DevOps Meetup Day Thailand
CI/CD with Jenkins and Docker - DevOps Meetup Day ThailandCI/CD with Jenkins and Docker - DevOps Meetup Day Thailand
CI/CD with Jenkins and Docker - DevOps Meetup Day ThailandTroublemaker Khunpech
Ā 
Jenkins Overview
Jenkins OverviewJenkins Overview
Jenkins OverviewAhmed M. Gomaa
Ā 
CI/CD with Github Actions
CI/CD with Github ActionsCI/CD with Github Actions
CI/CD with Github ActionsMd. Minhazul Haque
Ā 
Getting started with Jenkins
Getting started with JenkinsGetting started with Jenkins
Getting started with JenkinsEdureka!
Ā 
An Introduction To Jenkins
An Introduction To JenkinsAn Introduction To Jenkins
An Introduction To JenkinsKnoldus Inc.
Ā 
Yale Jenkins Show and Tell
Yale Jenkins Show and TellYale Jenkins Show and Tell
Yale Jenkins Show and TellE. Camden Fisher
Ā 
Jenkins tutorial for beginners
Jenkins tutorial for beginnersJenkins tutorial for beginners
Jenkins tutorial for beginnersBugRaptors
Ā 
DevOps Foundation
DevOps FoundationDevOps Foundation
DevOps FoundationHomepree Rloy
Ā 
Jenkins CI presentation
Jenkins CI presentationJenkins CI presentation
Jenkins CI presentationJonathan Holloway
Ā 
Introduction to CI/CD
Introduction to CI/CDIntroduction to CI/CD
Introduction to CI/CDHoang Le
Ā 
CI and CD with Jenkins
CI and CD with JenkinsCI and CD with Jenkins
CI and CD with JenkinsMartin MƔlek
Ā 
Jenkins for java world
Jenkins for java worldJenkins for java world
Jenkins for java worldAshok Kumar
Ā 
Introduction to GitHub Actions
Introduction to GitHub ActionsIntroduction to GitHub Actions
Introduction to GitHub ActionsKnoldus Inc.
Ā 

What's hot (20)

What is Jenkins | Jenkins Tutorial for Beginners | Edureka
What is Jenkins | Jenkins Tutorial for Beginners | EdurekaWhat is Jenkins | Jenkins Tutorial for Beginners | Edureka
What is Jenkins | Jenkins Tutorial for Beginners | Edureka
Ā 
Jenkins-CI
Jenkins-CIJenkins-CI
Jenkins-CI
Ā 
Jenkins Pipelines
Jenkins PipelinesJenkins Pipelines
Jenkins Pipelines
Ā 
CI/CD with Jenkins and Docker - DevOps Meetup Day Thailand
CI/CD with Jenkins and Docker - DevOps Meetup Day ThailandCI/CD with Jenkins and Docker - DevOps Meetup Day Thailand
CI/CD with Jenkins and Docker - DevOps Meetup Day Thailand
Ā 
Jenkins Overview
Jenkins OverviewJenkins Overview
Jenkins Overview
Ā 
CI/CD with Github Actions
CI/CD with Github ActionsCI/CD with Github Actions
CI/CD with Github Actions
Ā 
Jenkins tutorial
Jenkins tutorialJenkins tutorial
Jenkins tutorial
Ā 
Getting started with Jenkins
Getting started with JenkinsGetting started with Jenkins
Getting started with Jenkins
Ā 
An Introduction To Jenkins
An Introduction To JenkinsAn Introduction To Jenkins
An Introduction To Jenkins
Ā 
Jenkins presentation
Jenkins presentationJenkins presentation
Jenkins presentation
Ā 
Yale Jenkins Show and Tell
Yale Jenkins Show and TellYale Jenkins Show and Tell
Yale Jenkins Show and Tell
Ā 
Jenkins tutorial for beginners
Jenkins tutorial for beginnersJenkins tutorial for beginners
Jenkins tutorial for beginners
Ā 
DevOps Foundation
DevOps FoundationDevOps Foundation
DevOps Foundation
Ā 
Jenkins CI presentation
Jenkins CI presentationJenkins CI presentation
Jenkins CI presentation
Ā 
CICD with Jenkins
CICD with JenkinsCICD with Jenkins
CICD with Jenkins
Ā 
CICD with Jenkins
CICD with JenkinsCICD with Jenkins
CICD with Jenkins
Ā 
Introduction to CI/CD
Introduction to CI/CDIntroduction to CI/CD
Introduction to CI/CD
Ā 
CI and CD with Jenkins
CI and CD with JenkinsCI and CD with Jenkins
CI and CD with Jenkins
Ā 
Jenkins for java world
Jenkins for java worldJenkins for java world
Jenkins for java world
Ā 
Introduction to GitHub Actions
Introduction to GitHub ActionsIntroduction to GitHub Actions
Introduction to GitHub Actions
Ā 

Similar to Jenkins Pipeline Tutorial | Continuous Delivery Pipeline Using Jenkins | DevOps Training | Edureka

Introduction to DevOps Tools | DevOps Training | DevOps Tutorial for Beginner...
Introduction to DevOps Tools | DevOps Training | DevOps Tutorial for Beginner...Introduction to DevOps Tools | DevOps Training | DevOps Tutorial for Beginner...
Introduction to DevOps Tools | DevOps Training | DevOps Tutorial for Beginner...Edureka!
Ā 
Continuous Delivery Agiles 2014 Medellin
Continuous Delivery Agiles 2014 MedellinContinuous Delivery Agiles 2014 Medellin
Continuous Delivery Agiles 2014 MedellinDiego Garber
Ā 
Continous Integration.pptx
Continous Integration.pptxContinous Integration.pptx
Continous Integration.pptxAnuj Sharma
Ā 
Devops CI-CD pipeline with Containers
Devops CI-CD pipeline with ContainersDevops CI-CD pipeline with Containers
Devops CI-CD pipeline with ContainersNuSpace
Ā 
PuppetConf 2016: Continuous Delivery and DevOps with Jenkins and Puppet Enter...
PuppetConf 2016: Continuous Delivery and DevOps with Jenkins and Puppet Enter...PuppetConf 2016: Continuous Delivery and DevOps with Jenkins and Puppet Enter...
PuppetConf 2016: Continuous Delivery and DevOps with Jenkins and Puppet Enter...Puppet
Ā 
DevOps-Ebook
DevOps-EbookDevOps-Ebook
DevOps-EbookPrathapM32
Ā 
CICD_BestPractices.pdf
CICD_BestPractices.pdfCICD_BestPractices.pdf
CICD_BestPractices.pdfmotupalli2
Ā 
Edureka-DevOps-Ebook.pdf
Edureka-DevOps-Ebook.pdfEdureka-DevOps-Ebook.pdf
Edureka-DevOps-Ebook.pdfrelekarsushant
Ā 
Jenkins Days - Workshop - Let's Build a Pipeline - Los Angeles
Jenkins Days - Workshop - Let's Build a Pipeline - Los AngelesJenkins Days - Workshop - Let's Build a Pipeline - Los Angeles
Jenkins Days - Workshop - Let's Build a Pipeline - Los AngelesAndy Pemberton
Ā 
Efficient Parallel Testing with Docker by Laura Frank
Efficient Parallel Testing with Docker by Laura FrankEfficient Parallel Testing with Docker by Laura Frank
Efficient Parallel Testing with Docker by Laura FrankDocker, Inc.
Ā 
Pipeline+over view
Pipeline+over viewPipeline+over view
Pipeline+over viewSrinivas Kannan
Ā 
Efficient Parallel Testing with Docker
Efficient Parallel Testing with DockerEfficient Parallel Testing with Docker
Efficient Parallel Testing with DockerLaura Frank Tacho
Ā 
Jenkins days workshop pipelines - Eric Long
Jenkins days workshop  pipelines - Eric LongJenkins days workshop  pipelines - Eric Long
Jenkins days workshop pipelines - Eric Longericlongtx
Ā 
TYPO3 Camp Stuttgart 2015 - Continuous Delivery with Open Source Tools
TYPO3 Camp Stuttgart 2015 - Continuous Delivery with Open Source ToolsTYPO3 Camp Stuttgart 2015 - Continuous Delivery with Open Source Tools
TYPO3 Camp Stuttgart 2015 - Continuous Delivery with Open Source ToolsMichael Lihs
Ā 
Jenkins advance topic
Jenkins advance topicJenkins advance topic
Jenkins advance topicGourav Varma
Ā 
Dev/Test scenarios in DevOps world
Dev/Test scenarios in DevOps worldDev/Test scenarios in DevOps world
Dev/Test scenarios in DevOps worldDavide BenvegnĆ¹
Ā 
Implementing CI CD UiPath Using Jenkins Plugin
Implementing CI CD UiPath Using Jenkins PluginImplementing CI CD UiPath Using Jenkins Plugin
Implementing CI CD UiPath Using Jenkins PluginSatish Prasad
Ā 
Jenkins Declarative Pipelines 101
Jenkins Declarative Pipelines 101Jenkins Declarative Pipelines 101
Jenkins Declarative Pipelines 101Malcolm Groves
Ā 
Continuous Delivery with Jenkins declarative pipeline XPDays-2018-12-08
Continuous Delivery with Jenkins declarative pipeline XPDays-2018-12-08Continuous Delivery with Jenkins declarative pipeline XPDays-2018-12-08
Continuous Delivery with Jenkins declarative pipeline XPDays-2018-12-08Š‘Š¾Ń€Šøс Š—Š¾Ń€Š°
Ā 

Similar to Jenkins Pipeline Tutorial | Continuous Delivery Pipeline Using Jenkins | DevOps Training | Edureka (20)

Introduction to DevOps Tools | DevOps Training | DevOps Tutorial for Beginner...
Introduction to DevOps Tools | DevOps Training | DevOps Tutorial for Beginner...Introduction to DevOps Tools | DevOps Training | DevOps Tutorial for Beginner...
Introduction to DevOps Tools | DevOps Training | DevOps Tutorial for Beginner...
Ā 
Jenkins pipeline as code
Jenkins pipeline as codeJenkins pipeline as code
Jenkins pipeline as code
Ā 
Continuous Delivery Agiles 2014 Medellin
Continuous Delivery Agiles 2014 MedellinContinuous Delivery Agiles 2014 Medellin
Continuous Delivery Agiles 2014 Medellin
Ā 
Continous Integration.pptx
Continous Integration.pptxContinous Integration.pptx
Continous Integration.pptx
Ā 
Devops CI-CD pipeline with Containers
Devops CI-CD pipeline with ContainersDevops CI-CD pipeline with Containers
Devops CI-CD pipeline with Containers
Ā 
PuppetConf 2016: Continuous Delivery and DevOps with Jenkins and Puppet Enter...
PuppetConf 2016: Continuous Delivery and DevOps with Jenkins and Puppet Enter...PuppetConf 2016: Continuous Delivery and DevOps with Jenkins and Puppet Enter...
PuppetConf 2016: Continuous Delivery and DevOps with Jenkins and Puppet Enter...
Ā 
DevOps-Ebook
DevOps-EbookDevOps-Ebook
DevOps-Ebook
Ā 
CICD_BestPractices.pdf
CICD_BestPractices.pdfCICD_BestPractices.pdf
CICD_BestPractices.pdf
Ā 
Edureka-DevOps-Ebook.pdf
Edureka-DevOps-Ebook.pdfEdureka-DevOps-Ebook.pdf
Edureka-DevOps-Ebook.pdf
Ā 
Jenkins Days - Workshop - Let's Build a Pipeline - Los Angeles
Jenkins Days - Workshop - Let's Build a Pipeline - Los AngelesJenkins Days - Workshop - Let's Build a Pipeline - Los Angeles
Jenkins Days - Workshop - Let's Build a Pipeline - Los Angeles
Ā 
Efficient Parallel Testing with Docker by Laura Frank
Efficient Parallel Testing with Docker by Laura FrankEfficient Parallel Testing with Docker by Laura Frank
Efficient Parallel Testing with Docker by Laura Frank
Ā 
Pipeline+over view
Pipeline+over viewPipeline+over view
Pipeline+over view
Ā 
Efficient Parallel Testing with Docker
Efficient Parallel Testing with DockerEfficient Parallel Testing with Docker
Efficient Parallel Testing with Docker
Ā 
Jenkins days workshop pipelines - Eric Long
Jenkins days workshop  pipelines - Eric LongJenkins days workshop  pipelines - Eric Long
Jenkins days workshop pipelines - Eric Long
Ā 
TYPO3 Camp Stuttgart 2015 - Continuous Delivery with Open Source Tools
TYPO3 Camp Stuttgart 2015 - Continuous Delivery with Open Source ToolsTYPO3 Camp Stuttgart 2015 - Continuous Delivery with Open Source Tools
TYPO3 Camp Stuttgart 2015 - Continuous Delivery with Open Source Tools
Ā 
Jenkins advance topic
Jenkins advance topicJenkins advance topic
Jenkins advance topic
Ā 
Dev/Test scenarios in DevOps world
Dev/Test scenarios in DevOps worldDev/Test scenarios in DevOps world
Dev/Test scenarios in DevOps world
Ā 
Implementing CI CD UiPath Using Jenkins Plugin
Implementing CI CD UiPath Using Jenkins PluginImplementing CI CD UiPath Using Jenkins Plugin
Implementing CI CD UiPath Using Jenkins Plugin
Ā 
Jenkins Declarative Pipelines 101
Jenkins Declarative Pipelines 101Jenkins Declarative Pipelines 101
Jenkins Declarative Pipelines 101
Ā 
Continuous Delivery with Jenkins declarative pipeline XPDays-2018-12-08
Continuous Delivery with Jenkins declarative pipeline XPDays-2018-12-08Continuous Delivery with Jenkins declarative pipeline XPDays-2018-12-08
Continuous Delivery with Jenkins declarative pipeline XPDays-2018-12-08
Ā 

More from Edureka!

What to learn during the 21 days Lockdown | Edureka
What to learn during the 21 days Lockdown | EdurekaWhat to learn during the 21 days Lockdown | Edureka
What to learn during the 21 days Lockdown | EdurekaEdureka!
Ā 
Top 10 Dying Programming Languages in 2020 | Edureka
Top 10 Dying Programming Languages in 2020 | EdurekaTop 10 Dying Programming Languages in 2020 | Edureka
Top 10 Dying Programming Languages in 2020 | EdurekaEdureka!
Ā 
Top 5 Trending Business Intelligence Tools | Edureka
Top 5 Trending Business Intelligence Tools | EdurekaTop 5 Trending Business Intelligence Tools | Edureka
Top 5 Trending Business Intelligence Tools | EdurekaEdureka!
Ā 
Tableau Tutorial for Data Science | Edureka
Tableau Tutorial for Data Science | EdurekaTableau Tutorial for Data Science | Edureka
Tableau Tutorial for Data Science | EdurekaEdureka!
Ā 
Python Programming Tutorial | Edureka
Python Programming Tutorial | EdurekaPython Programming Tutorial | Edureka
Python Programming Tutorial | EdurekaEdureka!
Ā 
Top 5 PMP Certifications | Edureka
Top 5 PMP Certifications | EdurekaTop 5 PMP Certifications | Edureka
Top 5 PMP Certifications | EdurekaEdureka!
Ā 
Top Maven Interview Questions in 2020 | Edureka
Top Maven Interview Questions in 2020 | EdurekaTop Maven Interview Questions in 2020 | Edureka
Top Maven Interview Questions in 2020 | EdurekaEdureka!
Ā 
Linux Mint Tutorial | Edureka
Linux Mint Tutorial | EdurekaLinux Mint Tutorial | Edureka
Linux Mint Tutorial | EdurekaEdureka!
Ā 
How to Deploy Java Web App in AWS| Edureka
How to Deploy Java Web App in AWS| EdurekaHow to Deploy Java Web App in AWS| Edureka
How to Deploy Java Web App in AWS| EdurekaEdureka!
Ā 
Importance of Digital Marketing | Edureka
Importance of Digital Marketing | EdurekaImportance of Digital Marketing | Edureka
Importance of Digital Marketing | EdurekaEdureka!
Ā 
RPA in 2020 | Edureka
RPA in 2020 | EdurekaRPA in 2020 | Edureka
RPA in 2020 | EdurekaEdureka!
Ā 
Email Notifications in Jenkins | Edureka
Email Notifications in Jenkins | EdurekaEmail Notifications in Jenkins | Edureka
Email Notifications in Jenkins | EdurekaEdureka!
Ā 
EA Algorithm in Machine Learning | Edureka
EA Algorithm in Machine Learning | EdurekaEA Algorithm in Machine Learning | Edureka
EA Algorithm in Machine Learning | EdurekaEdureka!
Ā 
Cognitive AI Tutorial | Edureka
Cognitive AI Tutorial | EdurekaCognitive AI Tutorial | Edureka
Cognitive AI Tutorial | EdurekaEdureka!
Ā 
AWS Cloud Practitioner Tutorial | Edureka
AWS Cloud Practitioner Tutorial | EdurekaAWS Cloud Practitioner Tutorial | Edureka
AWS Cloud Practitioner Tutorial | EdurekaEdureka!
Ā 
Blue Prism Top Interview Questions | Edureka
Blue Prism Top Interview Questions | EdurekaBlue Prism Top Interview Questions | Edureka
Blue Prism Top Interview Questions | EdurekaEdureka!
Ā 
Big Data on AWS Tutorial | Edureka
Big Data on AWS Tutorial | Edureka Big Data on AWS Tutorial | Edureka
Big Data on AWS Tutorial | Edureka Edureka!
Ā 
A star algorithm | A* Algorithm in Artificial Intelligence | Edureka
A star algorithm | A* Algorithm in Artificial Intelligence | EdurekaA star algorithm | A* Algorithm in Artificial Intelligence | Edureka
A star algorithm | A* Algorithm in Artificial Intelligence | EdurekaEdureka!
Ā 
Kubernetes Installation on Ubuntu | Edureka
Kubernetes Installation on Ubuntu | EdurekaKubernetes Installation on Ubuntu | Edureka
Kubernetes Installation on Ubuntu | EdurekaEdureka!
Ā 
Introduction to DevOps | Edureka
Introduction to DevOps | EdurekaIntroduction to DevOps | Edureka
Introduction to DevOps | EdurekaEdureka!
Ā 

More from Edureka! (20)

What to learn during the 21 days Lockdown | Edureka
What to learn during the 21 days Lockdown | EdurekaWhat to learn during the 21 days Lockdown | Edureka
What to learn during the 21 days Lockdown | Edureka
Ā 
Top 10 Dying Programming Languages in 2020 | Edureka
Top 10 Dying Programming Languages in 2020 | EdurekaTop 10 Dying Programming Languages in 2020 | Edureka
Top 10 Dying Programming Languages in 2020 | Edureka
Ā 
Top 5 Trending Business Intelligence Tools | Edureka
Top 5 Trending Business Intelligence Tools | EdurekaTop 5 Trending Business Intelligence Tools | Edureka
Top 5 Trending Business Intelligence Tools | Edureka
Ā 
Tableau Tutorial for Data Science | Edureka
Tableau Tutorial for Data Science | EdurekaTableau Tutorial for Data Science | Edureka
Tableau Tutorial for Data Science | Edureka
Ā 
Python Programming Tutorial | Edureka
Python Programming Tutorial | EdurekaPython Programming Tutorial | Edureka
Python Programming Tutorial | Edureka
Ā 
Top 5 PMP Certifications | Edureka
Top 5 PMP Certifications | EdurekaTop 5 PMP Certifications | Edureka
Top 5 PMP Certifications | Edureka
Ā 
Top Maven Interview Questions in 2020 | Edureka
Top Maven Interview Questions in 2020 | EdurekaTop Maven Interview Questions in 2020 | Edureka
Top Maven Interview Questions in 2020 | Edureka
Ā 
Linux Mint Tutorial | Edureka
Linux Mint Tutorial | EdurekaLinux Mint Tutorial | Edureka
Linux Mint Tutorial | Edureka
Ā 
How to Deploy Java Web App in AWS| Edureka
How to Deploy Java Web App in AWS| EdurekaHow to Deploy Java Web App in AWS| Edureka
How to Deploy Java Web App in AWS| Edureka
Ā 
Importance of Digital Marketing | Edureka
Importance of Digital Marketing | EdurekaImportance of Digital Marketing | Edureka
Importance of Digital Marketing | Edureka
Ā 
RPA in 2020 | Edureka
RPA in 2020 | EdurekaRPA in 2020 | Edureka
RPA in 2020 | Edureka
Ā 
Email Notifications in Jenkins | Edureka
Email Notifications in Jenkins | EdurekaEmail Notifications in Jenkins | Edureka
Email Notifications in Jenkins | Edureka
Ā 
EA Algorithm in Machine Learning | Edureka
EA Algorithm in Machine Learning | EdurekaEA Algorithm in Machine Learning | Edureka
EA Algorithm in Machine Learning | Edureka
Ā 
Cognitive AI Tutorial | Edureka
Cognitive AI Tutorial | EdurekaCognitive AI Tutorial | Edureka
Cognitive AI Tutorial | Edureka
Ā 
AWS Cloud Practitioner Tutorial | Edureka
AWS Cloud Practitioner Tutorial | EdurekaAWS Cloud Practitioner Tutorial | Edureka
AWS Cloud Practitioner Tutorial | Edureka
Ā 
Blue Prism Top Interview Questions | Edureka
Blue Prism Top Interview Questions | EdurekaBlue Prism Top Interview Questions | Edureka
Blue Prism Top Interview Questions | Edureka
Ā 
Big Data on AWS Tutorial | Edureka
Big Data on AWS Tutorial | Edureka Big Data on AWS Tutorial | Edureka
Big Data on AWS Tutorial | Edureka
Ā 
A star algorithm | A* Algorithm in Artificial Intelligence | Edureka
A star algorithm | A* Algorithm in Artificial Intelligence | EdurekaA star algorithm | A* Algorithm in Artificial Intelligence | Edureka
A star algorithm | A* Algorithm in Artificial Intelligence | Edureka
Ā 
Kubernetes Installation on Ubuntu | Edureka
Kubernetes Installation on Ubuntu | EdurekaKubernetes Installation on Ubuntu | Edureka
Kubernetes Installation on Ubuntu | Edureka
Ā 
Introduction to DevOps | Edureka
Introduction to DevOps | EdurekaIntroduction to DevOps | Edureka
Introduction to DevOps | Edureka
Ā 

Recently uploaded

Dev Dives: Train smarter, not harder ā€“ active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder ā€“ active learning and UiPath LLMs for do...Dev Dives: Train smarter, not harder ā€“ active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder ā€“ active learning and UiPath LLMs for do...UiPathCommunity
Ā 
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...Thierry Lestable
Ā 
Key Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdfKey Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdfCheryl Hung
Ā 
Demystifying gRPC in .Net by John Staveley
Demystifying gRPC in .Net by John StaveleyDemystifying gRPC in .Net by John Staveley
Demystifying gRPC in .Net by John StaveleyJohn Staveley
Ā 
How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...Product School
Ā 
Quantum Computing: Current Landscape and the Future Role of APIs
Quantum Computing: Current Landscape and the Future Role of APIsQuantum Computing: Current Landscape and the Future Role of APIs
Quantum Computing: Current Landscape and the Future Role of APIsVlad Stirbu
Ā 
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...Product School
Ā 
When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...Elena Simperl
Ā 
Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...Product School
Ā 
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdfSmart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf91mobiles
Ā 
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...Product School
Ā 
Assuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyesAssuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyesThousandEyes
Ā 
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo DiehlFuture Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo DiehlPeter Udo Diehl
Ā 
Essentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with ParametersEssentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with ParametersSafe Software
Ā 
UiPath Test Automation using UiPath Test Suite series, part 2
UiPath Test Automation using UiPath Test Suite series, part 2UiPath Test Automation using UiPath Test Suite series, part 2
UiPath Test Automation using UiPath Test Suite series, part 2DianaGray10
Ā 
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptxIOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptxAbida Shariff
Ā 
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...Product School
Ā 
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...Sri Ambati
Ā 
ODC, Data Fabric and Architecture User Group
ODC, Data Fabric and Architecture User GroupODC, Data Fabric and Architecture User Group
ODC, Data Fabric and Architecture User GroupCatarinaPereira64715
Ā 
The Future of Platform Engineering
The Future of Platform EngineeringThe Future of Platform Engineering
The Future of Platform EngineeringJemma Hussein Allen
Ā 

Recently uploaded (20)

Dev Dives: Train smarter, not harder ā€“ active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder ā€“ active learning and UiPath LLMs for do...Dev Dives: Train smarter, not harder ā€“ active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder ā€“ active learning and UiPath LLMs for do...
Ā 
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Ā 
Key Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdfKey Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdf
Ā 
Demystifying gRPC in .Net by John Staveley
Demystifying gRPC in .Net by John StaveleyDemystifying gRPC in .Net by John Staveley
Demystifying gRPC in .Net by John Staveley
Ā 
How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...
Ā 
Quantum Computing: Current Landscape and the Future Role of APIs
Quantum Computing: Current Landscape and the Future Role of APIsQuantum Computing: Current Landscape and the Future Role of APIs
Quantum Computing: Current Landscape and the Future Role of APIs
Ā 
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
Ā 
When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...
Ā 
Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...
Ā 
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdfSmart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Ā 
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
Ā 
Assuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyesAssuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyes
Ā 
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo DiehlFuture Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Ā 
Essentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with ParametersEssentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with Parameters
Ā 
UiPath Test Automation using UiPath Test Suite series, part 2
UiPath Test Automation using UiPath Test Suite series, part 2UiPath Test Automation using UiPath Test Suite series, part 2
UiPath Test Automation using UiPath Test Suite series, part 2
Ā 
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptxIOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
Ā 
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
Ā 
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
Ā 
ODC, Data Fabric and Architecture User Group
ODC, Data Fabric and Architecture User GroupODC, Data Fabric and Architecture User Group
ODC, Data Fabric and Architecture User Group
Ā 
The Future of Platform Engineering
The Future of Platform EngineeringThe Future of Platform Engineering
The Future of Platform Engineering
Ā 

Jenkins Pipeline Tutorial | Continuous Delivery Pipeline Using Jenkins | DevOps Training | Edureka

  • 1.
  • 2. DEVOPS CERTIFICATION TRAINING www.edureka.co/devops What Will I Learn Today? Why Continuous Delivery? What is Continuous Delivery? Before Jenkins Pipeline What is a Jenkins pipeline? Pipeline Concepts Create your first Jenkins Pipeline Declarative Pipeline Demo Scripted Pipeline Demo
  • 3. DEVOPS CERTIFICATION TRAINING www.edureka.co/devops FAILURE Developers Manual testing (UT, IT) Application directly deployed to prod Code repo ā€¢ Different environments (servers) ā€¢ Different libraries & packages (dependencies) ā€¢ End user load (traffic) ā€¢ App not accessible to intended audience Why did it fail? POSSIBLE REASONS Why Do We Need Continuous Delivery (CD)?
  • 4. DEVOPS CERTIFICATION TRAINING www.edureka.co/devops CD Pipeline BUILD CI-Jenkins (UT, IT) TEST ENVIRONMENT (Acceptance testing, Load testing) COMMIT (Version control system (Git)) Production readyDevelopers
  • 5. DEVOPS CERTIFICATION TRAINING www.edureka.co/devops Advantages of Continuous Delivery Automates software release Increases developer productivity Locates and addresses bugs quicker
  • 6. DEVOPS CERTIFICATION TRAINING www.edureka.co/devops What is CD? ā€¢ Continuous Delivery is a practise to continuously (any-time) release software ā€¢ Code changes are continuously built, tested & pushed to a non- production environment by using automation tools ā€¢ Software delivery cycles are more rapid and effective
  • 7. DEVOPS CERTIFICATION TRAINING www.edureka.co/devops uh CASE STUDY:- Continuous Delivery @ HP
  • 8. DEVOPS CERTIFICATION TRAINING www.edureka.co/devops HP Future Smart Case Study HPā€™s LaserJet firmware division builds firmware that runs all their scanners and printers ā€¢ In 2008, they were facing problems, their product delivery cycle was slow ā€¢ It took them 6-12 months to build new features; making them slower than all their competitors Problems
  • 9. DEVOPS CERTIFICATION TRAINING www.edureka.co/devops HP Future Smart Case Study Single platform to support the whole workflow Improved quality releases Faster releases Solution
  • 10. DEVOPS CERTIFICATION TRAINING www.edureka.co/devops HP Future Smart Case Study How did they achieve this? They implemented a CD pipeline with two key features ā€¢ Practice CI ā€¢ Automation at every step ā€¢ Overall development cost reduced ~ 40% ā€¢ Programs under development increased ~ 140% ā€¢ Development cost per program went down ~ 78%
  • 11. DEVOPS CERTIFICATION TRAINING www.edureka.co/devops Before Jenkins Pipeline
  • 12. DEVOPS CERTIFICATION TRAINING www.edureka.co/devops Before Jenkins Pipeline Over the years, there have been multiple Jenkins pipeline releases including, Jenkins Build flow, Jenkins Build Pipeline plugin, Jenkins Workflow, etc. What are the key features of these plugins? These pipelines are a collection of Jenkins jobs which trigger each other in a specified sequence Represent multiple Jenkins jobs as one pipeline What do these pipelines do?
  • 13. DEVOPS CERTIFICATION TRAINING www.edureka.co/devops Build Plugin Pipeline Example ā€¢ 3 jobs: Job1 ā†’ building, Job2 ā†’ testing the application and Job3 ā†’ deployment ā€¢ Chain these jobs together & run using Build Pipeline Plugin (better for small deployment)
  • 14. DEVOPS CERTIFICATION TRAINING www.edureka.co/devops Limitations Of The Build Pipeline Plugin The maintenance cost is huge and increases with the number of processes Complex pipelines are hard to implement Tedious to build and manage such a vast number of jobs
  • 15. DEVOPS CERTIFICATION TRAINING www.edureka.co/devops Jenkins Pipeline
  • 16. DEVOPS CERTIFICATION TRAINING www.edureka.co/devops What Is A Jenkins Pipeline? ā€¢ Jenkins pipeline is a single platform that runs the entire pipeline as code ā€¢ All the standard jobs defined by Jenkins are manually written in one script and they can be stored in a VCS ā€¢ Instead of building several jobs for each phase, you can now code the entire workflow and put it in a Jenkinsfile
  • 17. DEVOPS CERTIFICATION TRAINING www.edureka.co/devops Key Features Of Jenkins Pipeline Pipeline as code Restart from saved checkpoint Run jobs in parallel Integrate with other plugins Allows conditional loops (for, when) Code can be checked into a VCS Incorporates user input
  • 18. DEVOPS CERTIFICATION TRAINING www.edureka.co/devops What is a Jenkinsfile?
  • 19. DEVOPS CERTIFICATION TRAINING www.edureka.co/devops What Is A Jenkinsfile? A text file that stores the pipeline as code It can be checked into a SCM on your local system Enables the developers to access, edit and check the code at all times It is written using the Groovy DSL Written based on two syntaxes
  • 20. DEVOPS CERTIFICATION TRAINING www.edureka.co/devops Two Ways Of Writing Jenkinsfile DECLARATIVE PIPELINE ā€¢ Recent feature ā€¢ Simpler groovy syntax ā€¢ Code is written locally in a file and is checked into a SCM ā€¢ The code is defined within a ā€˜pipelineā€™ block SCRIPTED PIPELINE ā€¢ Traditional way of writing the code ā€¢ Stricter groovy syntax ā€¢ Code is written on the Jenkins UI instance ā€¢ The code is defined within a ā€˜nodeā€™ block
  • 21. DEVOPS CERTIFICATION TRAINING www.edureka.co/devops Pipeline Concepts
  • 22. DEVOPS CERTIFICATION TRAINING www.edureka.co/devops Pipeline Concepts Pipeline: A user defined block which contains all the stages. It is a key part of declarative pipeline syntax. Node: A node is a machine that executes an entire workflow. It is a key part of the scripted pipeline syntax. Note: Stages are explained in the following slides
  • 23. DEVOPS CERTIFICATION TRAINING www.edureka.co/devops Pipeline Concepts Agent: instructs Jenkins to allocate an executor for the builds. It is defined for an entire pipeline or a specific stage. It has the following parameters: ā€¢ Any: Runs pipeline/ stage on any available agent ā€¢ None: applied at the root of the pipeline, it indicates that there is no global agent for the entire pipeline & each stage must specify its own agent ā€¢ Label: Executes the pipeline/stage on the labelled agent. ā€¢ Docker: Uses docker container as an execution environment for the pipeline or a specific stage.
  • 24. DEVOPS CERTIFICATION TRAINING www.edureka.co/devops Pipeline Concepts Stages: It contains all the work, each stage performs a specific task. Steps: steps are carried out in sequence to execute a stage
  • 25. DEVOPS CERTIFICATION TRAINING www.edureka.co/devops Create Your First Jenkins Pipeline
  • 26. DEVOPS CERTIFICATION TRAINING www.edureka.co/devops Create Your First Jenkins Pipeline Step 1: Log into Jenkins and select New Item from the Dashboard
  • 27. DEVOPS CERTIFICATION TRAINING www.edureka.co/devops Create Your First Jenkins Pipeline Step 2: Next, enter a name for your pipeline and select ā€˜Pipeline projectā€™. Click ā€˜okā€™ to proceed
  • 28. DEVOPS CERTIFICATION TRAINING www.edureka.co/devops Create Your First Jenkins Pipeline Step 3: Scroll down to the pipeline and choose if you want a Declarative or Scripted pipeline.
  • 29. DEVOPS CERTIFICATION TRAINING www.edureka.co/devops Create Your First Jenkins Pipeline Step 4a: If you want a Scripted pipeline, then choose ā€˜pipeline scriptā€™ and start typing your code
  • 30. DEVOPS CERTIFICATION TRAINING www.edureka.co/devops Create Your First Jenkins Pipeline Step 4b: If you want a Declarative Pipeline, select ā€˜Pipeline script from SCMā€™ and choose your SCM. In my case Iā€™m going to use Git throughout this demo. Enter your repository URL
  • 31. DEVOPS CERTIFICATION TRAINING www.edureka.co/devops Create Your First Jenkins Pipeline Step 5: Within the Script path is the name of the Jenkinsfile that is going to be accessed from your SCM (Git) to run. Finally click on ā€˜applyā€™ and ā€˜saveā€™. You have successfully created your first pipeline
  • 32. DEVOPS CERTIFICATION TRAINING www.edureka.co/devops Declarative Pipeline demo
  • 33. DEVOPS CERTIFICATION TRAINING www.edureka.co/devops Declarative Pipeline Demo (Code) Note: The code is explained in the following slides
  • 34. DEVOPS CERTIFICATION TRAINING www.edureka.co/devops Declarative Pipeline Demo (Code) Note: The code is explained in the following slides
  • 35. DEVOPS CERTIFICATION TRAINING www.edureka.co/devops Declarative Pipeline Demo runs a simple echo command executes an input directive runs ā€˜whenā€™ directive with ā€˜notā€™ tag runs a parallel directive Stage 1 Stage 2 Stage 3 Stage 4
  • 36. DEVOPS CERTIFICATION TRAINING www.edureka.co/devops Declarative Pipeline Demo The echo command specified in ā€˜stepsā€™ block, displays the message Stage One runs a simple echo command Stage Two executes an input directive Stage Three runs ā€˜whenā€™ directive with ā€˜notā€™ tag Stage Four runs a parallel directive
  • 37. DEVOPS CERTIFICATION TRAINING www.edureka.co/devops Declarative Pipeline Demo ā€¢ Input directive allows to prompt a user input in a stage ā€¢ On receiving the user input the pipeline either proceeds with further execution or aborts Stage One runs a simple echo command Stage Two executes an input directive Stage Three runs ā€˜whenā€™ directive with ā€˜notā€™ tag Stage Four runs a parallel directive
  • 38. DEVOPS CERTIFICATION TRAINING www.edureka.co/devops Declarative Pipeline Demo ā€¢ ā€˜whenā€™ executes a step depending on the conditions defined within loop ā€¢ If conditions are met, corresponding stage is executed ā€¢ In this demo weā€™re using a ā€˜notā€™ tag ā€¢ This tag executes a stage when the nested condition is false Stage One runs a simple echo command Stage Two executes an input directive Stage Three runs ā€˜whenā€™ directive with ā€˜notā€™ tag Stage Four runs a parallel directive
  • 39. DEVOPS CERTIFICATION TRAINING www.edureka.co/devops Declarative Pipeline Demo ā€¢ Runs ā€˜Unit testā€™ and ā€˜Integration testā€™ stages in parallel ā€¢ ā€˜Unit Testā€™ runs an echo command ā€¢ In ā€˜Integration testā€™ stage, a docker agent pulls an ā€˜ubuntuā€™ image & runs the reuseNode which is a Boolean (returns false by default) ā€¢ If true, the docker container will run on the agent specified at the top-level of the pipeline Stage One runs a simple echo command Stage Two executes an input directive Stage Three runs ā€˜whenā€™ directive with ā€˜notā€™ tag Stage Four runs a parallel directive
  • 40. DEVOPS CERTIFICATION TRAINING www.edureka.co/devops Declarative Pipeline Demo Now that Iā€™ve explained the code, lets run the pipeline. The following screenshot is the result of the pipeline. In the below image, the pipeline waits for the user input and on clicking ā€˜proceedā€™ the execution resumes.
  • 41. DEVOPS CERTIFICATION TRAINING www.edureka.co/devops Declarative Pipeline Demo Final output of the Declarative pipeline demo
  • 42. DEVOPS CERTIFICATION TRAINING www.edureka.co/devops Scripted Pipeline Demo
  • 43. DEVOPS CERTIFICATION TRAINING www.edureka.co/devops Scripted Pipeline Demo (Code) To give you a basic understanding of the scripted pipeline, lets execute a simple code. I will run the following script
  • 44. DEVOPS CERTIFICATION TRAINING www.edureka.co/devops Scripted Pipeline Demo (Code) ā€¢ The node block runs the conditional ā€˜forā€™ loop for creating 2 stages: Stage #0 & Stage #1 ā€¢ These stages print ā€˜hello world!ā€™ message ā€¢ ā€˜ifā€™ loop is used to execute 2 commands when ā€˜iā€™ = 0: ā€˜gitā€™ command to clone the git directory & ā€˜echoā€˜ to display a message ā€¢ ā€˜elseā€™ is executed when ā€˜iā€™ != 0: ā€˜buildā€™ executes the job (ā€˜Declarative pipelineā€™) and then runs the echo command
  • 45. DEVOPS CERTIFICATION TRAINING www.edureka.co/devops Scripted Pipeline Demo Now that Iā€™ve explained the code, lets run the pipeline. The following screenshot is the result of Stage #0.
  • 46. DEVOPS CERTIFICATION TRAINING www.edureka.co/devops Scripted Pipeline Demo Shows the logs of Stage #1 and starts building the ā€˜Declarative pipelineā€™
  • 47. DEVOPS CERTIFICATION TRAINING www.edureka.co/devops Scripted Pipeline Demo Execution of the ā€˜Declarative pipelineā€™
  • 48. DEVOPS CERTIFICATION TRAINING www.edureka.co/devops Scripted Pipeline Demo Results show the completion of ā€˜Declarative pipelineā€™ and Stage #1
  • 49. DEVOPS CERTIFICATION TRAINING www.edureka.co/devops Summary Pipeline ConceptsWhat is a Jenkinsfile? Why Continuous Delivery? HP Future Smart Case Study What is a Jenkins Pipeline? What Continuous Delivery?
  • 50. DEVOPS CERTIFICATION TRAINING www.edureka.co/devops WebDriver vs. IDE vs. RC āž¢ Data Warehouse is like a relational database designed for analytical needs. āž¢ It functions on the basis of OLAP (Online Analytical Processing). āž¢ It is a central location where consolidated data from multiple locations (databases) are stored.