SlideShare a Scribd company logo
Jenkins 2.0 and Beyond
About Jenkins
Jenkins 2.0 is an automation engine with an
unparalleled plugin ecosystem to support all of your
favorite tools in your delivery pipelines, whether your
goal is continuous integration, automated testing, or
continuous delivery.
Let’s discuss
●Why Jenkins 2.0 exists
●What is Jenkins 2.0
●Pipelines
●Other stuff
Meet Jenkins
SD DevOps Meet-up - Jenkins 2.0 and Pipeline-as-Code
Jenkins 101
6
• 2005 – Hudson (Sun)
• 2008 – It becomes popular, Duke's Choice
Award
• 2011 – Conflict with Oracle, renaming to Jenkins
• License: MIT (core)
• https://github.com/jenkinsci/
Why “automation”?
7
Continuous Integration
Continuous
Integration
Continuous
Delivery
DevOps
Accounting
automation
Home
Automation
CRON + WebUI
Jenkins weaknesses. Growth Problems
8
Jenkins used to grow faster than its Dev community
Jenkins weaknesses. Compatibility costs
9
• More than 5 years of backward compatibility
• Hudson 2 plugins still work on Jenkins!
• BUT:
• Architecture design issues, complex APIs
• Outdated libs
• Outdated UI
• Plugin integration issues
...Fixes are on the way
Pipelines in Jenkins 1.x
●Create jobs
●Trigger “downstream” jobs for next stage
●Easy!
Pipelines in Jenkins 1.x
Pipelines in Jenkins 1.x
Pipelines in Jenkins 1.x
Pipelines in Jenkins 1.x
Pipelines in Jenkins 1.x
Pipelines in Jenkins 1.x
Classic Job Configuration UI
● All the options you could ever want
○ and more!
● Consistent for almost a decade
Low maintenance
●Many users install Jenkins once
●Usage pattern: “set it, and forget it!”
Meet Jenkins 2.0
jenkins-ci.org/2.0
©2015CloudBees,Inc.AllRightsReserved
20
• CI-to-CD with Pipeline-as-Code
• Improved “out of the box” experience
• Updated easier to use UI
• New Jenkins.xx site
Jenkins 2.0 Themes
Pipeline as Code
©2015CloudBees,Inc.AllRightsReserved
22
• Entire flow is one concise Groovy script using Workflow DSL
– For loops, try-finally, fork-join, etc
• Can restart Jenkins while flow is running
• Allocate build nodes and workspaces
– As many as you want, when you want
• Stages throttle concurrency of builds
• Human input/approval integrated into flow
• Standard project concepts: SCM, artifacts, plugins
Key Pipeline Features
©2015CloudBees,Inc.AllRightsReserved
23
Jenkins Powered CD Pipelines: Jenkins Workflow
Development Production
Commit Build Stage Deploy
? ?
Pipelines Need:
✓ Branching
✓ Looping
✓ Restarts
✓ Checkpoints
✓ Manual Input
Sonar Test
Selenium Test
Perf Test
Jenkins Workflow
©2015CloudBees,Inc.AllRightsReserved
24
A Real-world CD Pipeline with Jenkins Workflow
Development Production
Jenkins Workflow
Pipeline as Code
● Introduce “pipeline” as a new type in Jenkins
● Codify an implicit series of stages into an explicit
.Jenkinsfile in your source repository
● Resumability/durability of the pipeline state
● Extend the DSL with your own steps
github.com/jenkinsci/pipeline-examples
Pipeline DSL
node('docker') {
checkout scm
/* Grab the abbreviated SHA1 of our pipeline’s commit.
*/
sh 'git rev-parse HEAD > GIT_COMMIT'
def shortCommit = readFile('GIT_COMMIT').take(6)
stage 'Build'
def image = docker.build("jenkinsciinfra/bind:build-${shortCommit}")
stage 'Deploy'
image.push()
}
©2015CloudBees,Inc.AllRightsReserved
27
CloudBees Jenkins Pipeline Stage View
Jenkins Pipeline Stage View
SOURCE
CODE
CONTROL
SYSTEM
Code
Commit
<
/
>
Development Production
Jenkins Pipeline
Better Out-of-the-box UX
Better Out-of-the-box UI
User Interface Improvements
User Interface Improvements
● Improved “New Item” page
● More consistent terminology
2.0 is a drop-in replacement for 1.x
● Evolution not revolution
● No need to wait
Better Out-of-the-box UX
Better Out-of-the-box UX
Better Out-of-the-box UI
User Interface Improvements
User Interface Improvements
User Interface Improvements
●Improved “New Item” page
●More consistent terminology
2.0 is a drop-in replacement for 1.x
Get Involved
Jenkins is made of people
Try out Jenkins 2.0
●jenkins-ci.org/2.0
●jenkinsci-users@googlegroups.com
●#jenkins on Freenode
Get Jenkins 2.0 (alpha) now
jenkins-ci.org/2.0
New Community Site: jenkins.io (Beta)
● Modern platform and UI
● Easier to use
● 1-2-3-4 Quickstart
● Centralized Documentation
● Solution-oriented Use
Cases
● Events listings
● Launching March 22nd
Feedback
Q1
– CloudBees Jenkins Platform: Private SaaS Edition Launched
– Jenkins and CJP Certification
Later in 2016
– Jenkins 2.0 Release
– Jenkins 2.0 LTS Release
– Updated User Interface: Blue Ocean
– CloudBees Jenkins Platform 16.05 Release
– Jenkins World (September)
Recent and Upcoming Activities
Questions and Answers

More Related Content

PDF
CI/CD with Jenkins and Docker - DevOps Meetup Day Thailand
PDF
Yale Jenkins Show and Tell
PPT
CI and CD with Jenkins
PDF
Pimp your Continuous Delivery Pipeline with Jenkins workflow (W-JAX 14)
PPT
Continuous Integration (Jenkins/Hudson)
PPTX
Jenkins Introduction
PDF
CI and CD Across the Enterprise with Jenkins (devops.com Nov 2014)
PDF
Anatomy of a Continuous Integration and Delivery (CICD) Pipeline
CI/CD with Jenkins and Docker - DevOps Meetup Day Thailand
Yale Jenkins Show and Tell
CI and CD with Jenkins
Pimp your Continuous Delivery Pipeline with Jenkins workflow (W-JAX 14)
Continuous Integration (Jenkins/Hudson)
Jenkins Introduction
CI and CD Across the Enterprise with Jenkins (devops.com Nov 2014)
Anatomy of a Continuous Integration and Delivery (CICD) Pipeline

What's hot (20)

PDF
Continuous Delivery with Jenkins Workflow
PDF
Let’s start Continuous Integration with jenkins
ODP
An Introduction To Jenkins
PPTX
Introduction to jenkins
PDF
JUC Europe 2015: Enabling Continuous Delivery for Major Retailers
PPTX
Delivery Pipeline as Code: using Jenkins 2.0 Pipeline
PPTX
Jenkins for java world
PPTX
Javaone 2014 - Git & Docker with Jenkins
PPTX
Continuous Integration With Jenkins Docker SQL Server
PDF
JavaCro'14 - Continuous delivery of Java EE applications with Jenkins and Doc...
PDF
DockerCon EU 2015: Continuous Integration with Jenkins, Docker and Compose
PDF
JUC Europe 2015: Plugin Development with Gradle and Groovy
PDF
Analyze This! CloudBees Jenkins Cluster Operations and Analytics
PPTX
CI/CD Pipeline to Deploy and Maintain an OpenStack IaaS Cloud
PDF
Jenkins tutorial
PDF
JUC Europe 2015: Scaling Your Jenkins Master with Docker
PDF
CI is dead, long live CI
ODP
7 Habits of Highly Effective Jenkins Users
DOCX
What is jenkins
PDF
JUC Europe 2015: Bringing CD at Cloud-Scale with Jenkins, Docker and "Tiger"
Continuous Delivery with Jenkins Workflow
Let’s start Continuous Integration with jenkins
An Introduction To Jenkins
Introduction to jenkins
JUC Europe 2015: Enabling Continuous Delivery for Major Retailers
Delivery Pipeline as Code: using Jenkins 2.0 Pipeline
Jenkins for java world
Javaone 2014 - Git & Docker with Jenkins
Continuous Integration With Jenkins Docker SQL Server
JavaCro'14 - Continuous delivery of Java EE applications with Jenkins and Doc...
DockerCon EU 2015: Continuous Integration with Jenkins, Docker and Compose
JUC Europe 2015: Plugin Development with Gradle and Groovy
Analyze This! CloudBees Jenkins Cluster Operations and Analytics
CI/CD Pipeline to Deploy and Maintain an OpenStack IaaS Cloud
Jenkins tutorial
JUC Europe 2015: Scaling Your Jenkins Master with Docker
CI is dead, long live CI
7 Habits of Highly Effective Jenkins Users
What is jenkins
JUC Europe 2015: Bringing CD at Cloud-Scale with Jenkins, Docker and "Tiger"
Ad

Viewers also liked (20)

PDF
Jenkins Pipelines
PDF
Pipeline: Continuous Delivery as Code in Jenkins 2.0
PPTX
Pipeline as code - new feature in Jenkins 2
PDF
Master Continuous Delivery with CloudBees Jenkins Platform
PDF
Voxxed Luxembourd 2016 Jenkins 2.0 et Pipeline as code
PDF
JCConf2016 Jenkins Pipeline
PDF
An Open-Source Chef Cookbook CI/CD Implementation Using Jenkins Pipelines
PDF
Rise of the Machines - Automate your Development
PDF
Jenkins Docker
ODP
Ic maven jenkins_sonar
PDF
Dockercon2015 bamboo
PDF
Game of Codes: the Battle for CI
PPTX
GitFlow, SourceTree and GitLab
PPTX
Getting started with Jenkins
PDF
Using Docker for Testing
PDF
Bamboo - an introduction
PDF
Gitlab Training with GIT and SourceTree
PDF
Git and GitHub for Documentation
PPTX
Continuous Delivery with Jenkins and Wildfly (2014)
PDF
Git best practices workshop
Jenkins Pipelines
Pipeline: Continuous Delivery as Code in Jenkins 2.0
Pipeline as code - new feature in Jenkins 2
Master Continuous Delivery with CloudBees Jenkins Platform
Voxxed Luxembourd 2016 Jenkins 2.0 et Pipeline as code
JCConf2016 Jenkins Pipeline
An Open-Source Chef Cookbook CI/CD Implementation Using Jenkins Pipelines
Rise of the Machines - Automate your Development
Jenkins Docker
Ic maven jenkins_sonar
Dockercon2015 bamboo
Game of Codes: the Battle for CI
GitFlow, SourceTree and GitLab
Getting started with Jenkins
Using Docker for Testing
Bamboo - an introduction
Gitlab Training with GIT and SourceTree
Git and GitHub for Documentation
Continuous Delivery with Jenkins and Wildfly (2014)
Git best practices workshop
Ad

Similar to SD DevOps Meet-up - Jenkins 2.0 and Pipeline-as-Code (20)

PDF
From Virtual Machines to Containers
PDF
JUC Europe 2015: From Virtual Machines to Containers: Achieving Continuous In...
PDF
DevOps World | Jenkins World 2018 and The Future of Jenkins
PPTX
Next generation pipelines
PDF
Jenkins X intro (from google app dev conference)
PPTX
Basic Jenkins Guide.pptx
PDF
Jenkins-CI
PDF
Alibaba Cloud Conference 2016 - Docker Open Source
PPTX
Continuous Delivery with Jenkins & Kubernetes @ Sky
PPTX
DevOps with Azure, Kubernetes, and Helm Webinar
PDF
Continuous delivery with Jenkins Enterprise and Deployit
PPTX
IM5- Introduction to DevOps tooools.pptx
PDF
Jenkins: An open-source automation server powering CI/CD Automation
PDF
Using Jenkins as your go-to CI/CD tool
PPTX
Continuous Integration and Deployment with Jenkins for PCF
PPTX
Building Distributed Systems without Docker, Using Docker Plumbing Projects -...
PDF
PPTX
SDLC Using Docker for Fun and Profit
PPTX
DevOps-CI_CD_JAVA_JAVA______Jenkins.pptx
PPTX
Ordina Accelerator program 2019 - Jenkins blue ocean pipelines
From Virtual Machines to Containers
JUC Europe 2015: From Virtual Machines to Containers: Achieving Continuous In...
DevOps World | Jenkins World 2018 and The Future of Jenkins
Next generation pipelines
Jenkins X intro (from google app dev conference)
Basic Jenkins Guide.pptx
Jenkins-CI
Alibaba Cloud Conference 2016 - Docker Open Source
Continuous Delivery with Jenkins & Kubernetes @ Sky
DevOps with Azure, Kubernetes, and Helm Webinar
Continuous delivery with Jenkins Enterprise and Deployit
IM5- Introduction to DevOps tooools.pptx
Jenkins: An open-source automation server powering CI/CD Automation
Using Jenkins as your go-to CI/CD tool
Continuous Integration and Deployment with Jenkins for PCF
Building Distributed Systems without Docker, Using Docker Plumbing Projects -...
SDLC Using Docker for Fun and Profit
DevOps-CI_CD_JAVA_JAVA______Jenkins.pptx
Ordina Accelerator program 2019 - Jenkins blue ocean pipelines

Recently uploaded (20)

PPTX
Geodesy 1.pptx...............................................
PPT
Drone Technology Electronics components_1
PPTX
Unit 5 BSP.pptxytrrftyyydfyujfttyczcgvcd
PDF
Operating System & Kernel Study Guide-1 - converted.pdf
PPTX
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
PPTX
Sustainable Sites - Green Building Construction
PPTX
additive manufacturing of ss316l using mig welding
PPTX
CH1 Production IntroductoryConcepts.pptx
PDF
Model Code of Practice - Construction Work - 21102022 .pdf
PDF
composite construction of structures.pdf
PPTX
Internet of Things (IOT) - A guide to understanding
PPTX
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
PDF
ETO & MEO Certificate of Competency Questions and Answers
PPTX
Lesson 3_Tessellation.pptx finite Mathematics
PPTX
Lecture Notes Electrical Wiring System Components
PPT
Mechanical Engineering MATERIALS Selection
PPTX
Construction Project Organization Group 2.pptx
PPTX
CYBER-CRIMES AND SECURITY A guide to understanding
PPTX
MET 305 MODULE 1 KTU 2019 SCHEME 25.pptx
PPTX
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
Geodesy 1.pptx...............................................
Drone Technology Electronics components_1
Unit 5 BSP.pptxytrrftyyydfyujfttyczcgvcd
Operating System & Kernel Study Guide-1 - converted.pdf
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
Sustainable Sites - Green Building Construction
additive manufacturing of ss316l using mig welding
CH1 Production IntroductoryConcepts.pptx
Model Code of Practice - Construction Work - 21102022 .pdf
composite construction of structures.pdf
Internet of Things (IOT) - A guide to understanding
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
ETO & MEO Certificate of Competency Questions and Answers
Lesson 3_Tessellation.pptx finite Mathematics
Lecture Notes Electrical Wiring System Components
Mechanical Engineering MATERIALS Selection
Construction Project Organization Group 2.pptx
CYBER-CRIMES AND SECURITY A guide to understanding
MET 305 MODULE 1 KTU 2019 SCHEME 25.pptx
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx

SD DevOps Meet-up - Jenkins 2.0 and Pipeline-as-Code

Editor's Notes

  • #23: Here are some really cool features in Jenkins Workflow. SAs talk here about coolness of Workflow.
  • #24: As we said, CD involves creating Pipelines for application code. This means that for every code “check-in” by every developer, the new code needs to go through the Pipeline that will take it from Dev to Prod. So, the CD Platform needs to manage the execution of many of these Pipelines. And the pipelines can be complex. They may have decision points or branches. They may need to be paused or restarted. Modeling the real-world process of application delivery requires that these pipelines be robust, flexible and powerful.
  • #25: Here’s a real-world example of a complex CD Pipeline used by a Jenkins Workflow user.
  • #28: The CloudBees Jenkins Platform also provides a dashboard that shows the current state of the pipeline activity, such as this example, which is critical to providing a full understanding of how things are performing.