squeeze more juice from jenkins

47
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

Upload: cloudbees

Post on 14-Jan-2015

2.736 views

Category:

Technology


3 download

DESCRIPTION

Slides from May 27th, 2011 webinar on CloudBees' Pro version of Jenkins that has folders to handle large number of jobs, Role-based access control plugin, VMWare auto-scaling and others.

TRANSCRIPT

Page 1: Squeeze more juice from jenkins

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

Page 2: Squeeze more juice from jenkins

2

•  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).

Housekeeping

©2011 CloudBees, Inc. All Rights Reserved

Page 3: Squeeze more juice from jenkins

Overview What we will be covering today

©2011 CloudBees, Inc. All Rights Reserved

Page 4: Squeeze more juice from jenkins

4

•  Handling large numbers of jobs •  Scaling jobs / using existing infrastructure •  Security •  Backup •  Other plugins

Overview

©2011 CloudBees, Inc. All Rights Reserved

Page 5: Squeeze more juice from jenkins

CloudBees Who are we and what we can do for you?

©2011 CloudBees, Inc. All Rights Reserved

Page 6: Squeeze more juice from jenkins

6

About CloudBees

©2011 CloudBees, Inc. All Rights Reserved

Our  Mission  

Strategy  

Become  the  leading  Pla0orm  as  a  Service  (PaaS)  for  Java™    

Why    We’re  Different  

CloudBees  services  the  complete  lifecycle  of  Cloud  applica>on  development  and  deployment.  No  Servers.  No  Virtual  Machines.  No  IT.  

§  Nectar  –  CloudBees  Pro  version  of  Jenkins  §  DEV@cloud  –  Cloud  Services  for  Developers  §  RUN@cloud  –  FricAonless    runAme  PaaS  for  Java  apps  

Page 7: Squeeze more juice from jenkins

7

CloudBees Jenkins Solutions

©2011 CloudBees, Inc. All Rights Reserved

Professional support from the Experts

Page 8: Squeeze more juice from jenkins

8

CloudBees Jenkins Solutions

©2011 CloudBees, Inc. All Rights Reserved

CloudBees’ Pro version of Jenkins proprietary add-ons, stable release cycle

Professional support from the Experts

Page 9: Squeeze more juice from jenkins

9

CloudBees Jenkins Solutions

©2011 CloudBees, Inc. All Rights Reserved

Self-service “Jenkins as a Service” pay-as-you-go public cloud

DEV@cloud

Professional support from the Experts

CloudBees’ Pro version of Jenkins proprietary add-ons, stable release cycle

Page 10: Squeeze more juice from jenkins

10

CloudBees Jenkins Solutions

©2011 CloudBees, Inc. All Rights Reserved

Self-Service “Jenkins as a Service” for Enterprises

Professional support from the Experts

CloudBees’ Pro version of Jenkins proprietary add-ons, stable release cycle

Self-service “Jenkins as a Service” pay-as-you-go public cloud DEV@cloud

DEV@cloud Private Edition

Page 11: Squeeze more juice from jenkins

11

•  Handling large numbers of jobs – Folders plugin – Job templating

•  Scaling jobs / using existing infrastructure •  Security •  Backup •  Other plugins

Overview

©2011 CloudBees, Inc. All Rights Reserved

Page 12: Squeeze more juice from jenkins

Handling large numbers of jobs Folders plugin

©2011 CloudBees, Inc. All Rights Reserved

Page 13: Squeeze more juice from jenkins

13

•  Create just like jobs •  Acts as a container

•  Select custom icon •  Restrict job types •  Specify environment

variables for all jobs in the folder

Folders plugin

©2011 CloudBees, Inc. All Rights Reserved

Page 14: Squeeze more juice from jenkins

Demo Folders plugin

©2011 CloudBees, Inc. All Rights Reserved

Page 15: Squeeze more juice from jenkins

Handling large numbers of jobs Job Templates

©2011 CloudBees, Inc. All Rights Reserved

Page 16: Squeeze more juice from jenkins

16

•  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

Job Templating

©2011 CloudBees, Inc. All Rights Reserved

Page 17: Squeeze more juice from jenkins

17

•  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

Job Templating

©2011 CloudBees, Inc. All Rights Reserved

Page 18: Squeeze more juice from jenkins

18

ü Handling large numbers of jobs •  Scaling jobs / using existing infrastructure

– VMware auto-scale plugin •  Security •  Backup •  Other plugins

Overview

©2011 CloudBees, Inc. All Rights Reserved

Page 19: Squeeze more juice from jenkins

Scaling jobs / using existing infrastructure VMware auto-scale plugin

©2011 CloudBees, Inc. All Rights Reserved

Page 20: Squeeze more juice from jenkins

20

•  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

Leverage slaves from VMware ESX / vCenter

©2011 CloudBees, Inc. All Rights Reserved

Page 21: Squeeze more juice from jenkins

Demo VMware auto-scale plugin

©2011 CloudBees, Inc. All Rights Reserved

Page 22: Squeeze more juice from jenkins

22

ü Handling large numbers of jobs ü Scaling jobs / using existing infrastructure •  Security

– RBAC – RBAC and Folders – White list / black list

•  Backup •  Other plugins

Overview

©2011 CloudBees, Inc. All Rights Reserved

Page 23: Squeeze more juice from jenkins

Security Role Based Access Control Plugin

©2011 CloudBees, Inc. All Rights Reserved

Page 24: Squeeze more juice from jenkins

24

•  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

Multiple layers of configuration

©2011 CloudBees, Inc. All Rights Reserved

Page 25: Squeeze more juice from jenkins

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

Page 26: Squeeze more juice from jenkins

26

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

Configuring

©2011 CloudBees, Inc. All Rights Reserved

Page 27: Squeeze more juice from jenkins

Demo Setting up RBAC

©2011 CloudBees, Inc. All Rights Reserved

Page 28: Squeeze more juice from jenkins

Security Role Based Access Control Plugin & Folders Plugin

©2011 CloudBees, Inc. All Rights Reserved

Page 29: Squeeze more juice from jenkins

29

Root  

Folder  A  Job  1  

Job  2  

Folder  B  

Job  1  

Job  2  

Job  3  

Groups and roles are inherited

©2011 CloudBees, Inc. All Rights Reserved

Devs Dev

Dev Folder A Devs

Have Dev role if in

Devs group or

Folder A Devs group

Have Dev role if in

Devs group

Page 30: Squeeze more juice from jenkins

30

Root  

Folder  A  Job  1  

Job  2  

Folder  B  

Job  1  

Job  2  

Job  3  

Pinned roles are not inherited

©2011 CloudBees, Inc. All Rights Reserved

Devs Dev

Dev Folder A Devs

Have Dev role if in Folder A

Devs group

Nobody has Dev role

Page 31: Squeeze more juice from jenkins

Demo Using Folders with RBAC

©2011 CloudBees, Inc. All Rights Reserved

Page 32: Squeeze more juice from jenkins

Security Role Based Access Control Plugin & Filtering

©2011 CloudBees, Inc. All Rights Reserved

Page 33: Squeeze more juice from jenkins

33

Root  

Folder  A  Job  1  

Job  2  

Folder  B  

Job  1  

Job  2  

Job  3  

Roles can be filtered

©2011 CloudBees, Inc. All Rights Reserved

Devs Dev

Dev Folder A Devs

Have Dev role if in Folder A

Devs group

Have Dev role if in

Devs group

Page 34: Squeeze more juice from jenkins

Demo Secret projects using Filtering and RBAC

©2011 CloudBees, Inc. All Rights Reserved

Page 35: Squeeze more juice from jenkins

35

ü Handling large numbers of jobs ü Scaling jobs / using existing infrastructure ü Security •  Backup

– Backup plugin •  Other plugins

Overview

©2011 CloudBees, Inc. All Rights Reserved

Page 36: Squeeze more juice from jenkins

Backup Backup plugin

©2011 CloudBees, Inc. All Rights Reserved

Page 37: Squeeze more juice from jenkins

37

Create a backup job Configure what to back up

Backup plugin

©2011 CloudBees, Inc. All Rights Reserved

Page 38: Squeeze more juice from jenkins

Demo Backup plugin

©2011 CloudBees, Inc. All Rights Reserved

Page 39: Squeeze more juice from jenkins

39

ü Handling large numbers of jobs ü Scaling jobs / using existing infrastructure ü Security ü Backup •  Other plugins

– Wiki text

Overview

©2011 CloudBees, Inc. All Rights Reserved

Page 40: Squeeze more juice from jenkins

Other plugins Wiki-text plugin

©2011 CloudBees, Inc. All Rights Reserved

Page 41: Squeeze more juice from jenkins

41

•  Enable security. •  Select the Markup

formatter from: –  Confluence –  MediaWiki –  Textile –  Trac –  Twiki

•  Use the formatting

Wiki-text plugin

©2011 CloudBees, Inc. All Rights Reserved

Page 42: Squeeze more juice from jenkins

Demo Wiki-text plugin

©2011 CloudBees, Inc. All Rights Reserved

Page 43: Squeeze more juice from jenkins

43

ü Handling large numbers of jobs ü Scaling jobs / using existing infrastructure ü Security ü Backup ü Other plugins

Overview

©2011 CloudBees, Inc. All Rights Reserved

Page 44: Squeeze more juice from jenkins

Support Nectar

©2011 CloudBees, Inc. All Rights Reserved

Page 45: Squeeze more juice from jenkins

45

•  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

Nectar

©2011 CloudBees, Inc. All Rights Reserved

Page 46: Squeeze more juice from jenkins

46

•  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

CloudBees Resources

©2011 CloudBees, Inc. All Rights Reserved

Page 47: Squeeze more juice from jenkins

©2011 CloudBees, Inc. All Rights Reserved