Algoworks
CI/CD – A Strategy for success
Yassine El Qandili
10x Salesforce Certified Application Architect / Tech Lead @ Accenture Belgium
/in/yassineelqandili/
y.elqandili1@gmail.com
Why CI/CD ?
What is Continuous integration & Continuous Delivery/Deployment ?
How to do CI/CD ?
• Sandbox Strategy
• Delivery pipelines
• Branching Strategy
• Salesforce DX
Agenda
1
2
3
Why CI/CD ?
CI : Continuous Integration
Small Changes
Frequent code check in from VCS
Automatic package, build & test
CD :
Continuous Delivery: Manual trigger
deployment to production
Continuous Deployment : Automatic
Deploy to production environment
Build Unit Tests
Deploy to
staging
Acceptance
tests
What is CI/CD ?
Manual
Build Unit Tests
Deploy to
staging
Acceptance
tests
Deploy to QA
Deploy to
Prod/Training
Build Unit Tests
Deploy to
staging
Acceptance
tests
Deploy to QA
Deploy to
Prod/Training
Auto
Align Design Implement
1st Step 2nd Step 3rd Step
Technically implement & document the
solution
Train your team on the new WoW
Align business objective with the
technical implementation
Create a repository of existing tools
Design deployment flows & release
cycles to respond to business challenges
Make a choice on the tool stack
How ?
CI Server
Dev Sandbox
Dev Sandbox
Dev Sandbox
CI Sandbox QA Sandbox
Production HotFix
How ? – Sandbox Strategy
This Photo by Unknown Author is licensed under CC BY-SA
Build
Unit Test
Integration TestReview &
Approve
Auto Test
Deploy
Continuous DeliveryContinuous Integration
Scratch Org
Scratch Org
Scratch Org
Scratch Org
Scratch Org
Development UAT Production
How ? – Delivery Pipelines
Development SIT UAT Production
Development Merge SIT UAT
Performance
Testing
Staging Production
How ? – Branching Strategy
Master
QA
Develop
Feature 01
Feature 02
How ? – Implement
1
2
Salesforce DX
Salesforce CLI
Source Format vs Metadata Source ?
Tool stack
3
4
Salesforce DX
Powerful Command Line Interface
Perform commands against your Salesforce Org
Synch code from your org
Create and manage orgs
Import & Export Data
Create and execute tests
Create and Install Packages
Salesforce CLI
Metadata Format vs Source Format
• VS Code: Free & Open
Source IDE
• Salesforce Extensions
• CLI
• Apex & Apex Debuggers
• LWC, Aura Components
& Visual Force
• GitLens
Tool Stack – VS Code, Salesforce Extensions & GitLens
Endless
Possibilities
Tool Stack – CI Tools
Happy Development team
Happy functional team
Happy Product owner
Happy sponsors & stakeholders
Happy users
Happy Customers
Happyness
Algoworks
Thank you !
Yassine El Qandili
10x Salesforce Certified Application Architect / Tech Lead @ Accenture Belgium
/in/yassineelqandili/
y.elqandili1@gmail.com
Algoworks
Q & A
Yassine El Qandili
10x Salesforce Certified Application Architect / Tech Lead @ Accenture Belgium
/in/yassineelqandili/
y.elqandili1@gmail.com

Salesforce CI/CD - A strategy for success

  • 1.
    Algoworks CI/CD – AStrategy for success Yassine El Qandili 10x Salesforce Certified Application Architect / Tech Lead @ Accenture Belgium /in/yassineelqandili/ y.elqandili1@gmail.com
  • 2.
    Why CI/CD ? Whatis Continuous integration & Continuous Delivery/Deployment ? How to do CI/CD ? • Sandbox Strategy • Delivery pipelines • Branching Strategy • Salesforce DX Agenda 1 2 3
  • 3.
  • 4.
    CI : ContinuousIntegration Small Changes Frequent code check in from VCS Automatic package, build & test CD : Continuous Delivery: Manual trigger deployment to production Continuous Deployment : Automatic Deploy to production environment Build Unit Tests Deploy to staging Acceptance tests What is CI/CD ? Manual Build Unit Tests Deploy to staging Acceptance tests Deploy to QA Deploy to Prod/Training Build Unit Tests Deploy to staging Acceptance tests Deploy to QA Deploy to Prod/Training Auto
  • 5.
    Align Design Implement 1stStep 2nd Step 3rd Step Technically implement & document the solution Train your team on the new WoW Align business objective with the technical implementation Create a repository of existing tools Design deployment flows & release cycles to respond to business challenges Make a choice on the tool stack How ?
  • 6.
    CI Server Dev Sandbox DevSandbox Dev Sandbox CI Sandbox QA Sandbox Production HotFix How ? – Sandbox Strategy This Photo by Unknown Author is licensed under CC BY-SA Build Unit Test Integration TestReview & Approve Auto Test Deploy Continuous DeliveryContinuous Integration Scratch Org Scratch Org Scratch Org Scratch Org Scratch Org
  • 7.
    Development UAT Production How? – Delivery Pipelines Development SIT UAT Production Development Merge SIT UAT Performance Testing Staging Production
  • 8.
    How ? –Branching Strategy Master QA Develop Feature 01 Feature 02
  • 9.
    How ? –Implement 1 2 Salesforce DX Salesforce CLI Source Format vs Metadata Source ? Tool stack 3 4
  • 10.
  • 11.
    Powerful Command LineInterface Perform commands against your Salesforce Org Synch code from your org Create and manage orgs Import & Export Data Create and execute tests Create and Install Packages Salesforce CLI
  • 12.
    Metadata Format vsSource Format
  • 13.
    • VS Code:Free & Open Source IDE • Salesforce Extensions • CLI • Apex & Apex Debuggers • LWC, Aura Components & Visual Force • GitLens Tool Stack – VS Code, Salesforce Extensions & GitLens
  • 14.
  • 15.
    Happy Development team Happyfunctional team Happy Product owner Happy sponsors & stakeholders Happy users Happy Customers Happyness
  • 16.
    Algoworks Thank you ! YassineEl Qandili 10x Salesforce Certified Application Architect / Tech Lead @ Accenture Belgium /in/yassineelqandili/ y.elqandili1@gmail.com
  • 17.
    Algoworks Q & A YassineEl Qandili 10x Salesforce Certified Application Architect / Tech Lead @ Accenture Belgium /in/yassineelqandili/ y.elqandili1@gmail.com