SlideShare a Scribd company logo
1 of 45
Continuous Delivery
Daily releases to production
Anders Lundsgård
Peter Sandberg
Engineers, Scania Connected Services
Our highest priority is to satisfy the customer through
early and continuous delivery of valuable software.
from ”the agile manifesto”
Continuous Delivery
Deployment
Release
Quality
Do you have the guts to deploy
to production 50 times a day!?
This is Agile!
© Bestoutcome Ltd 2014
This is Agile!
Weeks
Months!
Prod
Last Mile
http://www.perforce.com/continuous-delivery-report
Why Continuous Delivery?
Major measure for Continuous Delivery
CYCLE TIME
”How long would it take your organization to
deploy a change [to production] that involves
just one single line of code? Do you do this on a
repeatable, reliable basis?”
Mary and Tom Poppendieck
Implementing Lean Software Development
Smartphone access
to driver/vehicle
data
Scania Connected Services
FMP
Communication
Servers
Web Servers
Monitoring
Report
Email and
SMS
remiders/
alarms
Fleet
Management
Portal
Remote Diagnosis
Current status message
every minute
Web Service
Interface
FMP
MPMP
Key koncepts for CD
• Test Driven Development
• Deployment Pipeline
• Continuous Integration
• Configuration Management
• Feature Toggles
• A/B tests
• Always On
• Tear the walls
Cultural
changes
Technical
patterns
Technical patterns
QA in Continuous Delivery
Test Driven Development
Design Code Test
CodeTest
Design
Deploy
Deploy
Code in to VCS Manual work
Prod
Prod
Test Pyramid
Unit Tests
Integration Tests
GUI
Tests
Manual
”inspection”
Test Ice Cream?
Unit
Tests
Integration Tests
GUI Tests
Manual Regression
Test movement
Communication via error reports Communication face to face
Tests executed in desktop
environment
Tests into the Deployment Pipeline
GUI-oriented tests Tests towards service layer
Test specific dev environment Same dev environment as developers
Separated test teams Embedded testers
Deployment Pipeline
Deployment Pipeline
Commit Stage Acceptance Stage Load Stage Deploy Stage
Compile Unit Test Analysis Packaging Acc.
Deploy
Acc. Tests Exploraty
Tests
Load
Tests
Perf
Tests
Staging
Deploy
Prod
Deploy
...
..
…..
Deployment Pipeline
Commit Stage Acceptance Stage Load Stage Deploy Stage
Compile Unit Test Analysis Packaging Acc.
Deploy
Acc. Tests Exploraty
Tests
Load
Tests
Perf
Tests
Staging
Deploy
Prod
Deploy
...
..
…..
NO IDE Build, Test or Deploy!!
Continuous Integration
• Maintain a Single Source Repository
• Automate the Build
• Make Your Build Self-Testing
• Everyone Commits To the Mainline Every Day
• Every Commit Should Build the Mainline on an
Integration Machine
• Keep the Build Fast
• Test in a Clone of the Production Environment
• Make it Easy for Anyone to Get the Latest Executable
• Everyone can see what's happening
• Automate Deployment
Configuration Management
R&D IT
Config file here
and there…
Click here and
there …
First script #1
and then script
#2…
Failover this
and that…
Register key
here and
there …
First alias #1
and then alias
#2…
Release plans
Single source of truth
VCS
Feature Branch
Dev Branch #1
Main
Release Branch #1
Dev Branch #2
Feature Toggle
Main
GUI
Business
Logic
Database
Feature Toggles
A/B tests
A/B tests
20%
of users
Always On
DB
Web1 Web2
Load balancer
1. Add new schema
2. Write to both schemas
3. Backfill historical data
4. Read from new schema
5. Remove writes to old schema
6. Remove old schema
Cultural change
1. Tear the walls
2. Empower the engineers
DevOps
Operations people are rewarded for things
not going wrong.
Developers are rewarded for getting
releases out.
And those two goals are in conflict.
Jez Humble: co-author of the book: Continuous Delivery
If I had an idea last night…
…I coded it up this morning…
…I got it on the site this afternoon…
and tomorrow I got data.
In a couple of weeks I’ve learned as
much as I would have in over a year
in a regular system.
http://www.infoq.com/presentations/Facebook-Moving-Fast-at-Scale
At the end of the day it is the person
who writes the code who is responsible
for whether or not it works.
Are we making
Is Prod
doing well?
Code
metrics
Implemented CD i 2 months!
The Software Revolution Behind LinkedIn’s Gushing Profits
- We wanted to be at the point where… as soon as they were checking in
their code… it was qualified and releasable…
- We were able to scale the team to hundreds of developers.
- It was a pretty big risk the business took, to say to its engineering team,
you’re going to run across a bridge and burn it behind you.
2011
Kevin Scott
Resources
ISBN-13:978-0321601919
www.continuousdelivery.eu
Contact
• Peter Sandberg
– peter.sandberg@scania.com
• Anders Lundsgård
– anders.lundsgard@scania.com

More Related Content

Viewers also liked

Sedetur calendario de eventos abril
Sedetur calendario de eventos abrilSedetur calendario de eventos abril
Sedetur calendario de eventos abril
luigikb
 
Peter Georen, KTH Research Concept Vehicles
Peter Georen, KTH Research Concept Vehicles Peter Georen, KTH Research Concept Vehicles
Peter Georen, KTH Research Concept Vehicles
Peter Georen
 
Families & Friends of Murder Victims October 2012 newsletter
Families & Friends of Murder Victims   October 2012 newsletterFamilies & Friends of Murder Victims   October 2012 newsletter
Families & Friends of Murder Victims October 2012 newsletter
Rose Madsen
 
Plantemos el árbol
Plantemos el árbolPlantemos el árbol
Plantemos el árbol
elvisol
 
La mejores 100 innovaciones educativas
La mejores 100 innovaciones educativasLa mejores 100 innovaciones educativas
La mejores 100 innovaciones educativas
Contagia Digital
 

Viewers also liked (14)

Mobilservice Omnia Agg2
Mobilservice Omnia Agg2Mobilservice Omnia Agg2
Mobilservice Omnia Agg2
 
Reggae summer network 2012
Reggae summer network 2012Reggae summer network 2012
Reggae summer network 2012
 
Microcurrículo - Seminario Área Administrativa
Microcurrículo - Seminario Área AdministrativaMicrocurrículo - Seminario Área Administrativa
Microcurrículo - Seminario Área Administrativa
 
Coordinated Frequency Control of Wind Turbines in Power Systems with High Win...
Coordinated Frequency Control of Wind Turbines in Power Systems with High Win...Coordinated Frequency Control of Wind Turbines in Power Systems with High Win...
Coordinated Frequency Control of Wind Turbines in Power Systems with High Win...
 
Push button marketing
Push button marketingPush button marketing
Push button marketing
 
Sedetur calendario de eventos abril
Sedetur calendario de eventos abrilSedetur calendario de eventos abril
Sedetur calendario de eventos abril
 
Peter Georen, KTH Research Concept Vehicles
Peter Georen, KTH Research Concept Vehicles Peter Georen, KTH Research Concept Vehicles
Peter Georen, KTH Research Concept Vehicles
 
Traginers 2015
Traginers 2015Traginers 2015
Traginers 2015
 
digital business management
digital business managementdigital business management
digital business management
 
Families & Friends of Murder Victims October 2012 newsletter
Families & Friends of Murder Victims   October 2012 newsletterFamilies & Friends of Murder Victims   October 2012 newsletter
Families & Friends of Murder Victims October 2012 newsletter
 
Plantemos el árbol
Plantemos el árbolPlantemos el árbol
Plantemos el árbol
 
Cold hawaii-film-festival 2017- Sponsor Folder
Cold hawaii-film-festival 2017- Sponsor FolderCold hawaii-film-festival 2017- Sponsor Folder
Cold hawaii-film-festival 2017- Sponsor Folder
 
La mejores 100 innovaciones educativas
La mejores 100 innovaciones educativasLa mejores 100 innovaciones educativas
La mejores 100 innovaciones educativas
 
The Central Mississippi Advertiser
The Central Mississippi AdvertiserThe Central Mississippi Advertiser
The Central Mississippi Advertiser
 

More from Anders Lundsgård

More from Anders Lundsgård (10)

The DevOps Journey in an Enterprise - DOES 2021
The DevOps Journey in an Enterprise - DOES 2021The DevOps Journey in an Enterprise - DOES 2021
The DevOps Journey in an Enterprise - DOES 2021
 
DevOps journey at Scania - Visiting Migrationsverket
DevOps journey at Scania - Visiting MigrationsverketDevOps journey at Scania - Visiting Migrationsverket
DevOps journey at Scania - Visiting Migrationsverket
 
Scania's DevSecOps approach - Gamifying Security - auto:CODE
Scania's DevSecOps approach - Gamifying Security - auto:CODEScania's DevSecOps approach - Gamifying Security - auto:CODE
Scania's DevSecOps approach - Gamifying Security - auto:CODE
 
Cloud @ Scania - Södertälje Science Week
Cloud @ Scania - Södertälje Science WeekCloud @ Scania - Södertälje Science Week
Cloud @ Scania - Södertälje Science Week
 
The Cloud Journey in an Enterprise - IDC Multicloud - Stockholm November 20, ...
The Cloud Journey in an Enterprise - IDC Multicloud - Stockholm November 20, ...The Cloud Journey in an Enterprise - IDC Multicloud - Stockholm November 20, ...
The Cloud Journey in an Enterprise - IDC Multicloud - Stockholm November 20, ...
 
The Cloud Journey in an Enterprise - CoDe-Conf - Copenhagen October 11, 2018
The Cloud Journey in an Enterprise - CoDe-Conf - Copenhagen October 11, 2018 The Cloud Journey in an Enterprise - CoDe-Conf - Copenhagen October 11, 2018
The Cloud Journey in an Enterprise - CoDe-Conf - Copenhagen October 11, 2018
 
The Cloud journey in an Enterprise - Delivery of Things World - Berlin April ...
The Cloud journey in an Enterprise - Delivery of Things World - Berlin April ...The Cloud journey in an Enterprise - Delivery of Things World - Berlin April ...
The Cloud journey in an Enterprise - Delivery of Things World - Berlin April ...
 
The DevOps journey in an Enterprise - CoDe-Conf. Stockholm September 14, 2017
The DevOps journey in an Enterprise - CoDe-Conf. Stockholm September 14, 2017The DevOps journey in an Enterprise - CoDe-Conf. Stockholm September 14, 2017
The DevOps journey in an Enterprise - CoDe-Conf. Stockholm September 14, 2017
 
BizDevOps Transformation, Metrics and Microservices at Scania, June 2017 in L...
BizDevOps Transformation, Metrics and Microservices at Scania, June 2017 in L...BizDevOps Transformation, Metrics and Microservices at Scania, June 2017 in L...
BizDevOps Transformation, Metrics and Microservices at Scania, June 2017 in L...
 
The DevOps Journey in an Enterprise, Scania - Delivery Of Things World 2017
The DevOps Journey in an Enterprise, Scania - Delivery Of Things World 2017The DevOps Journey in an Enterprise, Scania - Delivery Of Things World 2017
The DevOps Journey in an Enterprise, Scania - Delivery Of Things World 2017
 

Recently uploaded

Bring back lost lover in USA, Canada ,Uk ,Australia ,London Lost Love Spell C...
Bring back lost lover in USA, Canada ,Uk ,Australia ,London Lost Love Spell C...Bring back lost lover in USA, Canada ,Uk ,Australia ,London Lost Love Spell C...
Bring back lost lover in USA, Canada ,Uk ,Australia ,London Lost Love Spell C...
amilabibi1
 
Jual obat aborsi Jakarta 085657271886 Cytote pil telat bulan penggugur kandun...
Jual obat aborsi Jakarta 085657271886 Cytote pil telat bulan penggugur kandun...Jual obat aborsi Jakarta 085657271886 Cytote pil telat bulan penggugur kandun...
Jual obat aborsi Jakarta 085657271886 Cytote pil telat bulan penggugur kandun...
ZurliaSoop
 
Proofreading- Basics to Artificial Intelligence Integration - Presentation:Sl...
Proofreading- Basics to Artificial Intelligence Integration - Presentation:Sl...Proofreading- Basics to Artificial Intelligence Integration - Presentation:Sl...
Proofreading- Basics to Artificial Intelligence Integration - Presentation:Sl...
David Celestin
 
Uncommon Grace The Autobiography of Isaac Folorunso
Uncommon Grace The Autobiography of Isaac FolorunsoUncommon Grace The Autobiography of Isaac Folorunso
Uncommon Grace The Autobiography of Isaac Folorunso
Kayode Fayemi
 
Unlocking Exploration: Self-Motivated Agents Thrive on Memory-Driven Curiosity
Unlocking Exploration: Self-Motivated Agents Thrive on Memory-Driven CuriosityUnlocking Exploration: Self-Motivated Agents Thrive on Memory-Driven Curiosity
Unlocking Exploration: Self-Motivated Agents Thrive on Memory-Driven Curiosity
Hung Le
 

Recently uploaded (17)

Bring back lost lover in USA, Canada ,Uk ,Australia ,London Lost Love Spell C...
Bring back lost lover in USA, Canada ,Uk ,Australia ,London Lost Love Spell C...Bring back lost lover in USA, Canada ,Uk ,Australia ,London Lost Love Spell C...
Bring back lost lover in USA, Canada ,Uk ,Australia ,London Lost Love Spell C...
 
SOLID WASTE MANAGEMENT SYSTEM OF FENI PAURASHAVA, BANGLADESH.pdf
SOLID WASTE MANAGEMENT SYSTEM OF FENI PAURASHAVA, BANGLADESH.pdfSOLID WASTE MANAGEMENT SYSTEM OF FENI PAURASHAVA, BANGLADESH.pdf
SOLID WASTE MANAGEMENT SYSTEM OF FENI PAURASHAVA, BANGLADESH.pdf
 
Jual obat aborsi Jakarta 085657271886 Cytote pil telat bulan penggugur kandun...
Jual obat aborsi Jakarta 085657271886 Cytote pil telat bulan penggugur kandun...Jual obat aborsi Jakarta 085657271886 Cytote pil telat bulan penggugur kandun...
Jual obat aborsi Jakarta 085657271886 Cytote pil telat bulan penggugur kandun...
 
Dreaming Music Video Treatment _ Project & Portfolio III
Dreaming Music Video Treatment _ Project & Portfolio IIIDreaming Music Video Treatment _ Project & Portfolio III
Dreaming Music Video Treatment _ Project & Portfolio III
 
Proofreading- Basics to Artificial Intelligence Integration - Presentation:Sl...
Proofreading- Basics to Artificial Intelligence Integration - Presentation:Sl...Proofreading- Basics to Artificial Intelligence Integration - Presentation:Sl...
Proofreading- Basics to Artificial Intelligence Integration - Presentation:Sl...
 
My Presentation "In Your Hands" by Halle Bailey
My Presentation "In Your Hands" by Halle BaileyMy Presentation "In Your Hands" by Halle Bailey
My Presentation "In Your Hands" by Halle Bailey
 
Zone Chairperson Role and Responsibilities New updated.pptx
Zone Chairperson Role and Responsibilities New updated.pptxZone Chairperson Role and Responsibilities New updated.pptx
Zone Chairperson Role and Responsibilities New updated.pptx
 
lONG QUESTION ANSWER PAKISTAN STUDIES10.
lONG QUESTION ANSWER PAKISTAN STUDIES10.lONG QUESTION ANSWER PAKISTAN STUDIES10.
lONG QUESTION ANSWER PAKISTAN STUDIES10.
 
ICT role in 21st century education and it's challenges.pdf
ICT role in 21st century education and it's challenges.pdfICT role in 21st century education and it's challenges.pdf
ICT role in 21st century education and it's challenges.pdf
 
Digital collaboration with Microsoft 365 as extension of Drupal
Digital collaboration with Microsoft 365 as extension of DrupalDigital collaboration with Microsoft 365 as extension of Drupal
Digital collaboration with Microsoft 365 as extension of Drupal
 
in kuwait௹+918133066128....) @abortion pills for sale in Kuwait City
in kuwait௹+918133066128....) @abortion pills for sale in Kuwait Cityin kuwait௹+918133066128....) @abortion pills for sale in Kuwait City
in kuwait௹+918133066128....) @abortion pills for sale in Kuwait City
 
Introduction to Artificial intelligence.
Introduction to Artificial intelligence.Introduction to Artificial intelligence.
Introduction to Artificial intelligence.
 
Uncommon Grace The Autobiography of Isaac Folorunso
Uncommon Grace The Autobiography of Isaac FolorunsoUncommon Grace The Autobiography of Isaac Folorunso
Uncommon Grace The Autobiography of Isaac Folorunso
 
Report Writing Webinar Training
Report Writing Webinar TrainingReport Writing Webinar Training
Report Writing Webinar Training
 
Dreaming Marissa Sánchez Music Video Treatment
Dreaming Marissa Sánchez Music Video TreatmentDreaming Marissa Sánchez Music Video Treatment
Dreaming Marissa Sánchez Music Video Treatment
 
AWS Data Engineer Associate (DEA-C01) Exam Dumps 2024.pdf
AWS Data Engineer Associate (DEA-C01) Exam Dumps 2024.pdfAWS Data Engineer Associate (DEA-C01) Exam Dumps 2024.pdf
AWS Data Engineer Associate (DEA-C01) Exam Dumps 2024.pdf
 
Unlocking Exploration: Self-Motivated Agents Thrive on Memory-Driven Curiosity
Unlocking Exploration: Self-Motivated Agents Thrive on Memory-Driven CuriosityUnlocking Exploration: Self-Motivated Agents Thrive on Memory-Driven Curiosity
Unlocking Exploration: Self-Motivated Agents Thrive on Memory-Driven Curiosity
 

Continuous Delivery - Scania Connected Services - NFI Testforum 2014

Editor's Notes

  1. What is CD?How to do CD?Who does CD?
  2. Testers not responsible for quality.Everyone is responsible for quality!
  3. http://my.gartner.com/portal/server.pt?open=512&objID=202&&PageID=5553&mode=2&in_hi_userid=2&cached=true&resId=2310016&ref=AnalystProfile