Contenu connexe Similaire à Squeeze more juice from jenkins (20) Squeeze more juice from jenkins1. Get more out of Jenkins
Manage large jobs, RBAC and other with Nectar
May 25th, 2011
Stephen Connolly
Architect, CloudBees, Inc.
©2011 CloudBees, Inc. All Rights Reserved
2. Housekeeping
• The slides will be made available as well
as a link to the replay of this webinar.
• Links will be sent in an email after the
webinar has finished (2-3 days).
©2011 CloudBees, Inc. All Rights Reserved 2
4. Overview
• Handling large numbers of jobs
• Scaling jobs / using existing infrastructure
• Security
• Backup
• Other plugins
©2011 CloudBees, Inc. All Rights Reserved 4
6. About CloudBees
Our
Mission
Become
the
leading
Pla0orm
as
a
Service
(PaaS)
for
Java™
Why
We’re
CloudBees
services
the
complete
lifecycle
of
Cloud
Different
applica>on
development
and
deployment.
No
Servers.
No
Virtual
Machines.
No
IT.
Strategy
§ Nectar
–
CloudBees
Pro
version
of
Jenkins
§ DEV@cloud
–
Cloud
Services
for
Developers
§ RUN@cloud
–
FricAonless
runAme
PaaS
for
Java
apps
©2011 CloudBees, Inc. All Rights Reserved 6
8. CloudBees Jenkins Solutions
CloudBees’ Pro version of Jenkins
proprietary add-ons, stable release cycle
Professional support from the Experts
©2011 CloudBees, Inc. All Rights Reserved 8
9. CloudBees Jenkins Solutions
Self-service “Jenkins as a Service”
pay-as-you-go public cloud
DEV@cloud
CloudBees’ Pro version of Jenkins
proprietary add-ons, stable release cycle
Professional support from the Experts
©2011 CloudBees, Inc. All Rights Reserved 9
10. CloudBees Jenkins Solutions
DEV@cloud Self-Service “Jenkins as a Service”
Private Edition for Enterprises
Self-service “Jenkins as a Service”
DEV@cloud
pay-as-you-go public cloud
CloudBees’ Pro version of Jenkins
proprietary add-ons, stable release cycle
Professional support from the Experts
©2011 CloudBees, Inc. All Rights Reserved 10
11. Overview
• Handling large numbers of jobs
– Folders plugin
– Job templating
• Scaling jobs / using existing infrastructure
• Security
• Backup
• Other plugins
©2011 CloudBees, Inc. All Rights Reserved 11
13. Folders plugin
• Create just like jobs
• Acts as a container
• Select custom icon
• Restrict job types
• Specify environment
variables for all jobs
in the folder
©2011 CloudBees, Inc. All Rights Reserved 13
16. Job Templating
• Define templates of
your jobs / build
steps / publishers
– Fix/infer/hide some
parameters
– Expose the rest in
terms that make
sense in your
domain
– No coding involved.
All from UI
©2011 CloudBees, Inc. All Rights Reserved 16
17. Job Templating
• Change the template and all instances
are updated at once
• Control visibility of plugins at fine-grained
levels
Plugin currently in Beta will be GA for Nectar customers soon
©2011 CloudBees, Inc. All Rights Reserved 17
18. Overview
ü Handling large numbers of jobs
• Scaling jobs / using existing infrastructure
– VMware auto-scale plugin
• Security
• Backup
• Other plugins
©2011 CloudBees, Inc. All Rights Reserved 18
19. Scaling jobs / using existing infrastructure
VMware auto-scale plugin
©2011 CloudBees, Inc. All Rights Reserved
20. Leverage slaves from VMware ESX / vCenter
• Configure pools of
“identical” VMs
• These pools can be
used as a Cloud
• Nectar can start/stop
the VMs as required
• Can revert to
snapshots for
“clean” build
environment
©2011 CloudBees, Inc. All Rights Reserved 20
22. Overview
ü Handling large numbers of jobs
ü Scaling jobs / using existing infrastructure
• Security
– RBAC
– RBAC and Folders
– White list / black list
• Backup
• Other plugins
©2011 CloudBees, Inc. All Rights Reserved 22
24. Multiple layers of configuration
• Roles defined in Nectar
• External Groups from LDAP / AD /
Atlassian Crowd / etc
• Local Groups defined in Nectar
– Configure Roles in Local Groups
– Manage membership in Local Groups
• Users / other Local Groups / External Groups
• Role filtering to restrict inheritance
©2011 CloudBees, Inc. All Rights Reserved 24
25. What are all the new icons for?
Icon What is it What is it for
User Users of Nectar
Group Defined within Nectar
External group Defined in LDAP / AD / etc
System identity Anonymous / Authenticated
Role A set of permissions
Pinned role A role tied to a specific object
©2011 CloudBees, Inc. All Rights Reserved 25
26. Configuring
1. Plan out your roles
2. Enable security
3. Add the roles
4. Save
5. Define Groups
6. Remove Admin
permissions from
Authenticated Role
7. Save
©2011 CloudBees, Inc. All Rights Reserved 26
29. Groups and roles are inherited
Job
1
Have Dev
role if in
Folder
A
Devs group
or
Job
2
Folder A
Devs group
Folder A Dev
Root
Job
1
Devs
Devs Have Dev
Dev
Folder
B
Job
2
role if in
Devs group
Job
3
©2011 CloudBees, Inc. All Rights Reserved 29
30. Pinned roles are not inherited
Job
1
Have Dev
Folder
A
role if in
Folder A
Job
2
Devs group
Folder A Dev
Root
Job
1
Devs
Devs Dev
Folder
B
Job
2
Nobody has
Dev role
Job
3
©2011 CloudBees, Inc. All Rights Reserved 30
33. Roles can be filtered
Job
1
Have Dev
Folder
A
role if in
Folder A
Job
2
Devs group
Folder A Dev
Root
Job
1
Devs
Devs Have Dev
Dev
Folder
B
Job
2
role if in
Devs group
Job
3
©2011 CloudBees, Inc. All Rights Reserved 33
35. Overview
ü Handling large numbers of jobs
ü Scaling jobs / using existing infrastructure
ü Security
• Backup
– Backup plugin
• Other plugins
©2011 CloudBees, Inc. All Rights Reserved 35
39. Overview
ü Handling large numbers of jobs
ü Scaling jobs / using existing infrastructure
ü Security
ü Backup
• Other plugins
– Wiki text
©2011 CloudBees, Inc. All Rights Reserved 39
41. Wiki-text plugin
• Enable security.
• Select the Markup
formatter from:
– Confluence
– MediaWiki
– Textile
– Trac
– Twiki
• Use the formatting
©2011 CloudBees, Inc. All Rights Reserved 41
43. Overview
ü Handling large numbers of jobs
ü Scaling jobs / using existing infrastructure
ü Security
ü Backup
ü Other plugins
©2011 CloudBees, Inc. All Rights Reserved 43
45. Nectar
• Releases every 6 months.
• Supported for 18 months.
• Patches as required
• Plugins supported for life of underlying
release
• Support all plugins
• Nectar 10.10 and Nectar 11.04 released
©2011 CloudBees, Inc. All Rights Reserved 45
46. CloudBees Resources
• CloudBees Resources Page
– http://www.cloudbees.com/support.cb
• Try DEV@cloud & RUN@cloud
– https://grandcentral.cloudbees.com/account/signup
• CloudBees Eclipse Plugin
– http://cloudbees.com/eclipse-plugin.cb
• DEV@cloud Private Edition Beta
Program (DEV@cloud for private clouds)
– http://www.cloudbees.com/dev-pe.cb
©2011 CloudBees, Inc. All Rights Reserved 46