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 and Bhyve: Continuous Integration for FreeBSD by Craig Rodrigues


Published on

A team of FreeBSD developers led by Craig Rodrigues ( has formed the jenkins-admin team ( They have set up the Jenkins Continuous Integration ( system inside the FreeBSD cluster, and are building several branches of FreeBSD. The web server which lists the builds is visible at:

The jenkins-admin team has plans to expand the use of Jenkins to build and test FreeBSD. The project status and future plans are listed at:

The presentation discusses the progress of the effort to date, the use of BHyve VM's in the effort, and future plans. The team is also looking for FreeBSD developers who can help along with this effort to improve testing of FreeBSD. A video of the full talk can be found here:

Published in: Technology
  • If u need a hand in making your writing assignments - visit ⇒ ⇐ for more detailed information.
    Are you sure you want to  Yes  No
    Your message goes here

Jenkins and Bhyve: Continuous Integration for FreeBSD by Craig Rodrigues

  1. 1. Jenkins and Bhyve: Continuous Integration for FreeBSD Craig Rodrigues
  2. 2. Presentation Overview ● Introduction to Jenkins and Continuous Integration (CI) ● Describe how Jenkins was set up in FreeBSD cluster
  3. 3. Jenkins
  4. 4. What is Jenkins? ● Continuous Integration tool implemented in Java ● written by Kohsuke Kawaguchi at Sun
  5. 5. What is Jenkins? ● Now an Open Source project: ● Hundreds of plugins available ● Hundreds of users ● Active developer community
  6. 6. Jenkins User Conference 2013
  7. 7. Continuous Integration
  8. 8. What is Continuous Integration? ● Developer commits code changes ● System verifies that code builds ● System verifies that code passes tests ● Code is deployed
  9. 9. Example Production CI Workflow
  10. 10. Jenkins in the FreeBSD cluster
  11. 11. Motivation ● Use more modern development tools in FreeBSD ● Help improve quality of FreeBSD ● Take advantage of large Jenkins ecosystem
  12. 12. Setting up Jenkins in the FreeBSD cluster
  13. 13. Task #1: Set up machine ● provided: ● ● 16G RAM, 1.8TB disks ● Intel E5620, 16 CPU cores ● FreeBSD 11
  14. 14. Task #2: Set up VM's ● Two 200GB disk images created ● Image 1: (FBSD 9) ● Image 2: (FBSD 10) ● Run VM's under BSD Hypervisor (BHyve)
  15. 15. Task #3: Create rc.d scripts ● rc.d scripts start VM's on boot of vmhost ● VM's send console output to /dev/nmdm ● Example to connect to VM console: cu -l /dev/nmdm0B
  16. 16. Task #4: Install Jenkins in VM's ● pkg install devel/jenkins ● OpenJDK pulled in as dependency ● configure some settings in /etc/rc.conf ● service jenkins start
  17. 17. d Task #5: Set up nginx ● DNS CNAME: jenkins → jenkins-9 ● Nginx reverse proxy set up: → ● nginx https configured with SSL certificate
  18. 18. VM Host (FreeBSD 11) (Bhyve VM) (Bhyve VM)
  19. 19. VM (FreeBSD 9) Nginx proxy Jenkins Java VM Web request
  20. 20. d Task #6: Set up authentication ● Jenkins authentication via LDAP used ● Configured via Jenkins web UI ● FreeBSD LDAP servers at Yahoo used
  21. 21. LDAP authentication (FreeBSD 9) Nginx proxy Jenkins Java VM Web request Authenticate (ldaps://)
  22. 22. d Task #7: Set up builds ● Set up “free-form builds” via Jenkins web UI ● On Unix, “free-form” builds executed via “/bin/sh -xe”, if first line lacks “#!” (shebang)
  23. 23. What do we have so far?
  24. 24. Developer commits Build Test (TBD) SCM ( Deploy (TBD) Implementation status of CI ● Latest project status:
  25. 25. What's next?
  26. 26. d Next steps ● Integrate with Julio Merino's Kyua framework at BSDCan ● Set up more builds ● Boot results of builds in VM's ● Coverity integration
  27. 27. Where do I find out more?
  28. 28. Further information ● Project page: ● Contact us: ● Join in, and help out!
  29. 29. Special Thanks ● ● Craig Rodrigues, rodrigc@ (project lead) ● Li-Wen Hsu, lwhsu@, (port maintainer) ● Steve Kreuzer, skreuzer@ (devops ninja) ● Steve Wills, swills@, (port maintainer) ● R. Tyler Croy, tyler@, (Jenkins guru)
  30. 30. Special Thanks ● ● Sean Bruno, ● Peter Wemm, ● Glen Barber,