SlideShare a Scribd company logo
Andrei Krasnitski
Cloud Foundry Engineer
ALTOROS
@altoros
Continuous Integration and
Deployment with Jenkins for
PCF
@infra-red
2
ABOUT JENKINS
An extensible automation server built on
the JVM with hundreds of plugin to support
nearly every continuous integration,
delivery and deployment pipeline
imaginable
3
ABOUT ME
• Cloud Foundry Engineer at Altoros
Andrei Krasnitski
• Long time Jenkins user and community
member
• Contributor on various open-source
projects @infra-red
@andreikrasnits
ki
• Maintainer of the Log Search project
4
WHY JENKINS?
• Easy setup Procedure
• Cross system support
• Answers to most of the questions are available on the WEB
• Extensive Documentation and Tutorials
• Distributed builds
• Full Transparency and Total Control
5
LEARNING CURVE
Scripts,
Jenkins CRON with UI
Automation
flows based
on plugins
Custom plugins,
Advanced
features
6
PIPELINE AS CODE
DESCRIBING JENKINS JOBS VIA CODE
7
BENEFITS?
• CI pipelines + project source code are in a one place
• Configuration change tracking
• Built-in global library to share scripts, functions,
variables across jobs
• Extend the DSL with your own
steps
8
PIPELINE SAMPLE
• Syntax: Groovy-based DSL
• Store job description on SCM, e.g. jenkinsfile in the repo’s root
• https://tiny.cc/jenkins-pipeline
9
SNIPPET GENERATOR
• First steps are
always the hardest
• Create your code
for individual steps
• Discover all the
steps provided by
plugin
10
PIPELINE EDITOR
• Edit the Jenkinsfile
for a specific branch
directly from the
Web user interface
using the Visual
Pipeline Editor
11
TOOLS
• Blue Ocean editor
• Command-line pipeline linter
• Jenkins Pipeline Unit Testing Framework
• ”Replay” function
12
MULTIBRANCH WORKFLOW
• Job configurations contain only the reference to the
SCM
• Jenkins takes pipeline from jenkinsfile in SCM
• Pull-request builds
• Jenkins creates separate subtasks for branches,
builds and report results separately
• Organization Folders
13
BUILD ENVIRONMENT
JENKINS WORKERS
14
CONTAINER RUNTIME
Docker
Kubernetes
Apache Mesos
Docker is an open platform for developers and sysadmins to build, ship, and run distributed
applications, whether on laptops, data center VMs, or the cloud.
Kubernetes is an open-source system for automating deployment, scaling, and management of
containerized applications.
Apache Mesos is an open-source project to manage computer clusters.
15
BENEFITS?
• No need for manual worker nodes
management
• All builds run in stateless infrastructure
• Restriction of services
• Isolation of resources
16
DOCKER SLAVES
• No need to install software on Jenkins nodes
• Use multiple versions of the same tool
• Possibility to use existing containers based on Dockerfile
content
17
ARCHITECTURE DIAGRAM
Jenkins Server
Docker Swarm
18
SUMMARY
• Finally nice pipelines!
• The way to go with Jenkins
• Many of Jenkins plugins already compatible
• Pipeline as code!
• Versioned
• Code sharing
• New UI stuff is still broken
• Endless possibilities – can be complex and
painful
altoros.com
blog.altoros.com
19
@altoros
Thank you!
@infra-red

More Related Content

PPTX
Continuous Integration and Deployment with Jenkins for PCF
PDF
DockerCon SF 2015: Docker at Lyft
PDF
DCSF19 Adding a Modern API Layer to ‘Dockerized’ Legacy Apps
PDF
DCSF 19 Kubernetes and Container Storage Interface Update
PDF
DCSF 19 Microservices API: Routing Across Any Infrastructure
PDF
Automation CI CD with Gitlab, Java, docker on Hidora - Jelastic
PDF
DockerCon SF 2015: Beyond CI to Production Scale PaaS with Docker
PDF
DCSF 19 Building Your Development Pipeline
Continuous Integration and Deployment with Jenkins for PCF
DockerCon SF 2015: Docker at Lyft
DCSF19 Adding a Modern API Layer to ‘Dockerized’ Legacy Apps
DCSF 19 Kubernetes and Container Storage Interface Update
DCSF 19 Microservices API: Routing Across Any Infrastructure
Automation CI CD with Gitlab, Java, docker on Hidora - Jelastic
DockerCon SF 2015: Beyond CI to Production Scale PaaS with Docker
DCSF 19 Building Your Development Pipeline

What's hot (20)

PDF
DockerCon SF 2015: How to Build a Secure DevOps Environment for the Government
PDF
DockerCon SF 2015: From Months to Minutes
PDF
DockerCon SF 2015: Docker in the New York Times Newsroom
PDF
Play 2 Java Framework with TDD
PDF
Java in a world of containers
PPTX
Ultimate DevOps: OpenShift Dedicated With CloudBees Jenkins Platform (Andy Pe...
PDF
5 patterns for success for application transformation
PDF
DockerCon SF 2015: Ben Golub's Keynote Day 1
PPTX
DockerCon 15 Keynote - Day 2
PDF
Windows container security
PPTX
Develop and deploy Kubernetes applications with Docker - IBM Index 2018
PDF
Docker for .NET Developers - Michele Leroux Bustamante, Solliance
ODP
DevOps @ OpenShift Online
PDF
DCEU 18: 5 Patterns for Success in Application Transformation
PDF
DCSF19 Docker Containers & Java: What I Wish I Had Been Told
PDF
Ultimate DevOps - Jenkins Enterprise & Red Hat OpenShift
PPTX
Kubernetes @ Nanit by Chen Fisher
PDF
Efficient Parallel Testing with Docker by Laura Frank
PDF
Node.js Rocks in Docker for Dev and Ops
PDF
Automating CICD Pipeline with GitLab and Docker Containers for Java Applications
DockerCon SF 2015: How to Build a Secure DevOps Environment for the Government
DockerCon SF 2015: From Months to Minutes
DockerCon SF 2015: Docker in the New York Times Newsroom
Play 2 Java Framework with TDD
Java in a world of containers
Ultimate DevOps: OpenShift Dedicated With CloudBees Jenkins Platform (Andy Pe...
5 patterns for success for application transformation
DockerCon SF 2015: Ben Golub's Keynote Day 1
DockerCon 15 Keynote - Day 2
Windows container security
Develop and deploy Kubernetes applications with Docker - IBM Index 2018
Docker for .NET Developers - Michele Leroux Bustamante, Solliance
DevOps @ OpenShift Online
DCEU 18: 5 Patterns for Success in Application Transformation
DCSF19 Docker Containers & Java: What I Wish I Had Been Told
Ultimate DevOps - Jenkins Enterprise & Red Hat OpenShift
Kubernetes @ Nanit by Chen Fisher
Efficient Parallel Testing with Docker by Laura Frank
Node.js Rocks in Docker for Dev and Ops
Automating CICD Pipeline with GitLab and Docker Containers for Java Applications
Ad

Similar to Continuous Integration and Deployment with Jenkins for PCF (20)

PPTX
CICD with Jenkins
PDF
Jenkins Pipelines
PPTX
DevOps-CI_CD_JAVA_JAVA______Jenkins.pptx
PDF
An Open-Source Chef Cookbook CI/CD Implementation Using Jenkins Pipelines
PDF
(Declarative) Jenkins Pipelines
PPTX
Continuous Integration With Jenkins Docker SQL Server
PPTX
Pipeline as code - new feature in Jenkins 2
PPTX
Jenkins talk at Silicon valley DevOps meetup
PDF
Continuous Integration/Deployment with Docker and Jenkins
PDF
Pipeline as Code Continuous Delivery with Jenkins Kubernetes and Terraform 1s...
PPTX
Jenkins2 - Coding Continuous Delivery Pipelines
PPTX
Continuous integration jenkins-installation in ec2 instace linux
PDF
Continuous delivery with jenkins pipelines @ devdays
PDF
Jenkins: An open-source automation server powering CI/CD Automation
PDF
Continuous Integration using Jenkins with Python
ODP
A CI/CD Pipeline to Deploy and Maintain OpenStack - cfgmgmtcamp2015
PDF
Continuous Integration using Docker & Jenkins
PPTX
Continuous integration
PPTX
Ordina Accelerator program 2019 - Jenkins blue ocean pipelines
PPTX
Jenkins_Continous integration _CD_Presentation.pptx
CICD with Jenkins
Jenkins Pipelines
DevOps-CI_CD_JAVA_JAVA______Jenkins.pptx
An Open-Source Chef Cookbook CI/CD Implementation Using Jenkins Pipelines
(Declarative) Jenkins Pipelines
Continuous Integration With Jenkins Docker SQL Server
Pipeline as code - new feature in Jenkins 2
Jenkins talk at Silicon valley DevOps meetup
Continuous Integration/Deployment with Docker and Jenkins
Pipeline as Code Continuous Delivery with Jenkins Kubernetes and Terraform 1s...
Jenkins2 - Coding Continuous Delivery Pipelines
Continuous integration jenkins-installation in ec2 instace linux
Continuous delivery with jenkins pipelines @ devdays
Jenkins: An open-source automation server powering CI/CD Automation
Continuous Integration using Jenkins with Python
A CI/CD Pipeline to Deploy and Maintain OpenStack - cfgmgmtcamp2015
Continuous Integration using Docker & Jenkins
Continuous integration
Ordina Accelerator program 2019 - Jenkins blue ocean pipelines
Jenkins_Continous integration _CD_Presentation.pptx
Ad

More from VMware Tanzu (20)

PDF
Spring into AI presented by Dan Vega 5/14
PDF
What AI Means For Your Product Strategy And What To Do About It
PDF
Make the Right Thing the Obvious Thing at Cardinal Health 2023
PPTX
Enhancing DevEx and Simplifying Operations at Scale
PDF
Spring Update | July 2023
PPTX
Platforms, Platform Engineering, & Platform as a Product
PPTX
Building Cloud Ready Apps
PDF
Spring Boot 3 And Beyond
PDF
Spring Cloud Gateway - SpringOne Tour 2023 Charles Schwab.pdf
PDF
Simplify and Scale Enterprise Apps in the Cloud | Boston 2023
PDF
Simplify and Scale Enterprise Apps in the Cloud | Seattle 2023
PPTX
tanzu_developer_connect.pptx
PDF
Tanzu Virtual Developer Connect Workshop - French
PDF
Tanzu Developer Connect Workshop - English
PDF
Virtual Developer Connect Workshop - English
PDF
Tanzu Developer Connect - French
PDF
Simplify and Scale Enterprise Apps in the Cloud | Dallas 2023
PDF
SpringOne Tour: Deliver 15-Factor Applications on Kubernetes with Spring Boot
PDF
SpringOne Tour: The Influential Software Engineer
PDF
SpringOne Tour: Domain-Driven Design: Theory vs Practice
Spring into AI presented by Dan Vega 5/14
What AI Means For Your Product Strategy And What To Do About It
Make the Right Thing the Obvious Thing at Cardinal Health 2023
Enhancing DevEx and Simplifying Operations at Scale
Spring Update | July 2023
Platforms, Platform Engineering, & Platform as a Product
Building Cloud Ready Apps
Spring Boot 3 And Beyond
Spring Cloud Gateway - SpringOne Tour 2023 Charles Schwab.pdf
Simplify and Scale Enterprise Apps in the Cloud | Boston 2023
Simplify and Scale Enterprise Apps in the Cloud | Seattle 2023
tanzu_developer_connect.pptx
Tanzu Virtual Developer Connect Workshop - French
Tanzu Developer Connect Workshop - English
Virtual Developer Connect Workshop - English
Tanzu Developer Connect - French
Simplify and Scale Enterprise Apps in the Cloud | Dallas 2023
SpringOne Tour: Deliver 15-Factor Applications on Kubernetes with Spring Boot
SpringOne Tour: The Influential Software Engineer
SpringOne Tour: Domain-Driven Design: Theory vs Practice

Recently uploaded (20)

PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PPTX
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
cuic standard and advanced reporting.pdf
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Approach and Philosophy of On baking technology
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
PDF
Empathic Computing: Creating Shared Understanding
PDF
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
Electronic commerce courselecture one. Pdf
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
Review of recent advances in non-invasive hemoglobin estimation
Per capita expenditure prediction using model stacking based on satellite ima...
Chapter 3 Spatial Domain Image Processing.pdf
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
cuic standard and advanced reporting.pdf
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Approach and Philosophy of On baking technology
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
Empathic Computing: Creating Shared Understanding
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
20250228 LYD VKU AI Blended-Learning.pptx
Unlocking AI with Model Context Protocol (MCP)
Electronic commerce courselecture one. Pdf
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Reach Out and Touch Someone: Haptics and Empathic Computing
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
Diabetes mellitus diagnosis method based random forest with bat algorithm
Advanced methodologies resolving dimensionality complications for autism neur...

Continuous Integration and Deployment with Jenkins for PCF

  • 1. Andrei Krasnitski Cloud Foundry Engineer ALTOROS @altoros Continuous Integration and Deployment with Jenkins for PCF @infra-red
  • 2. 2 ABOUT JENKINS An extensible automation server built on the JVM with hundreds of plugin to support nearly every continuous integration, delivery and deployment pipeline imaginable
  • 3. 3 ABOUT ME • Cloud Foundry Engineer at Altoros Andrei Krasnitski • Long time Jenkins user and community member • Contributor on various open-source projects @infra-red @andreikrasnits ki • Maintainer of the Log Search project
  • 4. 4 WHY JENKINS? • Easy setup Procedure • Cross system support • Answers to most of the questions are available on the WEB • Extensive Documentation and Tutorials • Distributed builds • Full Transparency and Total Control
  • 5. 5 LEARNING CURVE Scripts, Jenkins CRON with UI Automation flows based on plugins Custom plugins, Advanced features
  • 6. 6 PIPELINE AS CODE DESCRIBING JENKINS JOBS VIA CODE
  • 7. 7 BENEFITS? • CI pipelines + project source code are in a one place • Configuration change tracking • Built-in global library to share scripts, functions, variables across jobs • Extend the DSL with your own steps
  • 8. 8 PIPELINE SAMPLE • Syntax: Groovy-based DSL • Store job description on SCM, e.g. jenkinsfile in the repo’s root • https://tiny.cc/jenkins-pipeline
  • 9. 9 SNIPPET GENERATOR • First steps are always the hardest • Create your code for individual steps • Discover all the steps provided by plugin
  • 10. 10 PIPELINE EDITOR • Edit the Jenkinsfile for a specific branch directly from the Web user interface using the Visual Pipeline Editor
  • 11. 11 TOOLS • Blue Ocean editor • Command-line pipeline linter • Jenkins Pipeline Unit Testing Framework • ”Replay” function
  • 12. 12 MULTIBRANCH WORKFLOW • Job configurations contain only the reference to the SCM • Jenkins takes pipeline from jenkinsfile in SCM • Pull-request builds • Jenkins creates separate subtasks for branches, builds and report results separately • Organization Folders
  • 14. 14 CONTAINER RUNTIME Docker Kubernetes Apache Mesos Docker is an open platform for developers and sysadmins to build, ship, and run distributed applications, whether on laptops, data center VMs, or the cloud. Kubernetes is an open-source system for automating deployment, scaling, and management of containerized applications. Apache Mesos is an open-source project to manage computer clusters.
  • 15. 15 BENEFITS? • No need for manual worker nodes management • All builds run in stateless infrastructure • Restriction of services • Isolation of resources
  • 16. 16 DOCKER SLAVES • No need to install software on Jenkins nodes • Use multiple versions of the same tool • Possibility to use existing containers based on Dockerfile content
  • 18. 18 SUMMARY • Finally nice pipelines! • The way to go with Jenkins • Many of Jenkins plugins already compatible • Pipeline as code! • Versioned • Code sharing • New UI stuff is still broken • Endless possibilities – can be complex and painful