Jason St-Cyr - Continuous integration - SUGCON

Post on 14-Apr-2017

318 views 0 download

Transcript of Jason St-Cyr - Continuous integration - SUGCON

Organized by the Community, for the Community.

CONTINUOUS INTEGRATION

Jason St-Cyr, Solution Architectnonlinear digital

Organized by the Community, for the Community. 2

HELLO, MY NAME IS JASON

SUGCON NORTH AMERICA 2015

Solution Architect.

Sitecore, ALM, and DevOpsconsultant.

Stopper of slapshots.

Dad.

Organized by the Community, for the Community. 3SUGCON NORTH AMERICA 2015

CONTINUOUSINTEGRATIONINTEGRATIONIMPROVEMENT

Organized by the Community, for the Community. 4SUGCON NORTH AMERICA 2015

IMPROVE “This sucks. I can do better.”- Every developer ever.

Organized by the Community, for the Community.SUGCON NORTH AMERICA 2015 5SUGCON NORTH AMERICA 2015

MATURITY MODEL

Automated Build

Source Control

Branching Strategy

Continuous Integration

Data Model Change Tracking

Automated Deploy to Test environments

Test Case management

Bug trackingRequirements 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 MonitoringMonitoring tools

Cloud DeploymentsClustered Deployments

Automated Prod Deployments

Automated Prod Deployment Package

Release Management

Real-time Reports

Automated Backups Automated Rollbacks/Restores

Generated Release NotesRelease Notes

Status Reports

Organized by the Community, for the Community. 6

THEAGILECODER.WORDPRESS.COM/SUGCONMaturity model download: Get it today!

SUGCON NORTH AMERICA 2015

Organized by the Community, for the Community. 7SUGCON NORTH AMERICA 2015

WE CAN DO BETTER.

Organized by the Community, for the Community. 8SUGCON NORTH AMERICA 2015

AUTOMATE

Organized by the Community, for the Community. 9

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

Organized by the Community, for the Community. 10

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

Organized by the Community, for the Community. 11

DEMO TIME!Oh mighty Demo Gods, be merciful…

SUGCON NORTH AMERICA 2015

Organized by the Community, for the Community. 12SUGCON NORTH AMERICA 2015

WE CAN DO BETTER.

Organized by the Community, for the Community. 13SUGCON NORTH AMERICA 2015

TRANSFORM

Organized by the Community, for the Community. 14

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

Organized by the Community, for the Community. 15

TRANSFORMS

- Leverage environment-specific build configurations

- Transform XML and Config files

- Deploy with MSBuild and TDS

SUGCON NORTH AMERICA 2015

<?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>

Organized by the Community, for the Community. 16

CODE ON SCREEN!Because you don’t see enough of Visual Studio every day…

SUGCON NORTH AMERICA 2015

Organized by the Community, for the Community. 17SUGCON NORTH AMERICA 2015

WE CAN DO BETTER.

Organized by the Community, for the Community. 18

QUESTIONS?

@AgileStCyr theagilecoder.wordpress.com

SUGCON NORTH AMERICA 2015

Organized by the Community, for the Community.SUGCON NORTH AMERICA 2015

REMEMBER:WE CAN DO BETTER.

SUGCON NORTH AMERICA 2015 19