Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Jenkins Best Practices Meetup Slides

534 views

Published on

Jenkins Best Practices meetup talk slides.

Published in: Engineering
  • Be the first to comment

Jenkins Best Practices Meetup Slides

  1. 1. Jenkins Best Practices By Gergely Brautigam
  2. 2. Links • Github: https://github.com/Skarlso/ jenkinsbestpractices • Docker Hub: https://hub.docker.com/r/skarlso/ jenkinsbestpractices/
  3. 3. Basics — UI https://wiki.jenkins-ci.org/display/JENKINS/Simple+Theme+Plugin
  4. 4. Before Simple Theme Plugin http://www.metecs.com/assets/images/capabilities/jenkins-screenshot.png
  5. 5. After Simple Theme Plugin + Material Theme http://jenkins-contrib-themes.github.io/jenkins-material-theme/images/screenshot-jenkins-theme-material-main-large.png
  6. 6. Basics - Config Histroy https://wiki.jenkins-ci.org/display/JENKINS/JobConfigHistory+Plugin
  7. 7. Diff for your config
  8. 8. Basics - Rebuild https://wiki.jenkins-ci.org/display/JENKINS/Rebuild+Plugin
  9. 9. Rebuild Your Previous Job
  10. 10. Basics - Mask Password https://wiki.jenkins-ci.org/display/JENKINS/Mask+Passwords+Plugin
  11. 11. No more leak in the Logs
  12. 12. Advanced - Folders https://wiki.jenkins-ci.org/display/JENKINS/CloudBees+Folders+Plugin
  13. 13. Folders For Branching
  14. 14. Usages For Folders • Orignizing • Clean workspace and environment • All views is not cluttered — while with views it still is • Branches — combined with the next one…
  15. 15. Advanced — DSL https://wiki.jenkins-ci.org/display/JENKINS/Job+DSL+Plugin
  16. 16. Never use the configuration screen again
  17. 17. Single Seed Job To Rule Them All
  18. 18. Branching with DSL + Folders • Job’s groovy file lives next to the source code
  19. 19. Advanced - MultiJob https://wiki.jenkins-ci.org/display/JENKINS/Multijob+Plugin
  20. 20. Parallel Test Runs With Multijob
  21. 21. Expert - Pretested Integration https://wiki.jenkins-ci.org/display/JENKINS/Pretested+Integration+Plugin
  22. 22. Branch Setup
  23. 23. Pretest Setup
  24. 24. Push local branch to ready branch • git push origin BFG-321:ready/BFG-321
  25. 25. Expert - Pipelines + Jenkins 2.0 • Everything you saw here — integrated • Pipeline — Previously known as workflow
  26. 26. Pipeline - Jenkinsfile
  27. 27. Pipeline
  28. 28. Pipelines - MultiBranch Fetch configuration
  29. 29. Pipelines - MultiBranch - Run builds Only builds branches which have ‘Jenkinsfile’ at root
  30. 30. Bonus Round • Packer / Vagrant / Docker provisioning of build slaves • Configuration management for credentials • Load Balancing Jenkins slaves
  31. 31. Thank you for listening! • Github: https://github.com/Skarlso/ jenkinsbestpractices • Docker Hub: https://hub.docker.com/r/skarlso/ jenkinsbestpractices/

×