SlideShare a Scribd company logo
Pragmatic Continuous Delivery

          Neeme Praks
           @nemecec

      LiveRebel Product Lead
          ZeroTurnaround
About me
•Java developer 10+ years
•Java apps support!
•Java dev infra engineer
•Analyst, architect
•Team Lead
•Product Lead
About ZeroTurnarond
  Developer
 productivity
    tool:


   Java app
 deployment
     tool:
Today

•Reasons for the pipeline
•Tools used
•Overview of the pipeline
•Review the details
•Run it!
Fedex

•
Package
•
Dropoff
•
Transfer
•
Delivery
•
Profit!
Fedex       Java EE

•
Package    •Package
•
Dropoff    •Test
•
Transfer   •Approve
•
Delivery   •Deploy
•
Profit!     •Profit!
Questions
•How do you package the
 application?
•Where did it come from?
•Where does it go?
•How does it get deployed?
•What exactly is in prod now?
A pipeline?




              Source: http://startupblog.files.wordpress.com/2008/09/pipeline1.jpg
Continuous Delivery
pipeline




      Source: http://studentthinktank.eu/wp-content/uploads/2012/02/03_TURKMEN-PIPELINE.jpg
Philosophy

•Automate
•Record
•Test and monitoring
•Recover
The sample pipeline
•Currently available tools
•Preferably open-source
•3 weeks to build
•DIY pipeline
   google for “pragmatic continuous delivery”
The tools


•Orchestration Platform
•Artifact Repository
•Delivery Manager
Jenkins
   +plugins
(OSS Continuous Integration Server)
Nexus
(OSS/Commercial Artifact Repository)
LiveRebel
(Commercial Delivery Manager for Java EE)
The tools in the pipeline
Artifacts in the pipeline
• WAR
• Trace file
   [BUILD]
   Build: 221
   Jenkins URL: http://localhost:2001/job/build/221/
   Hg revision: f78504a525a617ad319e75bb288c24bdcb325794
   Hg log:
   changeset: 40:f78504a525a6
   tag:      tip
   user:      Jevgeni Kabanov <jevgeni@zeroturnaround.com>
   date:      Tue Oct 09 13:16:26 2012 +0000
   summary: commented out check for HOTPATCH mode - we can now make health checks from localhost

   [TEST]
   Jenkins URL: http://localhost:2001/job/automatic-tests/161/
   Automated Tests Passed!!!
   [QA]
   Manual tests passed!!!
   [RC]
   Marked as RC
Pipeline
phases
Build phase
Test phase
QA phase
Production phase
Dirty details
 in Jenkins
Pipeline in
  action
http://cddemo.zeroturnaround.com/lr-demo/
Questions revisited
•How do you package the
 application?
•Where did it come from?
•Where does it go?
•How does it get deployed?
•What exactly is in prod now?
Questions revisited


   Build pipeline has all the
           answers!
Things Not Covered


•Database
•Configuration & Environment
•Tests & Monitoring
No way my boss let’s me do this!
No way my boss let’s me do this!


•Changing process is hard
No way my boss let’s me do this!


•Changing process is hard
•SOLUTION: Sneak it in :)
No way my boss let’s me do this!


•Changing process is hard
•SOLUTION: Sneak it in :)
•Create a workflow that
 captures current process
No way my boss let’s me do this!


•Changing process is hard
•SOLUTION: Sneak it in :)
•Create a workflow that
 captures current process
•Then Automate!
Conclusions
•Jenkins jobs represent the
 workflow
•Nexus is a sync-point for long-
 running workflows
•LiveRebel does updates
•Manual flows with email/REST
•Tracking with scripts & text files
Pragmatic Continuous Delivery
             Neeme Praks
               @nemecec
        LiveRebel Product Lead
            ZeroTurnaround

             Want more?

     http://zeroturnaround.com
Google: “pragmatic continuous delivery”
Q&A

More Related Content

PPTX
#nostaging - Software Circus - Amsterdam, 2-9-2016
PPTX
The Key Components of Adopting CI The OpenStack Way
PDF
Continuous delivery of your legacy application
PPTX
Speed up your regression and reduce cost load with Selenoid + K8s + ReportPortal
PDF
Practical continuous quality gates for development process
PDF
TestCorner #22 - How DevOps helps QA daily works​
 
PDF
London Atlassian User Group - February 2014
KEY
Avoiding integration hell
#nostaging - Software Circus - Amsterdam, 2-9-2016
The Key Components of Adopting CI The OpenStack Way
Continuous delivery of your legacy application
Speed up your regression and reduce cost load with Selenoid + K8s + ReportPortal
Practical continuous quality gates for development process
TestCorner #22 - How DevOps helps QA daily works​
 
London Atlassian User Group - February 2014
Avoiding integration hell

What's hot (20)

PDF
SeleniumCamp 2015 Andrii Soldatenko
PDF
PyCon Ukraine 2014
PPTX
QA Fest 2018. Сергей Король. REACTive automation: how to avoid shooting yours...
PDF
Learn Key Insights from The State of Web Application Testing Research Report
PPTX
Alm with tfs 2013
PDF
An almost complete continuous delivery pipeline including configuration manag...
PDF
Sencha Roadshow 2017: Sencha Upgrades - The Good. The Bad. The Ugly - Eva Luc...
PDF
Deployment Automation - My journey at Peazie
PDF
Sencha Roadshow 2017: What's New in Sencha Test
PDF
LiveRebel + Pragmatic Continuous Delivery (Arcusys)
KEY
Cloud tools
PDF
Андрей Солдатенко. Разработка высокопроизводительныx функциональных тестов д...
PDF
Continuous Testing
PDF
Gradle Show and Tell
PPTX
Continuous Deployment to the cloud
PPTX
Selenoid & Allure - how to make them work together?
PDF
Testing and Software Writer a year later
PDF
Continuous delivery with open source tools
KEY
improving the performance of Rails web Applications
PDF
Agile North East Agile + DevOps by Craig Pearson of CAP Project Services
SeleniumCamp 2015 Andrii Soldatenko
PyCon Ukraine 2014
QA Fest 2018. Сергей Король. REACTive automation: how to avoid shooting yours...
Learn Key Insights from The State of Web Application Testing Research Report
Alm with tfs 2013
An almost complete continuous delivery pipeline including configuration manag...
Sencha Roadshow 2017: Sencha Upgrades - The Good. The Bad. The Ugly - Eva Luc...
Deployment Automation - My journey at Peazie
Sencha Roadshow 2017: What's New in Sencha Test
LiveRebel + Pragmatic Continuous Delivery (Arcusys)
Cloud tools
Андрей Солдатенко. Разработка высокопроизводительныx функциональных тестов д...
Continuous Testing
Gradle Show and Tell
Continuous Deployment to the cloud
Selenoid & Allure - how to make them work together?
Testing and Software Writer a year later
Continuous delivery with open source tools
improving the performance of Rails web Applications
Agile North East Agile + DevOps by Craig Pearson of CAP Project Services
Ad

Similar to Pragmatic Continuous Delivery - ReaktorDevDay 2012 (20)

KEY
Continuous Delivery Using Jenkins
PDF
TYPO3 Camp Stuttgart 2015 - Continuous Delivery with Open Source Tools
PDF
Start with passing tests (tdd for bugs) v0.5 (22 sep 2016)
PPTX
Taking Database Development to the 21st Century
PDF
Actions rules and workflow in alfresco
PDF
Codifying the Build and Release Process with a Jenkins Pipeline Shared Library
PPTX
Story Testing Approach for Enterprise Applications using Selenium Framework
PPTX
Dev/Test scenarios in DevOps world
PPTX
Continuous Testing using Shippable and Docker
PDF
Succesful testing-continuous-delivery-testnet
PDF
Successful testing continuous delivery (Testnet 2013)
PDF
Puppet Camp Paris 2014: Achieving Continuous Delivery and DevOps with Puppet
PDF
Achieving Continuous Delivery with Puppet
PDF
CI doesn’t start with Jenkins
PPTX
Automated Acceptance Testing from Scratch
PDF
Continuous Deployment of your Application @SpringOne
PPTX
Continuous database deployment
PDF
Succesful Testing The Continuous Delivery Process
PPTX
Performance Tuning in the Trenches
PPTX
[Japan Selenium User Community in Remote] Test Automation Journey
Continuous Delivery Using Jenkins
TYPO3 Camp Stuttgart 2015 - Continuous Delivery with Open Source Tools
Start with passing tests (tdd for bugs) v0.5 (22 sep 2016)
Taking Database Development to the 21st Century
Actions rules and workflow in alfresco
Codifying the Build and Release Process with a Jenkins Pipeline Shared Library
Story Testing Approach for Enterprise Applications using Selenium Framework
Dev/Test scenarios in DevOps world
Continuous Testing using Shippable and Docker
Succesful testing-continuous-delivery-testnet
Successful testing continuous delivery (Testnet 2013)
Puppet Camp Paris 2014: Achieving Continuous Delivery and DevOps with Puppet
Achieving Continuous Delivery with Puppet
CI doesn’t start with Jenkins
Automated Acceptance Testing from Scratch
Continuous Deployment of your Application @SpringOne
Continuous database deployment
Succesful Testing The Continuous Delivery Process
Performance Tuning in the Trenches
[Japan Selenium User Community in Remote] Test Automation Journey
Ad

Recently uploaded (20)

PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
GDG Cloud Iasi [PUBLIC] Florian Blaga - Unveiling the Evolution of Cybersecur...
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PPT
Teaching material agriculture food technology
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
CIFDAQ's Market Insight: SEC Turns Pro Crypto
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
Network Security Unit 5.pdf for BCA BBA.
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PPTX
breach-and-attack-simulation-cybersecurity-india-chennai-defenderrabbit-2025....
PDF
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
Approach and Philosophy of On baking technology
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
Review of recent advances in non-invasive hemoglobin estimation
PPTX
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
Dropbox Q2 2025 Financial Results & Investor Presentation
GDG Cloud Iasi [PUBLIC] Florian Blaga - Unveiling the Evolution of Cybersecur...
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Teaching material agriculture food technology
Per capita expenditure prediction using model stacking based on satellite ima...
CIFDAQ's Market Insight: SEC Turns Pro Crypto
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Unlocking AI with Model Context Protocol (MCP)
Network Security Unit 5.pdf for BCA BBA.
Understanding_Digital_Forensics_Presentation.pptx
breach-and-attack-simulation-cybersecurity-india-chennai-defenderrabbit-2025....
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
“AI and Expert System Decision Support & Business Intelligence Systems”
Approach and Philosophy of On baking technology
The AUB Centre for AI in Media Proposal.docx
NewMind AI Weekly Chronicles - August'25 Week I
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Review of recent advances in non-invasive hemoglobin estimation
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication

Pragmatic Continuous Delivery - ReaktorDevDay 2012

Editor's Notes

  • #2: Continuous Delivery - a way to automate your development and production environment so you can deliver (small) batches of functionality to production in a safe and predictable way.\n\n\n
  • #3: Foremost: problem solver\nStarted as a developer and have been a Java developer for 10+ years and occasionally also handling the operations side of software delivery - I have seen and felt the pain of manual updates. After all that, I wanted to help out operations and joined ZeroTurnaround to work on LiveRebel product - the deployment tool for Java applications.\n\nThis talk is based on a talk given by ZT CEO, Jevgeni Kabanov\n
  • #4: Shameless plug!\n\nJRebel - no more waiting for redeploys while developing!\nLiveRebel - predictable application updates without users noticing!\n\nApproach me during or after the conference:\nI can give a quick demo\nfree trial licenses available! Free licenses for Scala devs!\n\nBTW, we&amp;#x2019;re hiring! If you like hacking the JVM - get in touch!\n
  • #5: Why we built the pipeline in this particular way\n
  • #6: Every step is trackable, every failure is recoverable\n
  • #7: On a high level, Java EE seems similar. And easy.\n\nYet everyone complains, why?\n\nUsually, new applications are rushed into production\n\nAfter a while, you start to get questions like...(next slide)\n
  • #8: We did a survey, asking ~700 people, if they knew answers to those questions.\n\nConclusion:\nThere is no standard solution - each environment is different.\nWorse yet, typically these processes are not automated!\n\n
  • #9: Doing all these steps manually: each segment is automated, but human error creeps in between segments\n
  • #10: Automated pipeline - humans are gatekeepers, but no manual processes.\n\nYou push code in from one end and functionality is pushed to users from the other end. \n\nHow do we achieve this &amp;#x201C;pipe dream&amp;#x201D;?\n
  • #11: Automate - eliminate human error (human is still in control).\nRecord - to be able to learn from failures, to figure out where something went wrong.\nTests - not just unit, integration or smoke tests. Also monitoring! Little difference between good tests and good monitoring?\nRecover - always have a plan B. If you cannot roll back automatically, you need to know how to roll back manually.\n\n
  • #12: All tools are available now.\nYou can use your own tools, same concept still applies.\n\nIt took us 3 weeks to build, but a lot of that was wrestling with Jenkins quirks.\n\nTo help you in building your own pipeline, we have prepared a step-by-step tutorial, available on our homepage.\n
  • #13: Orchestration - something to run the pipeline steps\nRepository - something to hold the artifacts\nDelivery Manager - something to deploy the artifacts\n\nTesting and monitoring is out of scope.\n\n
  • #14: Jenkins - freely available, open source. Most popular.\nTeamcity/Bamboo are just as good\n\nPlugins: build pipeline plugin, email-ext plugin\nBuild pipeline is the best there is (currently). There is also &amp;#x201C;flow&amp;#x201D; plugin, but it lacks documentation.\n\n
  • #15: Artifactory is an alternative\n\nWe have set up different repositories for BUILD, QA, RC and TEST - this is used to keep different pipeline stages as independent as possible.\n
  • #16: You can also use Cargo or just custom scripting.\nLiveRebel can do on-the-fly updates or rolling restarts.\n\n
  • #17: Small arrows signify artifact movement.\n\nEach time we upload an artifact, we upload it to a different repository: build, test, QA, release candidate\n
  • #18: Artifacts flowing through the pipeline\n\nNotice the different stages in trace file.\n
  • #19: Pipeline phases in detail - often they consist of more than one job in Jenkins.\n
  • #20: This is the beginning of a trail of how artifact progresses through the pipeline.\n\ndemo.chat.version is defined in pom.xml as artifact version\nBUILD_NUMBER is built-in Jenkins environment variable.\n\nUpload WAR and trail.\n\nUpload artifacts to BUILD repository - separate repository to catch any errors early (later steps fail to download artifact).\nYou can also use Jenkins to propagate the artifact, but: no outside access and no permanent storage.\n\nTrigger parameterized build - so we can use same build number throughout the pipeline.\n\n
  • #21: two jobs: deploy-test and automatic-tests\n\nthis and all subsequent jobs have no source - they just operate with Nexus\n\ndownload artifacts from BUILD repository\nWAR and build.txt\n\nLiveRebel Jenkins plugin\npreviously downloaded WAR\noverrides application name and adds build number - to keep different versions separate\nuploads also build.txt\ncustom context path\ntest server\n\ntrigger next job: passes on current parameters (original build number)\n\nautomatic-tests:\nexecute very simple test - typically you would do Selenium tests instead.\nrecord the result in trace\n\nget WAR from BUILD repository\nupload it to TEST repository (with trace file, notice that classifier is different! otherwise local repo caches it forever)\n\n
  • #22: build pipeline plugin is buggy - environment is not always propagated!\nwe still need the connection, so that the pipeline plugin shows it as one single pipeline\n\nsend e-mail with URL to trigger next build through API to make it easier for casual users (no need to go to Jenkins UI)\ngotcha: e-mail plugin uses a different syntax for referring to environment variables\n\nthe job triggered via API needs to be parameterized\n\n
  • #23: \n
  • #24: \n
  • #25: \n
  • #26: \n
  • #27: Information formalized in the pipeline.\n\nAnd, for each build, you know where it has been!\n
  • #28: \n
  • #29: Sneak it in by not changing the current process - automate it instead!\n
  • #30: Sneak it in by not changing the current process - automate it instead!\n
  • #31: Sneak it in by not changing the current process - automate it instead!\n
  • #32: Sneak it in by not changing the current process - automate it instead!\n
  • #33: \n
  • #34: \n
  • #35: \n