Mais conteúdo relacionado
Semelhante a Jenkins Enterprise by CloudBees Webinar (20)
Jenkins Enterprise by CloudBees Webinar
- 1. Jenkins Enterprise by CloudBees
Kohsuke Kawaguchi
Harpreet Singh
Jan 10th, 2012
©2010 CloudBees, Inc. All Rights
©2011 Cloud Bees, Inc. All Rights Reserved
Reserved
- 2. Agenda
• Jenkins Enterprise by CloudBees
– Introduction
– Overview
• Jenkins Enterprise by CloudBees
– Deep Dive
©2010 CloudBees, Inc. All Rights
©2011 CloudBees, Inc. All
Reserved
2
- 4. Most adopted CI server
Continuum Travis 2
9 Ongoing poll by Devoxx
CruiseControl 23 John Smart, early 2011 Pulse 2 Nov 2011
TeamCity 56 TeamCity 10
Bamboo 61 Bamboo 13
Hudson 180 Hudson 17
Jenkins 524 Jenkins 79
0 200 400 600 0 20 40 60 80
What build & release management products do you typically use?
Jenkins Maven
32%
Source: Eclipse Community Survey 2011
30%
©2010 CloudBees, Inc. All Rights 4
Reserved
- 5. Situation
82%
92%
©2010 CloudBees, Inc. All Rights
©2011 CloudBees, Inc. All
Reserved
5
- 6. Complication
72%
87%
* Numbers added for the top 3 priority responses in Jenkins Survey
©2010 CloudBees, Inc. All Rights
©2011 CloudBees, Inc. All
Reserved
6
- 7. Implication
72% Create a mobile app.
Sooner updates in Jenkins plugins!
make building a plugin easier Provide video tutorials.
more detailed examples
Better admin tols/plugin Better UI.
Pre‐commit requirement Server recommendations Better uptime
Better QA. There seems to be a lot of
Better job chaining
regressions. Easily manage build jobs for different branches
from a single configuration.
©2010 CloudBees, Inc. All Rights
©2011 CloudBees, Inc. All
Reserved
7
- 8. Introducing
Jenkins Enterprise by CloudBees
Position
Longer Term Support and Enterprise‐y Plugins
Action
evaluate (support){
// meets my organizational needs
…
}
evaluate (plugins){
// makes my life easier
…
}
Benefit
Fast issue resolutions & greatly improved management
©2010 CloudBees, Inc. All Rights
©2011 CloudBees, Inc. All
Reserved
8
- 9. Jenkins Enterprise by CloudBees
• In a nutshell
– Subscription
– Technical support + Value-add plugins
• Current Themes
– For large installations
– Security for enterprise
– Optimized utilization
• Upcoming Themes
– HA
– Reporting
©2010 CloudBees, Inc. All Rights 9
Reserved
- 10. Jenkins Enterprise Themes and Plugins
Large Optimized
Security
Installation Utilization
• Folders • Roles‐based • Auto‐scaling
• Templates Access for VMWare
• Backup Control installations
• Wikitext • Throttled
Descriptions Build
Execution
• Even Load
Strategy
• Skip Next
Build
©2010 CloudBees, Inc. All Rights
©2011 CloudBees, Inc. All
Reserved
10
- 11. Longer term support
Jenkins LTS JE by CloudBees
• Jenkins weekly too • LTS supported for 9
often additional months
• Addressed by LTS – Orgs can be on LTS for 1
year.
– ~ every 3 months
• If you are not on it…you • Orgs get support on
should be! Jenkins and not on a
proprietary release
©2010 CloudBees, Inc. All Rights
Reserved ©2011 CloudBees, Inc. All
11
- 13. Jenkins Enterprise = LTS + plugins
• No forked codebase
– All changes pushed to upstream now
– You can move between main line, LTS, and
JE without a loss
• Version number reflects this
1.424.1.1
©2010 CloudBees, Inc. All Rights 13
Reserved
- 14. Using CloudBees plugins on OSS Jenkins
• If you want to stay on the mainline for
new features, that’d be fine with us!
• Install CloudBees update center as 2nd
update center
– 1.437 or later required
– Run a script* from Groovy Console
* https://raw.github.com/cloudbees/ride‐jenkins/master/ride‐jenkins.groovy
©2010 CloudBees, Inc. All Rights 14
Reserved
- 16. Even load scheduler
• Jenkins assigns jobs to where it run
before
– Many reasons to do this: SCM checkouts,
warm local cache (Maven/ivy/gems)
• But this can create uneven load
Slave 1 Slave 2
Busy Idle
Busy Idle
Idle Idle
©2010 CloudBees, Inc. All Rights 16
Reserved
- 17. Even load scheduler
• With this plugin…
– per job or as global default
• Use this when builds aren’t sticky
– If you are doing full checkout anyway
– Storage is network mounted
©2010 CloudBees, Inc. All Rights 17
Reserved
- 19. Skip Next Build
• Use this when…
– Large refactoring with instability
– External test resources offline for
maintenance
• Similar to “disabled build” in effect but it’ll
come back to normal automatically
©2010 CloudBees, Inc. All Rights 19
Reserved
- 20. Recap: VMWare plugin
• ESXi or vCenter
• Auto-scaling
– Launches/stops VMs based on load
– Automatic IP detection on boot
• Snapshot/restore handling
– Helps you maintain clean slaves
©2010 CloudBees, Inc. All Rights 20
Reserved
- 22. More improvements
• XML/JSON API support on VMWare
objects
• Load statistics graph support
• UUID-based more reliable machine
tracking
©2010 CloudBees, Inc. All Rights 22
Reserved
- 24. Template Plugin
• Ever had a lot of jobs that look similar?
– Changing them all is painful
• Ever wanted to “lock down” the job
setting so that devs only modify a few
things?
©2010 CloudBees, Inc. All Rights 24
Reserved
- 25. Template Plugin in a nutshell
• Actors
– Admins: people who defines templates
– Users: people who use templates
©2010 CloudBees, Inc. All Rights 25
Reserved
- 27. Benefits
• Templates appear as 1st class citizen
– Almost the same result as writing a custom
plugin
• It speaks the terms users understand
– A lot more approachable for busy developers
• Updating is lot less painful
©2010 CloudBees, Inc. All Rights
©2010 CloudBees, Inc. All Reserved
27
- 29. More on templating
• Programmability in transformation
– Via Groovy Server Page or Jelly
– Conditionals, loops, function calls, …
• Models are portable
– You can define it once, deploy elsewhere
©2010 CloudBees, Inc. All Rights 29
Reserved
- 30. More on templating
• Inheritance & composition
Engine
Car
Transmission
Automatic
Manual
©2010 CloudBees, Inc. All Rights 30
Reserved
- 31. Conclusions
• Jenkins Enterprise for more Enterprise-y
features
• Next Steps
– Learn More
• Overview
– http://www.cloudbees.com/jenkins-enterprise-by-
cloudbees.cb
• User guide
– http://wiki.cloudbees.com/bin/view/Jenkins+Enterprise/We
bHome
– Download
• 30 day free trial
©2010 CloudBees, Inc. All Rights 31
Reserved
- 32. Going larger
• Large scale automation beyond simple
build/test/report
– Caveat: not everything is fully cooked
• Verified component integration
• Build pipeline
• Workflow
©2010 CloudBees, Inc. All Rights 32
Reserved
- 33. Going smaller
• Let developers use Jenkins for doing
their private builds
• Validated merge
– Prevent a developer error from appearing in
the trunk
– AKA pre-tested commit
©2010 CloudBees, Inc. All Rights 33
Reserved
- 34. Extensibility
• Many pluggable/extensible aspects
– Proof is in the # of plugins
• Full lifecycle assistance to plugin
development
– Including assistance in IDE
– From skeleton to release
• Reasonable documentation
⇒ resulted in large number of
in‐house custom plugins
©2010 CloudBees, Inc. All Rights
©2010 CloudBees, Inc. All Reserved
34
- 35. Jenkins as a platform
• Extensibility enables Jenkins to be a
building block for in-house tool
integration
• Many available APIs
– HTTP REST, CLI, Java inter-process
remoting
• Example
– IOS build with Jenkins here at Cisco
– Janky by GitHub
©2010 CloudBees, Inc. All Rights 35
Reserved
- 36. CloudBees and Jenkins
• Sponsors OSS Jenkins development
• Provides other resources
– Sponsored Jenkins User Conference
– Bug bounty program
– Fund via donation to SPI
©2010 CloudBees, Inc. All Rights 36
Reserved
- 37. CloudBees and Jenkins
• DEV@cloud
– Hosted Jenkins, utility pricing model
– Simplify deployment and administration
• Jenkins Enterprise by CloudBees
– Subscription
– Technical support + Value-add plugins
©2010 CloudBees, Inc. All Rights 37
Reserved
- 38. Jenkins Enterprise by CloudBees
• In a nutshell
– Subscription
– Technical support + Value-add plugins
• Themes
– For large installations
– Security for enterprise
– Optimized utilization
©2010 CloudBees, Inc. All Rights 38
Reserved
- 39. Long..er term support
Jenkins LTS JE by CloudBees
• Jenkins weekly too • LTS supported for 9
often additional months
• Addressed by LTS – Orgs can be on LTS for 1
year.
– ~ every 3 months
– Mitigating risks
• If you are not on it…you
should be! • Orgs get support on
Jenkins and not on a
proprietary release
– Mitigating risks
©2010 CloudBees, Inc. All Rights
Reserved ©2011 CloudBees, Inc. All
39
- 40. Value-add Plugins
• Hierarchical Folders
– Organize jobs into a tree structure
– Simple security enforcement
• Role-based Access Control
– Split access control from job configuration
– Work with indifferent IT ops
• Templates
– Make your Jenkins “speak” org-specific
terms and build processes
©2010 CloudBees, Inc. All Rights
©2011 CloudBees, Inc. All
Reserved
40
- 41. Demo
©2010 CloudBees, Inc. All Rights
Reserved
- 42. … and more
• Auto-scaling with VMWare ESXi/vCenter
• New scheduler algorithm that prefers
more even loading
• Hypervisor-aware build throttling
• WikiText for XSS prevention
• Backup
©2010 CloudBees, Inc. All Rights
©2011 CloudBees, Inc. All
Reserved
42
- 43. Q&A
©2010 CloudBees, Inc. All Rights
Reserved