SlideShare a Scribd company logo
1 of 31
Download to read offline
Jenkins and Bhyve:
Continuous Integration for FreeBSD
Craig Rodrigues
rodrigc@FreeBSD.org
Presentation Overview
●
Introduction to Jenkins and
Continuous Integration (CI)
●
Describe how Jenkins was set up in
FreeBSD cluster
Jenkins
What is Jenkins?
●
Continuous Integration tool
implemented in Java
●
written by Kohsuke Kawaguchi
at Sun
What is Jenkins?
●
Now an Open Source project:
http://jenkins-ci.org
●
Hundreds of plugins available
●
Hundreds of users
●
Active developer community
Jenkins User Conference 2013
Continuous Integration
What is Continuous Integration?
●
Developer commits code changes
●
System verifies that code builds
●
System verifies that code passes
tests
●
Code is deployed
Example Production CI Workflow
Jenkins in the
FreeBSD cluster
Motivation
●
Use more modern development tools in
FreeBSD
●
Help improve quality of FreeBSD
●
Take advantage of large Jenkins
ecosystem
Setting up Jenkins in the
FreeBSD cluster
Task #1: Set up machine
●
clusteradm@freebsd.org provided:
●
vmhost.freebsd.org:
●
16G RAM, 1.8TB disks
●
Intel E5620, 16 CPU cores
●
FreeBSD 11
Task #2: Set up VM's
●
Two 200GB disk images created
●
Image 1: jenkins-9.freebsd.org (FBSD 9)
●
Image 2: jenkins-10.freebsd.org (FBSD 10)
●
Run VM's under BSD Hypervisor (BHyve)
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
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
d
Task #5: Set up nginx
●
DNS CNAME: jenkins → jenkins-9
●
Nginx reverse proxy set up:
https://jenkins.freebsd.org →
http://jenkins-9.freebsd.org:8180/jenkins
●
nginx https configured with SSL certificate
VM Host
vmhost.freebsd.org (FreeBSD 11)
jenkins-9.freebsd.org
(Bhyve VM)
jenkins-10.freebsd.org
(Bhyve VM)
jenkins-9.freebsd.org VM
jenkins-9.freebsd.org (FreeBSD 9)
Nginx proxy Jenkins Java VM
Web request
d
Task #6: Set up authentication
●
Jenkins authentication via LDAP used
●
Configured via Jenkins web UI
●
FreeBSD LDAP servers at Yahoo used
LDAP authentication
jenkins-9.freebsd.org (FreeBSD 9)
Nginx proxy Jenkins Java VM
Web request
Authenticate
(ldaps://)
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)
What do we have so far?
Developer
commits
Build
Test
(TBD)
SCM
(svn.freebsd.org)
Deploy
(TBD)
Implementation status of CI
●
Latest project status:
http://wiki.freebsd.org/Jenkins
What's next?
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
Where do I find out more?
Further information
●
Project page:
http://wiki.freebsd.org/Jenkins
●
Contact us:
freebsd-testing@FreeBSD.org
●
Join in, and help out!
Special Thanks
●
jenkins-admin@freebsd.org:
●
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)
Special Thanks
●
clusteradm@freebsd.org:
●
Sean Bruno, sbruno@freebsd.org
●
Peter Wemm, peter@freebsd.org
●
Glen Barber, gjb@freebsd.org

More Related Content

Viewers also liked

Ppt of edmund hillary the mountaineer
Ppt of edmund hillary the mountaineerPpt of edmund hillary the mountaineer
Ppt of edmund hillary the mountaineer
Diksha Shukla
 
Cистема спортивного трекинга O-GPS Center
Cистема спортивного трекинга O-GPS CenterCистема спортивного трекинга O-GPS Center
Cистема спортивного трекинга O-GPS Center
Mikhail Senin
 

Viewers also liked (12)

Sherut diva
Sherut divaSherut diva
Sherut diva
 
DAVIDRIALNIETO
DAVIDRIALNIETODAVIDRIALNIETO
DAVIDRIALNIETO
 
UCL All of the Things (MeetBSD California 2014 Lightning Talk)
UCL All of the Things (MeetBSD California 2014 Lightning Talk)UCL All of the Things (MeetBSD California 2014 Lightning Talk)
UCL All of the Things (MeetBSD California 2014 Lightning Talk)
 
Cara membuat email dengan gmail
Cara membuat email dengan gmailCara membuat email dengan gmail
Cara membuat email dengan gmail
 
Prueba
PruebaPrueba
Prueba
 
Ppt of edmund hillary the mountaineer
Ppt of edmund hillary the mountaineerPpt of edmund hillary the mountaineer
Ppt of edmund hillary the mountaineer
 
Introduction au hacking by hamoji (1)
Introduction au hacking by hamoji (1)Introduction au hacking by hamoji (1)
Introduction au hacking by hamoji (1)
 
Tugas dds 2 kel v (sejarah perkembangan ilmu)
Tugas dds 2 kel v (sejarah perkembangan ilmu)Tugas dds 2 kel v (sejarah perkembangan ilmu)
Tugas dds 2 kel v (sejarah perkembangan ilmu)
 
Fatturazione elettronica verso la Pubblica Amministrazione
Fatturazione elettronica verso la Pubblica AmministrazioneFatturazione elettronica verso la Pubblica Amministrazione
Fatturazione elettronica verso la Pubblica Amministrazione
 
Case Study Banca Ubae
Case Study Banca UbaeCase Study Banca Ubae
Case Study Banca Ubae
 
Cистема спортивного трекинга O-GPS Center
Cистема спортивного трекинга O-GPS CenterCистема спортивного трекинга O-GPS Center
Cистема спортивного трекинга O-GPS Center
 
Problemasjava2
Problemasjava2Problemasjava2
Problemasjava2
 

More from iXsystems

More from iXsystems (12)

The True Story of FreeNAS
The True Story of FreeNASThe True Story of FreeNAS
The True Story of FreeNAS
 
BayLISA - FreeNAS 10 by Jordan Hubbard
BayLISA - FreeNAS 10 by Jordan HubbardBayLISA - FreeNAS 10 by Jordan Hubbard
BayLISA - FreeNAS 10 by Jordan Hubbard
 
History of ZFS (MeetBSD California 2016)
History of ZFS (MeetBSD California 2016)History of ZFS (MeetBSD California 2016)
History of ZFS (MeetBSD California 2016)
 
PCI Pass-through - FreeBSD VM on Hyper-V (MeetBSD California 2016)
PCI Pass-through - FreeBSD VM on Hyper-V (MeetBSD California 2016)PCI Pass-through - FreeBSD VM on Hyper-V (MeetBSD California 2016)
PCI Pass-through - FreeBSD VM on Hyper-V (MeetBSD California 2016)
 
FreeNAS 10: Challenges of Building a Modern Storage Appliance based on FreeBS...
FreeNAS 10: Challenges of Building a Modern Storage Appliance based on FreeBS...FreeNAS 10: Challenges of Building a Modern Storage Appliance based on FreeBS...
FreeNAS 10: Challenges of Building a Modern Storage Appliance based on FreeBS...
 
NeXTBSD aka FreeBSD X
NeXTBSD aka FreeBSD XNeXTBSD aka FreeBSD X
NeXTBSD aka FreeBSD X
 
FreeBSD: The Next 10 Years (MeetBSD 2014)
FreeBSD: The Next 10 Years (MeetBSD 2014)FreeBSD: The Next 10 Years (MeetBSD 2014)
FreeBSD: The Next 10 Years (MeetBSD 2014)
 
Netflix Update (MeetBSD California 2014 Lightning Talk)
Netflix Update (MeetBSD California 2014 Lightning Talk)Netflix Update (MeetBSD California 2014 Lightning Talk)
Netflix Update (MeetBSD California 2014 Lightning Talk)
 
600M+ Unsuspecting FreeBSD Users (MeetBSD California 2014)
600M+ Unsuspecting FreeBSD Users (MeetBSD California 2014)600M+ Unsuspecting FreeBSD Users (MeetBSD California 2014)
600M+ Unsuspecting FreeBSD Users (MeetBSD California 2014)
 
PBI v10: Application Management Made Easy by Ken Moore
PBI v10: Application Management Made Easy by Ken MoorePBI v10: Application Management Made Easy by Ken Moore
PBI v10: Application Management Made Easy by Ken Moore
 
Introduction to FreeNAS development by John Hixson
Introduction to FreeNAS development by John HixsonIntroduction to FreeNAS development by John Hixson
Introduction to FreeNAS development by John Hixson
 
Jenkins, Bhyve, and Webdriver: Continuous Integration testing on FreeNAS by C...
Jenkins, Bhyve, and Webdriver: Continuous Integration testing on FreeNAS by C...Jenkins, Bhyve, and Webdriver: Continuous Integration testing on FreeNAS by C...
Jenkins, Bhyve, and Webdriver: Continuous Integration testing on FreeNAS by C...
 

Recently uploaded

Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
vu2urc
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 

Recently uploaded (20)

Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of Brazil
 

Jenkins and Bhyve: Continuous Integration for FreeBSD by Craig Rodrigues