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
@andreikrasnitski
• 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
DCSF19 Adding a Modern API Layer to ‘Dockerized’ Legacy Apps
PDF
DCSF 19 Microservices API: Routing Across Any Infrastructure
PDF
DCSF 19 Building Your Development Pipeline
PDF
DCSF 19 Kubernetes and Container Storage Interface Update
ODP
DevOps @ OpenShift Online
PDF
DockerCon SF 2015: DHE/DTR
PDF
DockerCon SF 2015: Docker at Lyft
Continuous Integration and Deployment with Jenkins for PCF
DCSF19 Adding a Modern API Layer to ‘Dockerized’ Legacy Apps
DCSF 19 Microservices API: Routing Across Any Infrastructure
DCSF 19 Building Your Development Pipeline
DCSF 19 Kubernetes and Container Storage Interface Update
DevOps @ OpenShift Online
DockerCon SF 2015: DHE/DTR
DockerCon SF 2015: Docker at Lyft

What's hot (20)

PDF
DCEU 18: 5 Patterns for Success in Application Transformation
PDF
On Prem Container Cloud - Lessons Learned
PDF
DockerCon SF 2015: How to Build a Secure DevOps Environment for the Government
PDF
DockerCon SF 2015: From Months to Minutes
PDF
Windows container security
PPTX
DEVNET-1183 OpenShift + Kubernetes + Docker
PDF
Automation CI CD with Gitlab, Java, docker on Hidora - Jelastic
PDF
Multi-cloud Kubernetes BCDR with Velero
PDF
DockerCon SF 2015: Docker in the New York Times Newsroom
PDF
5 patterns for success for application transformation
PDF
DockerCon SF 2015: Ben Golub's Keynote Day 1
PDF
Cost-effective Compute Clusters with Spot and Pre-emptible Instances - KubeCo...
PDF
Java in a world of containers
PDF
OSDC 2018 | Git things done with GitLab by Gabriel Hartmann and Nicole Lang
ODP
Openshift presentation
PDF
Containers & Cloud Native Ops Cloud Foundry Approach
PDF
DCSF 19 Developing Apps with Containers, Functions and Cloud Services
PPTX
Top 5 Considerations for Successful Deployment of Kubernetes
PDF
Automating CICD Pipeline with GitLab and Docker Containers for Java Applications
PDF
KUBERNETES AS A FRAMEWORK FOR WRITING DEVOPS & MICROSERVICES TOOLING
DCEU 18: 5 Patterns for Success in Application Transformation
On Prem Container Cloud - Lessons Learned
DockerCon SF 2015: How to Build a Secure DevOps Environment for the Government
DockerCon SF 2015: From Months to Minutes
Windows container security
DEVNET-1183 OpenShift + Kubernetes + Docker
Automation CI CD with Gitlab, Java, docker on Hidora - Jelastic
Multi-cloud Kubernetes BCDR with Velero
DockerCon SF 2015: Docker in the New York Times Newsroom
5 patterns for success for application transformation
DockerCon SF 2015: Ben Golub's Keynote Day 1
Cost-effective Compute Clusters with Spot and Pre-emptible Instances - KubeCo...
Java in a world of containers
OSDC 2018 | Git things done with GitLab by Gabriel Hartmann and Nicole Lang
Openshift presentation
Containers & Cloud Native Ops Cloud Foundry Approach
DCSF 19 Developing Apps with Containers, Functions and Cloud Services
Top 5 Considerations for Successful Deployment of Kubernetes
Automating CICD Pipeline with GitLab and Docker Containers for Java Applications
KUBERNETES AS A FRAMEWORK FOR WRITING DEVOPS & MICROSERVICES TOOLING
Ad

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

PPTX
UNITde II - Docker-Containerization.pptx,
PDF
VSphere Integrated Containers v3.0
PDF
Efficient Parallel Testing with Docker by Laura Frank
PDF
Eine Einführung in Docker
PPTX
Develop and deploy Kubernetes applications with Docker - IBM Index 2018
PDF
Alibaba Cloud Conference 2016 - Docker Open Source
PDF
Building Efficient Parallel Testing Platforms with Docker
PDF
Introduction to Apache Mesos and DC/OS
PPTX
Containers, Serverless and Functions in a nutshell
PPTX
Adf with docker
PPTX
Introduction to ASP.NET 5
PDF
Efficient Parallel Testing with Docker
PDF
Innovating faster with SBT, Continuous Delivery, and LXC
PDF
From Virtual Machines to Containers
PDF
JUC Europe 2015: From Virtual Machines to Containers: Achieving Continuous In...
PPTX
Building Distributed Systems without Docker, Using Docker Plumbing Projects -...
PDF
Kubernetes on aws
PPTX
Basic Jenkins Guide.pptx
PDF
Evénement Docker Paris: Anticipez les nouveaux business model et réduisez vos...
PDF
DevOps'n the Operating System
UNITde II - Docker-Containerization.pptx,
VSphere Integrated Containers v3.0
Efficient Parallel Testing with Docker by Laura Frank
Eine Einführung in Docker
Develop and deploy Kubernetes applications with Docker - IBM Index 2018
Alibaba Cloud Conference 2016 - Docker Open Source
Building Efficient Parallel Testing Platforms with Docker
Introduction to Apache Mesos and DC/OS
Containers, Serverless and Functions in a nutshell
Adf with docker
Introduction to ASP.NET 5
Efficient Parallel Testing with Docker
Innovating faster with SBT, Continuous Delivery, and LXC
From Virtual Machines to Containers
JUC Europe 2015: From Virtual Machines to Containers: Achieving Continuous In...
Building Distributed Systems without Docker, Using Docker Plumbing Projects -...
Kubernetes on aws
Basic Jenkins Guide.pptx
Evénement Docker Paris: Anticipez les nouveaux business model et réduisez vos...
DevOps'n the Operating System
Ad

More from Altoros (20)

PDF
Maturing with Kubernetes
PDF
Kubernetes Platform Readiness and Maturity Assessment
PDF
Journey Through Four Stages of Kubernetes Deployment Maturity
PPTX
SGX: Improving Privacy, Security, and Trust Across Blockchain Networks
PPTX
Using the Cloud Foundry and Kubernetes Stack as a Part of a Blockchain CI/CD ...
PPTX
A Zero-Knowledge Proof: Improving Privacy on a Blockchain
PPTX
Crap. Your Big Data Kitchen Is Broken.
PDF
Containers and Kubernetes
PPTX
Distributed Ledger Technology for Over-the-Counter Trading
PPTX
5-Step Deployment of Hyperledger Fabric on Multiple Nodes
PPTX
Deploying Kubernetes on GCP with Kubespray
PPTX
UAA for Kubernetes
PPTX
Troubleshooting .NET Applications on Cloud Foundry
PPTX
How to Never Leave Your Deployment Unattended
PPTX
Cloud Foundry Monitoring How-To: Collecting Metrics and Logs
PDF
Smart Baggage Tracking: End-to-End Sensor-Based Solution
PPTX
Navigating the Ecosystem of Pivotal Cloud Foundry Tiles
PPTX
AI as a Catalyst for IoT
PPTX
Over-Engineering: Causes, Symptoms, and Treatment
PPTX
What's New in the Cloud Foundry Ecosystem?
Maturing with Kubernetes
Kubernetes Platform Readiness and Maturity Assessment
Journey Through Four Stages of Kubernetes Deployment Maturity
SGX: Improving Privacy, Security, and Trust Across Blockchain Networks
Using the Cloud Foundry and Kubernetes Stack as a Part of a Blockchain CI/CD ...
A Zero-Knowledge Proof: Improving Privacy on a Blockchain
Crap. Your Big Data Kitchen Is Broken.
Containers and Kubernetes
Distributed Ledger Technology for Over-the-Counter Trading
5-Step Deployment of Hyperledger Fabric on Multiple Nodes
Deploying Kubernetes on GCP with Kubespray
UAA for Kubernetes
Troubleshooting .NET Applications on Cloud Foundry
How to Never Leave Your Deployment Unattended
Cloud Foundry Monitoring How-To: Collecting Metrics and Logs
Smart Baggage Tracking: End-to-End Sensor-Based Solution
Navigating the Ecosystem of Pivotal Cloud Foundry Tiles
AI as a Catalyst for IoT
Over-Engineering: Causes, Symptoms, and Treatment
What's New in the Cloud Foundry Ecosystem?

Recently uploaded (20)

PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
Advanced IT Governance
PDF
cuic standard and advanced reporting.pdf
PPTX
Cloud computing and distributed systems.
PDF
solutions_manual_-_materials___processing_in_manufacturing__demargo_.pdf
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
PDF
Empathic Computing: Creating Shared Understanding
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
Approach and Philosophy of On baking technology
PPT
Teaching material agriculture food technology
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Advanced methodologies resolving dimensionality complications for autism neur...
Advanced IT Governance
cuic standard and advanced reporting.pdf
Cloud computing and distributed systems.
solutions_manual_-_materials___processing_in_manufacturing__demargo_.pdf
NewMind AI Weekly Chronicles - August'25 Week I
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Understanding_Digital_Forensics_Presentation.pptx
Review of recent advances in non-invasive hemoglobin estimation
Per capita expenditure prediction using model stacking based on satellite ima...
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
Empathic Computing: Creating Shared Understanding
Dropbox Q2 2025 Financial Results & Investor Presentation
Approach and Philosophy of On baking technology
Teaching material agriculture food technology
The AUB Centre for AI in Media Proposal.docx
Reach Out and Touch Someone: Haptics and Empathic Computing
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
The Rise and Fall of 3GPP – Time for a Sabbatical?
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...

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 @andreikrasnitski • 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