Streamlining Deployments to Magento Cloud with Jenkins

Shero CTO James Cowie delivered a presentation to Magento’s tech team in March to demonstrate how we’re using Jenkins to facilitate faster, safer and more informative deployments to the new Magento Commerce Cloud platform. Jenkins is an automation server that Shero uses to build intelligent pipelines for testing and deploying to development environments. Using Jenkins, […]

By James Cowie

Shero CTO James Cowie delivered a presentation to Magento’s tech team in March to demonstrate how we’re using Jenkins to facilitate faster, safer and more informative deployments to the new Magento Commerce Cloud platform.

Jenkins is an automation server that Shero uses to build intelligent pipelines for testing and deploying to development environments. Using Jenkins, we perform code quality assessment, run deployments and test performance much more quickly and efficiently than would otherwise be possible.

“When we worked with Magento Cloud,” Cowie explains, “It was one of those times where we could reflect and take a look at how we want our Jenkins pipeline to work. It was a great opportunity for us to go through and review what orchestration tools are out there…”

For Cowie, the choice use Jenkins came down to flexibility and extensibility. “We wanted to use Docker, we wanted to run unit testing, we wanted to run speed tests and all sorts of other things. We really wanted to be able, regardless of what project we were on—whether it’s Go on one day or PHP and Magento 2 the next—it had to be able to run all of our tooling.” And it had to work equally well all the way from local development environments up to production servers.

The Jenkins Workflow

  1. Shero feature branches are merged into development branch in Bitbucket
  2. Bitbucket repository initiates Jenkins pipeline:
    1. PHP Syntax Check
    2. PHP Code Sniffer
    3. PHPStan
    4. Copy Paste Detection
    5. Unit Testing
    6. Functional Unit Testing
    7. Deployment
    8. Site Performance Testing
  3. Development branch is merged into Magento Commerce Cloud testing environment

Our Jenkins workflow is just one of the ways that Shero maintains a commitment to excellence with every Magento project. View James Cowie’s whole presentation here.