DCLA 2013: Managing developer workflows with Jenkins

Fd1ddc8e53e730804f2814248f69a565?s=47 btmash
July 14, 2013

DCLA 2013: Managing developer workflows with Jenkins

Fd1ddc8e53e730804f2814248f69a565?s=128

btmash

July 14, 2013
Tweet

Transcript

  1. DrupalCampLA 2013 Simple DevOps Using Jenkins Managing workflows with Jenkins

  2. DrupalCampLA 2013 Simple DevOps Using Jenkins Agenda About the presenter

    About Jenkins Why *NOT* Jenkins Why Jenkins Fabric Demo Capistrano Demo Resources • • • • • • • • •
  3. DrupalCampLA 2013 Simple DevOps Using Jenkins About the Presenter Ashok

    Modi BTMash (http://drupal.org/user/60422) Cherry Hill Company Contributed modules since 2006. Contributed to core since 2010. Upgrade path maintainer: 2012 - 2013. • • • • • •
  4. DrupalCampLA 2013 Simple DevOps Using Jenkins What is Jenkins? Continuous

    Integration Software Way to test code / functionality changes introduced to software. Send test results upon pass/fail. Gradually evolved into software to also help manage deployments. Front-end to manage your application. Many plugins CVS/Git/Mercurial Selenium/Phing • • • • • • • •
  5. DrupalCampLA 2013 Simple DevOps Using Jenkins Why Not Jenkins? Already

    using a 3rd party deployment solution Pantheon / Acquia (both of which work very well). Already using chef/puppet for deployment (creating your own rpm/deb files? how?) Doesn’t ‘just’ involve drupal. Python (Fabric), Capistrano (Ruby), something else? “Jenkins Sucks” Resource heavy Setup heavy Code heavy • • • • • • • • •
  6. DrupalCampLA 2013 Simple DevOps Using Jenkins Why Jenkins? Create test

    builds. Run tests easily. Create production builds easily. Easily create builds. Automated. Cron tasks. Manually (‘Push the button!’) • • • • • • •
  7. DrupalCampLA 2013 Simple DevOps Using Jenkins Who is it for?

    If you host your own websites. Have own servers (dedicated, vps, cloud, etc...not Pantheon/Acquia). Something *not* Drupal (Rails has heroku?). Not scared of code. Tired of emails/IMs asking to update code. • • • • •
  8. DrupalCampLA 2013 Simple DevOps Using Jenkins Fabric What is Fabric?

    Command-line tool to execute tasks on local/remote servers. Upload/download files. Requires python. How might Fabric and Drupal fit together? Simple commands (update codebase from repo or makefile). Run drush tasks (like make, cron, updb, etc). Part of larger deployment with Ægir. • • • • • • • •
  9. DrupalCampLA 2013 Simple DevOps Using Jenkins Fabric: Demo Server with

    preconfigured fabric script Step through some of the files. See how it looks in Jenkins. Run it. View it at http://goo.gl/ARnJp • • • • •
  10. DrupalCampLA 2013 Simple DevOps Using Jenkins Capistrano What is Capistrano?

    Similar to Fabric, remote ssh various tasks. Primarily used for application (rails) deployment. Plugins for various projects now! Takes care of application cycle. Code revisions. • • • • • •
  11. DrupalCampLA 2013 Simple DevOps Using Jenkins Capistrano Core tasks Deploy

    new release. Rollback current release to previous release. Create additional tasks. Integrate with drush? Integrate sql dumps as part of snapshot for rollbacks? • • • • • •
  12. DrupalCampLA 2013 Simple DevOps Using Jenkins Capistrano: Demo Server with

    preconfigured Capistrano Tasks Step through code / environment. View more at http://goo.gl/echjW See how it looks in Jenkins. Run it. • • • • •
  13. DrupalCampLA 2013 Simple DevOps Using Jenkins Additional Resources Fabric http://docs.fabfile.org

    Capistrano https://github.com/capistrano/capistrano Mig5 (http://mig5.net) http://goo.gl/yiveJ (article) https://github.com/mig5/aegir_cid (aegir) • • • • • • •
  14. DrupalCampLA 2013 Simple DevOps Using Jenkins Additional Resources (cont’d) http://reload.github.com/jenkins-drupal-

    template (simpletests, phing) http://sachachua.com/blog/p/22290 (Testing) http://goo.gl/QwtHM (additional slides) http://drupalize.me/blog/201211/our-approach- data-migration-upgrade (test content migration) • • • •
  15. Simple DevOps Using Jenkins DrupalCampLA 2013 Q & A Thank

    you!