How can Jenkins help to implement CI/CD for Drupal?

HOW TO -️ October 18, 2021

Assume you want to implement continuous-integration (= CI) and continuous-deployment (= CD) for building and maintaining websites using Drupal (let's assume for Drupal Version 7). Often times Jenkins seems to be recommended as one of the most appropriate solutions for doing so.

But what kind of CI/CD related functionality can I actually use it for? Here are some of things I'm thinking of, but I'm not sure if I'm correct on that, and/or if these are the only things:

  • CI related: Automated testing.
  • CD related: Migrating custom module development between dev / staging / QA environments.


In my job we are trying to use Ansible + DrupalVM + Jenkins in our environment. @AdrianCidAlmaguer maybe you should post an answer to (briefly) explain each of those 3 things? I'm not the expert in this topic, but I will ask for some information about how this worls.