SlideShare a Scribd company logo
1 of 27
Introduction to CI/CD
Steve Mactaggart
State Manager - Victoria
Agenda
● What is CI and CD
● What makes good CI / CD
● How we get there
● Business benefits of it all….
What is CI and CD?
● Continuous Integration
○ An approach to be continually validating the state of a codebase
through automated testing.
○ Best achieved through integration with version control
● Continuous Delivery / Deployment
○ An approach to regularly deploying artifacts that successfully pass
the CI phase to ensure confidence around the deployment
Delivery vs Deployment
Continuous integration, continuous deployment,
and continuous delivery are like vectors that have the same
direction, but different magnitude.
Their goal is the same: make our software development and
release process faster and more robust.
The key difference between the three is in the scope of
automation applied.
Delivery vs Deployment
● Continuous Delivery
○ Automatically prepare and track a release to production
○ The desired outcome is that anyone with sufficient privileges to deploy a new
release can do so at any time in one or a few clicks. By eliminating nearly all
manual tasks, developers become more productive.
● Continuous Deployment
○ Every change in the source code is deployed to production automatically,
without explicit approval from a developer.
○ As long as it passes the quality controls
What does good look like?
What makes for good CI?
1. Decoupled stages
○ Each step in CI should do a single focused task
2. Repeatable
○ Automated in a way that is consistently repeatable
○ Tooling should work for local developers too – Local/Remote parity
3. Fail fast
○ Fail at the first sign of trouble
The test pyramid
https://martinfowler.com/bliki/TestPyramid.html
What makes for good CD?
1. Design with the system in mind
○ Cover as many parts of a deployment as possible
○ Application | Infrastructure | Configuration | Data
2. Pipelines
○ Continually increase confidence as you move towards production
3. Globally unique versions
○ Know the state of the system at any time
○ Be able to demonstrate difference between current and future state
CD Pipeline flow
DEV PRE PROD PRODUCTIONConfiguration
Infrastructure
Application
Bringing CI & CD together
Continuous
Integration
Knowing the artifacts
are Good
Knowing the
deployment is Good
Continuous
Delivery /
Deployment
Artifact
store
Full deployment pipeline
https://www.oreilly.com/learning/configuring-a-continuous-delivery-pipeline-in-jenkins
Tracking Confidence
Where do we start?
How do we know we are progressing?
1. Assess the current state
2. WSJF
3. Think globally – act locally
○ Proof of Concept and Spikes are your friends
1. Assess the current state
2. WSJF
3. Think globally – act locally
○ Proof of Concept and Spikes are your friends
Unit testing and shifting left
● Make the tests easy to run
○ Run them locally
■ Invest in good quality IDE support
○ Consistent entrypoint - Abstract the complexity
■ Makefiles / Gradle
○ Pull request unit test execution
Failing fast
● Code inspection
○ Code linting
○ Security inspection
○ Code format
● Code coverage
○ Track coverage changes
Centralised artifacts
● Managing output from a CI process
○ Only the strong survive
○ Central common location
○ Clearly understood name and version approach
○ Build them only once
○ Make them timeless – externalise configuration
Business benefits of CI/CD
Why do this?
● Reduction of delivery risk
○ No longer do we need to rely on humans with specific knowledge as
the gate-keepers of quality
○ Reduced chance of humans not following the process
○ Reduced chance of mis-communication on executing the change
Why do this?
● To encode the process, we need to know the process
○ If we know all the tests pass,
○ If we know all the steps in deployment,
○ What is stopping us from releasing?
Why do this?
● Better visibility on change
○ As our systems and tools are version controlled
○ And we know what the current state of production is
○ And we can describe the process by which it will be changed
○ We can diff the system states with confidence
● Opens up more avenues for review and increased audit
compliance
Why do this?
● Increased efficiency and delivery options
○ Enables us to deliver things with reduced effort
○ This leads us to deploy change more frequently
○ Which leads to getting feedback faster
○ That enables us to experiment easier
○ This leads to smaller batch sizes
○ Which leads to and increased flow of the entire system
Why do this?
● Enhanced learning from failure
○ When we have an issue or failure, we write a test to cover it
○ This test gets added to our suite and executed every time
○ Decreases our risk of this issue occurring again
That’s all folks…
Steve Mactaggart
State Manager – Victoria
steve.mactaggart@cevo.com.au

More Related Content

What's hot

CI CD Pipeline Using Jenkins | Continuous Integration and Deployment | DevOps...
CI CD Pipeline Using Jenkins | Continuous Integration and Deployment | DevOps...CI CD Pipeline Using Jenkins | Continuous Integration and Deployment | DevOps...
CI CD Pipeline Using Jenkins | Continuous Integration and Deployment | DevOps...Edureka!
 
CI and CD with Jenkins
CI and CD with JenkinsCI and CD with Jenkins
CI and CD with JenkinsMartin Málek
 
Continuous Delivery, Continuous Integration
Continuous Delivery, Continuous Integration Continuous Delivery, Continuous Integration
Continuous Delivery, Continuous Integration Amazon Web Services
 
Modern CI/CD Pipeline Using Azure DevOps
Modern CI/CD Pipeline Using Azure DevOpsModern CI/CD Pipeline Using Azure DevOps
Modern CI/CD Pipeline Using Azure DevOpsGlobalLogic Ukraine
 
DevOps Powerpoint Presentation Slides
DevOps Powerpoint Presentation SlidesDevOps Powerpoint Presentation Slides
DevOps Powerpoint Presentation SlidesSlideTeam
 
CI with Gitlab & Docker
CI with Gitlab & DockerCI with Gitlab & Docker
CI with Gitlab & DockerJoerg Henning
 
Jenkins Introduction
Jenkins IntroductionJenkins Introduction
Jenkins IntroductionPavan Gupta
 
Jenkins Pipeline Tutorial | Continuous Delivery Pipeline Using Jenkins | DevO...
Jenkins Pipeline Tutorial | Continuous Delivery Pipeline Using Jenkins | DevO...Jenkins Pipeline Tutorial | Continuous Delivery Pipeline Using Jenkins | DevO...
Jenkins Pipeline Tutorial | Continuous Delivery Pipeline Using Jenkins | DevO...Edureka!
 
Azure DevOps CI/CD For Beginners
Azure DevOps CI/CD  For BeginnersAzure DevOps CI/CD  For Beginners
Azure DevOps CI/CD For BeginnersRahul Nath
 
Introduction to DevOps | Edureka
Introduction to DevOps | EdurekaIntroduction to DevOps | Edureka
Introduction to DevOps | EdurekaEdureka!
 
What is DevOps | DevOps Introduction | DevOps Training | DevOps Tutorial | Ed...
What is DevOps | DevOps Introduction | DevOps Training | DevOps Tutorial | Ed...What is DevOps | DevOps Introduction | DevOps Training | DevOps Tutorial | Ed...
What is DevOps | DevOps Introduction | DevOps Training | DevOps Tutorial | Ed...Edureka!
 

What's hot (20)

CICD with Jenkins
CICD with JenkinsCICD with Jenkins
CICD with Jenkins
 
CI CD Pipeline Using Jenkins | Continuous Integration and Deployment | DevOps...
CI CD Pipeline Using Jenkins | Continuous Integration and Deployment | DevOps...CI CD Pipeline Using Jenkins | Continuous Integration and Deployment | DevOps...
CI CD Pipeline Using Jenkins | Continuous Integration and Deployment | DevOps...
 
CI and CD with Jenkins
CI and CD with JenkinsCI and CD with Jenkins
CI and CD with Jenkins
 
CI/CD
CI/CDCI/CD
CI/CD
 
Continuous Delivery, Continuous Integration
Continuous Delivery, Continuous Integration Continuous Delivery, Continuous Integration
Continuous Delivery, Continuous Integration
 
Modern CI/CD Pipeline Using Azure DevOps
Modern CI/CD Pipeline Using Azure DevOpsModern CI/CD Pipeline Using Azure DevOps
Modern CI/CD Pipeline Using Azure DevOps
 
DevOps Powerpoint Presentation Slides
DevOps Powerpoint Presentation SlidesDevOps Powerpoint Presentation Slides
DevOps Powerpoint Presentation Slides
 
"DevOps > CI+CD "
"DevOps > CI+CD ""DevOps > CI+CD "
"DevOps > CI+CD "
 
CI with Gitlab & Docker
CI with Gitlab & DockerCI with Gitlab & Docker
CI with Gitlab & Docker
 
Tour of Azure DevOps
Tour of Azure DevOpsTour of Azure DevOps
Tour of Azure DevOps
 
Jenkins Introduction
Jenkins IntroductionJenkins Introduction
Jenkins Introduction
 
Devops | CICD Pipeline
Devops | CICD PipelineDevops | CICD Pipeline
Devops | CICD Pipeline
 
Gitlab CI/CD
Gitlab CI/CDGitlab CI/CD
Gitlab CI/CD
 
Jenkins Pipeline Tutorial | Continuous Delivery Pipeline Using Jenkins | DevO...
Jenkins Pipeline Tutorial | Continuous Delivery Pipeline Using Jenkins | DevO...Jenkins Pipeline Tutorial | Continuous Delivery Pipeline Using Jenkins | DevO...
Jenkins Pipeline Tutorial | Continuous Delivery Pipeline Using Jenkins | DevO...
 
DevOps introduction
DevOps introductionDevOps introduction
DevOps introduction
 
Azure DevOps CI/CD For Beginners
Azure DevOps CI/CD  For BeginnersAzure DevOps CI/CD  For Beginners
Azure DevOps CI/CD For Beginners
 
Introduction to DevOps | Edureka
Introduction to DevOps | EdurekaIntroduction to DevOps | Edureka
Introduction to DevOps | Edureka
 
devops
devops devops
devops
 
What is DevOps | DevOps Introduction | DevOps Training | DevOps Tutorial | Ed...
What is DevOps | DevOps Introduction | DevOps Training | DevOps Tutorial | Ed...What is DevOps | DevOps Introduction | DevOps Training | DevOps Tutorial | Ed...
What is DevOps | DevOps Introduction | DevOps Training | DevOps Tutorial | Ed...
 
DevSecOps 101
DevSecOps 101DevSecOps 101
DevSecOps 101
 

Similar to Introduction to CI/CD

Developing Quality Products Quickly through a Culture of CI/CD
Developing Quality Products Quickly through a Culture of CI/CDDeveloping Quality Products Quickly through a Culture of CI/CD
Developing Quality Products Quickly through a Culture of CI/CDPaul Hepworth
 
Continues delivery - Introduction
Continues delivery - IntroductionContinues delivery - Introduction
Continues delivery - IntroductionErez Attar
 
Testing in a continuous delivery environment
Testing in a continuous delivery environmentTesting in a continuous delivery environment
Testing in a continuous delivery environmentStefan Verhoeff
 
Software Release Orchestration and the Enterprise
Software Release Orchestration and the EnterpriseSoftware Release Orchestration and the Enterprise
Software Release Orchestration and the EnterpriseXebiaLabs
 
2019 State of DevOps Report: Database Best Practices for Strong DevOps
2019 State of DevOps Report: Database Best Practices for Strong DevOps2019 State of DevOps Report: Database Best Practices for Strong DevOps
2019 State of DevOps Report: Database Best Practices for Strong DevOpsDevOps.com
 
Measure and Accelerate Your Software Delivery
Measure and Accelerate Your Software DeliveryMeasure and Accelerate Your Software Delivery
Measure and Accelerate Your Software DeliveryAnand Chauhan
 
Software Quality for Developers
Software Quality for DevelopersSoftware Quality for Developers
Software Quality for DevelopersMaira Bay de Souza
 
San Francisco Jenkins Area Meetup October 2016: Self-service secure test and ...
San Francisco Jenkins Area Meetup October 2016: Self-service secure test and ...San Francisco Jenkins Area Meetup October 2016: Self-service secure test and ...
San Francisco Jenkins Area Meetup October 2016: Self-service secure test and ...Andrey Falko
 
The Continuous Delivery process
The Continuous Delivery processThe Continuous Delivery process
The Continuous Delivery processXPeppers
 
Continuous Delivery Distilled
Continuous Delivery DistilledContinuous Delivery Distilled
Continuous Delivery DistilledMatt Callanan
 
Continuous Delivery: why ? where to start ? how to scale ?
Continuous Delivery: why ? where to start ? how to scale ?Continuous Delivery: why ? where to start ? how to scale ?
Continuous Delivery: why ? where to start ? how to scale ?Jean-Philippe Briend
 
The Final Frontier, Automating Dynamic Security Testing
The Final Frontier, Automating Dynamic Security TestingThe Final Frontier, Automating Dynamic Security Testing
The Final Frontier, Automating Dynamic Security TestingMatt Tesauro
 
Continuously delivering software to big brands (fullscreen edition)
Continuously delivering software to big brands (fullscreen edition)Continuously delivering software to big brands (fullscreen edition)
Continuously delivering software to big brands (fullscreen edition)Paul Boocock
 
6 Tools for Improving IT Operations in ICS Environments
6 Tools for Improving IT Operations in ICS Environments6 Tools for Improving IT Operations in ICS Environments
6 Tools for Improving IT Operations in ICS EnvironmentsEnergySec
 
DevOps/Flow workshop for agile india 2015
DevOps/Flow workshop for agile india 2015DevOps/Flow workshop for agile india 2015
DevOps/Flow workshop for agile india 2015Yuval Yeret
 
Data Engineer's Lunch #68: DevOps Fundamentals
Data Engineer's Lunch #68: DevOps FundamentalsData Engineer's Lunch #68: DevOps Fundamentals
Data Engineer's Lunch #68: DevOps FundamentalsAnant Corporation
 
The Continuous delivery value - Funaro
The Continuous delivery value - FunaroThe Continuous delivery value - Funaro
The Continuous delivery value - FunaroCodemotion
 
The Continuous delivery Value @ codemotion 2014
The Continuous delivery Value @ codemotion 2014The Continuous delivery Value @ codemotion 2014
The Continuous delivery Value @ codemotion 2014David Funaro
 
HIS 2017 Paul Sherwood- towards trustable software
HIS 2017 Paul Sherwood- towards trustable software HIS 2017 Paul Sherwood- towards trustable software
HIS 2017 Paul Sherwood- towards trustable software jamieayre
 

Similar to Introduction to CI/CD (20)

Developing Quality Products Quickly through a Culture of CI/CD
Developing Quality Products Quickly through a Culture of CI/CDDeveloping Quality Products Quickly through a Culture of CI/CD
Developing Quality Products Quickly through a Culture of CI/CD
 
Continues delivery - Introduction
Continues delivery - IntroductionContinues delivery - Introduction
Continues delivery - Introduction
 
Testing in a continuous delivery environment
Testing in a continuous delivery environmentTesting in a continuous delivery environment
Testing in a continuous delivery environment
 
Software Release Orchestration and the Enterprise
Software Release Orchestration and the EnterpriseSoftware Release Orchestration and the Enterprise
Software Release Orchestration and the Enterprise
 
2019 State of DevOps Report: Database Best Practices for Strong DevOps
2019 State of DevOps Report: Database Best Practices for Strong DevOps2019 State of DevOps Report: Database Best Practices for Strong DevOps
2019 State of DevOps Report: Database Best Practices for Strong DevOps
 
Measure and Accelerate Your Software Delivery
Measure and Accelerate Your Software DeliveryMeasure and Accelerate Your Software Delivery
Measure and Accelerate Your Software Delivery
 
Software Quality for Developers
Software Quality for DevelopersSoftware Quality for Developers
Software Quality for Developers
 
San Francisco Jenkins Area Meetup October 2016: Self-service secure test and ...
San Francisco Jenkins Area Meetup October 2016: Self-service secure test and ...San Francisco Jenkins Area Meetup October 2016: Self-service secure test and ...
San Francisco Jenkins Area Meetup October 2016: Self-service secure test and ...
 
DevTestOps
DevTestOpsDevTestOps
DevTestOps
 
The Continuous Delivery process
The Continuous Delivery processThe Continuous Delivery process
The Continuous Delivery process
 
Continuous Delivery Distilled
Continuous Delivery DistilledContinuous Delivery Distilled
Continuous Delivery Distilled
 
Continuous Delivery: why ? where to start ? how to scale ?
Continuous Delivery: why ? where to start ? how to scale ?Continuous Delivery: why ? where to start ? how to scale ?
Continuous Delivery: why ? where to start ? how to scale ?
 
The Final Frontier, Automating Dynamic Security Testing
The Final Frontier, Automating Dynamic Security TestingThe Final Frontier, Automating Dynamic Security Testing
The Final Frontier, Automating Dynamic Security Testing
 
Continuously delivering software to big brands (fullscreen edition)
Continuously delivering software to big brands (fullscreen edition)Continuously delivering software to big brands (fullscreen edition)
Continuously delivering software to big brands (fullscreen edition)
 
6 Tools for Improving IT Operations in ICS Environments
6 Tools for Improving IT Operations in ICS Environments6 Tools for Improving IT Operations in ICS Environments
6 Tools for Improving IT Operations in ICS Environments
 
DevOps/Flow workshop for agile india 2015
DevOps/Flow workshop for agile india 2015DevOps/Flow workshop for agile india 2015
DevOps/Flow workshop for agile india 2015
 
Data Engineer's Lunch #68: DevOps Fundamentals
Data Engineer's Lunch #68: DevOps FundamentalsData Engineer's Lunch #68: DevOps Fundamentals
Data Engineer's Lunch #68: DevOps Fundamentals
 
The Continuous delivery value - Funaro
The Continuous delivery value - FunaroThe Continuous delivery value - Funaro
The Continuous delivery value - Funaro
 
The Continuous delivery Value @ codemotion 2014
The Continuous delivery Value @ codemotion 2014The Continuous delivery Value @ codemotion 2014
The Continuous delivery Value @ codemotion 2014
 
HIS 2017 Paul Sherwood- towards trustable software
HIS 2017 Paul Sherwood- towards trustable software HIS 2017 Paul Sherwood- towards trustable software
HIS 2017 Paul Sherwood- towards trustable software
 

More from Steve Mactaggart

5 DevOps things that have changed because of COVID-19
5 DevOps things that have changed because of COVID-195 DevOps things that have changed because of COVID-19
5 DevOps things that have changed because of COVID-19Steve Mactaggart
 
Are you a leadership group or a leadership team?
Are you a leadership group or a leadership team?Are you a leadership group or a leadership team?
Are you a leadership group or a leadership team?Steve Mactaggart
 
Test driven infrastructure
Test driven infrastructureTest driven infrastructure
Test driven infrastructureSteve Mactaggart
 
Jenkins as a Service - Code all the way down
Jenkins as a Service - Code all the way downJenkins as a Service - Code all the way down
Jenkins as a Service - Code all the way downSteve Mactaggart
 
The changing role of the team leader in a DevOps transformation
The changing role of the team leader in a DevOps transformationThe changing role of the team leader in a DevOps transformation
The changing role of the team leader in a DevOps transformationSteve Mactaggart
 

More from Steve Mactaggart (6)

5 DevOps things that have changed because of COVID-19
5 DevOps things that have changed because of COVID-195 DevOps things that have changed because of COVID-19
5 DevOps things that have changed because of COVID-19
 
Are you a leadership group or a leadership team?
Are you a leadership group or a leadership team?Are you a leadership group or a leadership team?
Are you a leadership group or a leadership team?
 
Test driven infrastructure
Test driven infrastructureTest driven infrastructure
Test driven infrastructure
 
Jenkins as a Service - Code all the way down
Jenkins as a Service - Code all the way downJenkins as a Service - Code all the way down
Jenkins as a Service - Code all the way down
 
The changing role of the team leader in a DevOps transformation
The changing role of the team leader in a DevOps transformationThe changing role of the team leader in a DevOps transformation
The changing role of the team leader in a DevOps transformation
 
Head in the clouds
Head in the cloudsHead in the clouds
Head in the clouds
 

Recently uploaded

A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxA Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxLoriGlavin3
 
Glenn Lazarus- Why Your Observability Strategy Needs Security Observability
Glenn Lazarus- Why Your Observability Strategy Needs Security ObservabilityGlenn Lazarus- Why Your Observability Strategy Needs Security Observability
Glenn Lazarus- Why Your Observability Strategy Needs Security Observabilityitnewsafrica
 
Varsha Sewlal- Cyber Attacks on Critical Critical Infrastructure
Varsha Sewlal- Cyber Attacks on Critical Critical InfrastructureVarsha Sewlal- Cyber Attacks on Critical Critical Infrastructure
Varsha Sewlal- Cyber Attacks on Critical Critical Infrastructureitnewsafrica
 
Emixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native developmentEmixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native developmentPim van der Noll
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
Top 10 Hubspot Development Companies in 2024
Top 10 Hubspot Development Companies in 2024Top 10 Hubspot Development Companies in 2024
Top 10 Hubspot Development Companies in 2024TopCSSGallery
 
Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...Farhan Tariq
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024Lonnie McRorey
 
Zeshan Sattar- Assessing the skill requirements and industry expectations for...
Zeshan Sattar- Assessing the skill requirements and industry expectations for...Zeshan Sattar- Assessing the skill requirements and industry expectations for...
Zeshan Sattar- Assessing the skill requirements and industry expectations for...itnewsafrica
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity PlanDatabarracks
 
Design pattern talk by Kaya Weers - 2024 (v2)
Design pattern talk by Kaya Weers - 2024 (v2)Design pattern talk by Kaya Weers - 2024 (v2)
Design pattern talk by Kaya Weers - 2024 (v2)Kaya Weers
 
MuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotes
MuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotesMuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotes
MuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotesManik S Magar
 
Testing tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examplesTesting tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examplesKari Kakkonen
 
React Native vs Ionic - The Best Mobile App Framework
React Native vs Ionic - The Best Mobile App FrameworkReact Native vs Ionic - The Best Mobile App Framework
React Native vs Ionic - The Best Mobile App FrameworkPixlogix Infotech
 
Scale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL RouterScale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL RouterMydbops
 
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24Mark Goldstein
 
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
Decarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a realityDecarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a realityIES VE
 
So einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdfSo einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdfpanagenda
 

Recently uploaded (20)

A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxA Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
 
Glenn Lazarus- Why Your Observability Strategy Needs Security Observability
Glenn Lazarus- Why Your Observability Strategy Needs Security ObservabilityGlenn Lazarus- Why Your Observability Strategy Needs Security Observability
Glenn Lazarus- Why Your Observability Strategy Needs Security Observability
 
Varsha Sewlal- Cyber Attacks on Critical Critical Infrastructure
Varsha Sewlal- Cyber Attacks on Critical Critical InfrastructureVarsha Sewlal- Cyber Attacks on Critical Critical Infrastructure
Varsha Sewlal- Cyber Attacks on Critical Critical Infrastructure
 
Emixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native developmentEmixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native development
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
Top 10 Hubspot Development Companies in 2024
Top 10 Hubspot Development Companies in 2024Top 10 Hubspot Development Companies in 2024
Top 10 Hubspot Development Companies in 2024
 
Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024
 
Zeshan Sattar- Assessing the skill requirements and industry expectations for...
Zeshan Sattar- Assessing the skill requirements and industry expectations for...Zeshan Sattar- Assessing the skill requirements and industry expectations for...
Zeshan Sattar- Assessing the skill requirements and industry expectations for...
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity Plan
 
Design pattern talk by Kaya Weers - 2024 (v2)
Design pattern talk by Kaya Weers - 2024 (v2)Design pattern talk by Kaya Weers - 2024 (v2)
Design pattern talk by Kaya Weers - 2024 (v2)
 
MuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotes
MuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotesMuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotes
MuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotes
 
Testing tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examplesTesting tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examples
 
React Native vs Ionic - The Best Mobile App Framework
React Native vs Ionic - The Best Mobile App FrameworkReact Native vs Ionic - The Best Mobile App Framework
React Native vs Ionic - The Best Mobile App Framework
 
Scale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL RouterScale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL Router
 
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
 
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
Decarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a realityDecarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a reality
 
So einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdfSo einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdf
 

Introduction to CI/CD

  • 1.
  • 2. Introduction to CI/CD Steve Mactaggart State Manager - Victoria
  • 3. Agenda ● What is CI and CD ● What makes good CI / CD ● How we get there ● Business benefits of it all….
  • 4. What is CI and CD? ● Continuous Integration ○ An approach to be continually validating the state of a codebase through automated testing. ○ Best achieved through integration with version control ● Continuous Delivery / Deployment ○ An approach to regularly deploying artifacts that successfully pass the CI phase to ensure confidence around the deployment
  • 5. Delivery vs Deployment Continuous integration, continuous deployment, and continuous delivery are like vectors that have the same direction, but different magnitude. Their goal is the same: make our software development and release process faster and more robust. The key difference between the three is in the scope of automation applied.
  • 6. Delivery vs Deployment ● Continuous Delivery ○ Automatically prepare and track a release to production ○ The desired outcome is that anyone with sufficient privileges to deploy a new release can do so at any time in one or a few clicks. By eliminating nearly all manual tasks, developers become more productive. ● Continuous Deployment ○ Every change in the source code is deployed to production automatically, without explicit approval from a developer. ○ As long as it passes the quality controls
  • 7. What does good look like?
  • 8. What makes for good CI? 1. Decoupled stages ○ Each step in CI should do a single focused task 2. Repeatable ○ Automated in a way that is consistently repeatable ○ Tooling should work for local developers too – Local/Remote parity 3. Fail fast ○ Fail at the first sign of trouble
  • 10. What makes for good CD? 1. Design with the system in mind ○ Cover as many parts of a deployment as possible ○ Application | Infrastructure | Configuration | Data 2. Pipelines ○ Continually increase confidence as you move towards production 3. Globally unique versions ○ Know the state of the system at any time ○ Be able to demonstrate difference between current and future state
  • 11. CD Pipeline flow DEV PRE PROD PRODUCTIONConfiguration Infrastructure Application
  • 12. Bringing CI & CD together Continuous Integration Knowing the artifacts are Good Knowing the deployment is Good Continuous Delivery / Deployment Artifact store
  • 14. Tracking Confidence Where do we start? How do we know we are progressing?
  • 15.
  • 16. 1. Assess the current state 2. WSJF 3. Think globally – act locally ○ Proof of Concept and Spikes are your friends
  • 17. 1. Assess the current state 2. WSJF 3. Think globally – act locally ○ Proof of Concept and Spikes are your friends
  • 18. Unit testing and shifting left ● Make the tests easy to run ○ Run them locally ■ Invest in good quality IDE support ○ Consistent entrypoint - Abstract the complexity ■ Makefiles / Gradle ○ Pull request unit test execution
  • 19. Failing fast ● Code inspection ○ Code linting ○ Security inspection ○ Code format ● Code coverage ○ Track coverage changes
  • 20. Centralised artifacts ● Managing output from a CI process ○ Only the strong survive ○ Central common location ○ Clearly understood name and version approach ○ Build them only once ○ Make them timeless – externalise configuration
  • 22. Why do this? ● Reduction of delivery risk ○ No longer do we need to rely on humans with specific knowledge as the gate-keepers of quality ○ Reduced chance of humans not following the process ○ Reduced chance of mis-communication on executing the change
  • 23. Why do this? ● To encode the process, we need to know the process ○ If we know all the tests pass, ○ If we know all the steps in deployment, ○ What is stopping us from releasing?
  • 24. Why do this? ● Better visibility on change ○ As our systems and tools are version controlled ○ And we know what the current state of production is ○ And we can describe the process by which it will be changed ○ We can diff the system states with confidence ● Opens up more avenues for review and increased audit compliance
  • 25. Why do this? ● Increased efficiency and delivery options ○ Enables us to deliver things with reduced effort ○ This leads us to deploy change more frequently ○ Which leads to getting feedback faster ○ That enables us to experiment easier ○ This leads to smaller batch sizes ○ Which leads to and increased flow of the entire system
  • 26. Why do this? ● Enhanced learning from failure ○ When we have an issue or failure, we write a test to cover it ○ This test gets added to our suite and executed every time ○ Decreases our risk of this issue occurring again
  • 27. That’s all folks… Steve Mactaggart State Manager – Victoria steve.mactaggart@cevo.com.au

Editor's Notes

  1. Focus here is CONTINUOUS You'll see this reoccur through todays talk You could do CI without version control, but it would kinda be like cycling without wheels
  2. Give you an example During recent engagements - we were able to get to Delivery All changes ran through the same flow Sequence of the tasks were sometimes different Approval and validation still had manual steps Cevo Website - made it to Deployment Merge to master If it builds, and the tests pass then it is released
  3. Simple Like we are doing in the application space, moving away from monoliths - our CI should follow the same patterns Enables better troubleshooting Powers greater reuse Repeatable Where most of your time will end up being sunk This is the tools Environment isolaiton Dependancy isolation Version consistency Fail fast Lean in to the pain, better to have it earlier
  4. Simple Test a single function well at the unit level Repeatable Isolate from Data / Systems / Availability Fail Fast Time to fail in unit is super quick We should only be moving something forward if we know it is as good as it can possibly be. Lots of awesome tooling and prior art in this space, challenge is that not all code is testable in its current state - requires some investment in closing the gap (Tech Debt)
  5. Systems are no longer only the application Think network egress rules Encryption keys O/S packaging updates Even compute / memory requirements Pipelines Everything goes the same path, if it fail we throw it all out and look for the next item Visualise the pipeline Enable us to build in stage gates of quality along the way Like point #1 - a system is not one thing What is the version of the system 1/2/3? * as code enables a diff based review process
  6. Green = CI Yellow / Red = CD yellow may repeat in complex environments SIT / UAT / PRE environments But the process should be the same Focus on Pull based deployments, not push based workflows
  7. Channel the Repeatable focus Try hard to have the one process to run them all Common entry point Keep it simple Don't have lots of complex config Fail fast Run tests against branches to get confidence before merge Keep your tests versioned with your code
  8. Don't be re-building the artifact because you change passwords – inject this configuration