SlideShare a Scribd company logo
Organized by the Community, for the Community.
CONTINUOUS INTEGRATION
Jason St-Cyr, Solution Architect
nonlinear digital
Organized by the Community, for the Community.
HELLO, MY NAME IS JASON
SUGCON NORTH AMERICA 2015 2
Solution Architect.
Sitecore, ALM, and DevOps
consultant.
Stopper of slapshots.
Dad.
Organized by the Community, for the Community.SUGCON NORTH AMERICA 2015 3
CONTINUOUS INTEGRATIONINTEGRATIONIMPROVEMENT
Organized by the Community, for the Community.SUGCON NORTH AMERICA 2015 4
IMPROVE
“This sucks.
I can do better.”
- Every developer ever.
Organized by the Community, for the Community.SUGCON NORTH AMERICA 2015SUGCON NORTH AMERICA 2015 5
MATURITY MODEL
Automated Build
Source Control
Branching Strategy
Continuous
Integration
Data Model Change
Tracking
Automated Deploy to
Test environments
Test Case
management
Bug tracking
Requirements
Tracking
Unit Testing
Security Testing
Accessibility Testing
Automated Browser
Testing
Automated
Regression Tests
Automated
Performance Tests
Infastructure As Code
Continuous Delivery
Continuous
Deployment
Automated Server
Patching
Continuous
Monitoring
Monitoring tools
Cloud Deployments
Clustered
Deployments
Automated Prod
Deployments
Automated Prod
Deployment Package
Release Management
Real-time Reports
Automated Backups
Automated
Rollbacks/Restores
Generated Release
Notes
Release Notes
Status Reports
Organized by the Community, for the Community.
THEAGILECODER.WORDPRESS.COM/SUGCON
Maturity model download: Get it today!
SUGCON NORTH AMERICA 2015 6
Organized by the Community, for the Community.SUGCON NORTH AMERICA 2015 7
WE CAN DO BETTER.
Organized by the Community, for the Community.SUGCON NORTH AMERICA 2015 8
AUTOMATE
Organized by the Community, for the Community.
DEPLOYMENT AUTOMATION
• Documented, repeatable deployment steps
• Easier to transition to operations or new
development team members
• Enforces culture of repeatable deployments
• Discourages “I’ll just edit the config file on the
server”
SUGCON NORTH AMERICA 2015 9
Organized by the Community, for the Community.
CONTINUOUS
INTEGRATION
- “Works on my
machine” is not
good enough
- Start small
- Test it together,
today
- “You broke it, you
fix it”
SUGCON NORTH AMERICA 2015 10
Organized by the Community, for the Community.
DEMOTIME!
Oh mighty Demo Gods, be merciful…
SUGCON NORTH AMERICA 2015 11
Organized by the Community, for the Community.SUGCON NORTH AMERICA 2015 12
WE CAN DO BETTER.
Organized by the Community, for the Community.SUGCON NORTH AMERICA 2015 13
TRANSFORM
Organized by the Community, for the Community.
ENVIRONMENT CONFIGURATIONS
• Configurations are rarely the same for all
environments
• Need a mechanism to maintain and deploy
environment-specific settings
• Remember: start small, then go big.
SUGCON NORTH AMERICA 2015 14
Organized by the Community, for the Community.
TRANSFORMS
- Leverage
environment-
specific build
configurations
- Transform XML
and Config files
- Deploy with
MSBuild andTDS
SUGCON NORTH AMERICA 2015 15
<?xml version="1.0" encoding="utf-8" ?>

<configuration xmlns:x="http://www.sitecore.net/xmlconfig/"
xmlns:xdt="http://schemas.microsoft.com/XML-Document-
Transform">
<sitecore>
<settings>

<setting name="MultiSitesContentDatabase"
value="web"
xdt:Locator="Match(name)"
xdt:Transform="SetAttributes(value)"/>
</settings>
</sitecore>
</configuration>
Organized by the Community, for the Community.
CODE ON SCREEN!
Because you don’t see enough ofVisual Studio every day…
SUGCON NORTH AMERICA 2015 16
Organized by the Community, for the Community.SUGCON NORTH AMERICA 2015 17
WE CAN DO BETTER.
Organized by the Community, for the Community.
QUESTIONS?
@AgileStCyr
theagilecoder.wordpress.com
SUGCON NORTH AMERICA 2015 18
Organized by the Community, for the Community.SUGCON NORTH AMERICA 2015
REMEMBER:
WE CAN DO
BETTER.
SUGCON NORTH AMERICA 2015 19

More Related Content

Jason St-Cyr - Continuous integration - SUGCON

  • 1. Organized by the Community, for the Community. CONTINUOUS INTEGRATION Jason St-Cyr, Solution Architect nonlinear digital
  • 2. Organized by the Community, for the Community. HELLO, MY NAME IS JASON SUGCON NORTH AMERICA 2015 2 Solution Architect. Sitecore, ALM, and DevOps consultant. Stopper of slapshots. Dad.
  • 3. Organized by the Community, for the Community.SUGCON NORTH AMERICA 2015 3 CONTINUOUS INTEGRATIONINTEGRATIONIMPROVEMENT
  • 4. Organized by the Community, for the Community.SUGCON NORTH AMERICA 2015 4 IMPROVE “This sucks. I can do better.” - Every developer ever.
  • 5. Organized by the Community, for the Community.SUGCON NORTH AMERICA 2015SUGCON NORTH AMERICA 2015 5 MATURITY MODEL Automated Build Source Control Branching Strategy Continuous Integration Data Model Change Tracking Automated Deploy to Test environments Test Case management Bug tracking Requirements Tracking Unit Testing Security Testing Accessibility Testing Automated Browser Testing Automated Regression Tests Automated Performance Tests Infastructure As Code Continuous Delivery Continuous Deployment Automated Server Patching Continuous Monitoring Monitoring tools Cloud Deployments Clustered Deployments Automated Prod Deployments Automated Prod Deployment Package Release Management Real-time Reports Automated Backups Automated Rollbacks/Restores Generated Release Notes Release Notes Status Reports
  • 6. Organized by the Community, for the Community. THEAGILECODER.WORDPRESS.COM/SUGCON Maturity model download: Get it today! SUGCON NORTH AMERICA 2015 6
  • 7. Organized by the Community, for the Community.SUGCON NORTH AMERICA 2015 7 WE CAN DO BETTER.
  • 8. Organized by the Community, for the Community.SUGCON NORTH AMERICA 2015 8 AUTOMATE
  • 9. Organized by the Community, for the Community. DEPLOYMENT AUTOMATION • Documented, repeatable deployment steps • Easier to transition to operations or new development team members • Enforces culture of repeatable deployments • Discourages “I’ll just edit the config file on the server” SUGCON NORTH AMERICA 2015 9
  • 10. Organized by the Community, for the Community. CONTINUOUS INTEGRATION - “Works on my machine” is not good enough - Start small - Test it together, today - “You broke it, you fix it” SUGCON NORTH AMERICA 2015 10
  • 11. Organized by the Community, for the Community. DEMOTIME! Oh mighty Demo Gods, be merciful… SUGCON NORTH AMERICA 2015 11
  • 12. Organized by the Community, for the Community.SUGCON NORTH AMERICA 2015 12 WE CAN DO BETTER.
  • 13. Organized by the Community, for the Community.SUGCON NORTH AMERICA 2015 13 TRANSFORM
  • 14. Organized by the Community, for the Community. ENVIRONMENT CONFIGURATIONS • Configurations are rarely the same for all environments • Need a mechanism to maintain and deploy environment-specific settings • Remember: start small, then go big. SUGCON NORTH AMERICA 2015 14
  • 15. Organized by the Community, for the Community. TRANSFORMS - Leverage environment- specific build configurations - Transform XML and Config files - Deploy with MSBuild andTDS SUGCON NORTH AMERICA 2015 15 <?xml version="1.0" encoding="utf-8" ?> <!-- For more information on using transformations see the web.config examples at http://go.microsoft.com/fwlink/?LinkId=214134. --> <configuration xmlns:x="http://www.sitecore.net/xmlconfig/" xmlns:xdt="http://schemas.microsoft.com/XML-Document- Transform"> <sitecore> <settings> <!-- on content delivery this should be web --> <setting name="MultiSitesContentDatabase" value="web" xdt:Locator="Match(name)" xdt:Transform="SetAttributes(value)"/> </settings> </sitecore> </configuration>
  • 16. Organized by the Community, for the Community. CODE ON SCREEN! Because you don’t see enough ofVisual Studio every day… SUGCON NORTH AMERICA 2015 16
  • 17. Organized by the Community, for the Community.SUGCON NORTH AMERICA 2015 17 WE CAN DO BETTER.
  • 18. Organized by the Community, for the Community. QUESTIONS? @AgileStCyr theagilecoder.wordpress.com SUGCON NORTH AMERICA 2015 18
  • 19. Organized by the Community, for the Community.SUGCON NORTH AMERICA 2015 REMEMBER: WE CAN DO BETTER. SUGCON NORTH AMERICA 2015 19