37
© 2015 CloudBees, Inc. All Rights Reserved © 2015 CloudBees, Inc. All Rights Reserved Continous Delivery with Jenkins Maria Chiara Ambrosio - Emerasoft Valentina Armenise -CloudBees

Webinar: "Continuous Delivery with Jenkins"

Embed Size (px)

Citation preview

Page 1: Webinar: "Continuous Delivery with Jenkins"

©  2015  Clou

dBees,  Inc.    A

ll  Rights  Reserved  

©  2015  Clou

dBees,  Inc.    A

ll  Rights  Reserved  

Continous Delivery with Jenkins Maria Chiara Ambrosio - Emerasoft Valentina Armenise -CloudBees

Page 2: Webinar: "Continuous Delivery with Jenkins"

©  2015  Clou

dBees,  Inc.    A

ll  Rights  Reserved  

©  2015  Clou

dBees,  Inc.    A

ll  Rights  Reserved  

Emerasoft

2

Page 3: Webinar: "Continuous Delivery with Jenkins"

©  2015  Clou

dBees,  Inc.    A

ll  Rights  Reserved  

Chi siamo?

3

Data di nascita: 2005 Dove siamo: ü  via Po, 1 – Torino ü  via del Poggio Laurentino, 118 - Roma

La nostra mission:

Creare valore per i nostri clienti implementando soluzioni che aumentano la produttività, facilitando la collaborazione.

Page 4: Webinar: "Continuous Delivery with Jenkins"

©  2015  Clou

dBees,  Inc.    A

ll  Rights  Reserved  

Testing solutions

Training: Emerasoft niversity

Ambiti

4

Page 5: Webinar: "Continuous Delivery with Jenkins"

©  2015  Clou

dBees,  Inc.    A

ll  Rights  Reserved  

Partners & Technologie

5

Page 6: Webinar: "Continuous Delivery with Jenkins"

©  2015  Clou

dBees,  Inc.    A

ll  Rights  Reserved  

Alcuni Clienti

6

Page 7: Webinar: "Continuous Delivery with Jenkins"

©  2015  Clou

dBees,  Inc.    A

ll  Rights  Reserved  

Contenuti disponibili su: •  Canale slideshare di Emerasoft

•  Canale Youtube Emerasoft •  www.emerasoft.com

Q&A ?

What’s next?

7

Page 8: Webinar: "Continuous Delivery with Jenkins"

©  2015  Clou

dBees,  Inc.    A

ll  Rights  Reserved  

8

Contatti

Emerasoft Srl via Po, 1 – 10124 Torino via del Poggio Laurentino, 118 – 00144 Roma T +39 011 0120370 T +39 06 87811323 F +39 011 3710371

www.emerasoft.com [email protected]

Page 9: Webinar: "Continuous Delivery with Jenkins"

©  2015  Clou

dBees,  Inc.    A

ll  Rights  Reserved  

©  2015  Clou

dBees,  Inc.    A

ll  Rights  Reserved  

CloudBees

9

Page 10: Webinar: "Continuous Delivery with Jenkins"

©  2015  Clou

dBees,  Inc.    A

ll  Rights  Reserved  

About CloudBees

10

Who are we? We are the premier provider of Jenkins Continuous Integration services and support!

What do we do with Jenkins?

We optimize Jenkins for the enterprise •  Operations Center •  Jenkins OSS Support •  Enterprise-class plugins •  Commit code and support the Jenkins

Community •  Jenkins Training & Consulting •  Jenkins User Conferences & Newsletters

…we are the Jenkins Enterprise experts!

Page 11: Webinar: "Continuous Delivery with Jenkins"

©  2015  Clou

dBees,  Inc.    A

ll  Rights  Reserved  

CloudBees Solutions for Jenkins

11

•  Jenkins Enterprise by CloudBees

•  Jenkins Operations

Center

Dev@Cloud Dev@Cloud Hybrid

On-premise In the Cloud Hybrid

No matter how you use Jenkins!

Page 12: Webinar: "Continuous Delivery with Jenkins"

©  2015  Clou

dBees,  Inc.    A

ll  Rights  Reserved  

Representative CloudBees Customers

12

Financial Services Technology Retail Consumer Embedded

Page 13: Webinar: "Continuous Delivery with Jenkins"

©  2015  Clou

dBees,  Inc.    A

ll  Rights  Reserved  

©  2015  Clou

dBees,  Inc.    A

ll  Rights  Reserved  

Jenkins Enterprise by CloudBees

13

Enterprise Plugins and support for OSS

Page 14: Webinar: "Continuous Delivery with Jenkins"

©  2015  Clou

dBees,  Inc.    A

ll  Rights  Reserved  

Jenkins Enterprise by CloudBees

14

Professional Support High availability Large Installations Security Optimized Utilization

Page 15: Webinar: "Continuous Delivery with Jenkins"

©  2015  Clou

dBees,  Inc.    A

ll  Rights  Reserved  

Jenkins Enterprise by CloudBees

15

Enterprise Plugins

Professional Support

Jenkins OSS Community Plugins

Jenkins Community

Page 16: Webinar: "Continuous Delivery with Jenkins"

©  2015  Clou

dBees,  Inc.    A

ll  Rights  Reserved  

Jenkins Enterprise by CloudBees Plugins

16

High Availability

• High Availability

• Long Running Builds

• Restart Aborted Builds

Large Installation

•  Backup Scheduling

• Consolidated Build View

• Custom Update Center

•  Folders •  Folders Plus •  Plugin Usage • Nodes Plus •  Support plugin •  Templates •  Validated

Merge

Security

• Role-based Access Control (RBAC)

• Secure Copy • WikiText

Descriptions

Optimized Utilization

• Even Load Strategy

• Fast Archiver • Label

Throttled Build Execution

• NIO SSH Slaves

• Skip Next Build

• VMware ESXi/vSphere Auto-Scaling

Continuous Delivery

• Workflow • Workflow

Stage View • Checkpoints

Page 17: Webinar: "Continuous Delivery with Jenkins"

©  2015  Clou

dBees,  Inc.    A

ll  Rights  Reserved  

Jenkins High Availability

17

Jenkins Enterprise Master-1

Jenkins Enterprise Master-N

HA Proxy

JenkinsEnterpriseMaster-N

JenkinsEnterpriseMaster-1

HA Proxy

NAS Storage

NAS Storage

backup

backup

Page 18: Webinar: "Continuous Delivery with Jenkins"

©  2015  Clou

dBees,  Inc.    A

ll  Rights  Reserved  

Security – Role Based Access Control

18

mobile team jobs

android-on-git-push

android-nightly-sonar

android-release

www team jobs

www-on-git-push

www-nightly-sonar

www-release

mobile team

john bas

www team

cyrille

admin team

admin

Page 19: Webinar: "Continuous Delivery with Jenkins"

©  2015  Clou

dBees,  Inc.    A

ll  Rights  Reserved  

Large Installations– Template

19

Builder Template •  The same script is used across a large set

of jobs and only differ by few attributes. •  Maintaining such scripts and avoiding

copy/paste mistakes can be a nightmare on large Jenkins installations.

Builder Template

Jenkins job 1

Script-1

Script-1

Job Template •  The Job template can be used for Jobs

which are similar and share the same configuration

•  No need to maintain those separatly: all the changes made to the template will be replicated automatically to the jobs

Jenkins job 1

Jenkins job 2

Jenkins job 1

Script-1

Job template

Page 20: Webinar: "Continuous Delivery with Jenkins"

©  2015  Clou

dBees,  Inc.    A

ll  Rights  Reserved  

The Workflow plugin

20

•  Programmatic: Build pipelines that are –  Complex/Non-sequential

o Adapt to intra-org software delivery flows

–  Long running o Run in days

–  Pausable o Wait for human input. Build Continuous

Delivery or Deployment flows –  Restart-able

o Recover from master and slave failures o Recover from check-points. Save days

of effort by not starting a pipeline from the beginning.

•  OSS –  No vendor lock-in.

•  Extensible –  Plug into standard or custom deployment

tools

• Programmatic

– Groovy DSL – One job to build pipelines – Loops, try/finally – Native support for

pipelines

• OSS – Workflow engine in OSS

• Extensible – Build extensions to custom

tools

Page 21: Webinar: "Continuous Delivery with Jenkins"

©  2015  Clou

dBees,  Inc.    A

ll  Rights  Reserved  

Workflow in JEBC

21

What is it? How does it help me? Checkpoints Restart workflows

-  Eliminate schedule slips due to master and slave failures

-  Run long running pipelines that survive Jenkins and infrastructure failures

Workflow Stage View Visualize Delivery Pipelines

-  Developers can see how far their commits have gone in the pipeline

-  Managers can see how the release value stream map performs

-  Visualize Pipeline -  See stages executed in a run -  Easily pin-point errors -  Easily see stages paused for

human input -  Easy access to a stage’s log -  Easy access to generated artifacts -  Restart check-pointed runs

Page 22: Webinar: "Continuous Delivery with Jenkins"

©  2015  Clou

dBees,  Inc.    A

ll  Rights  Reserved  

22

Page 23: Webinar: "Continuous Delivery with Jenkins"

©  2015  Clou

dBees,  Inc.    A

ll  Rights  Reserved  

©  2015  Clou

dBees,  Inc.    A

ll  Rights  Reserved  

Demo Use Case

23

Page 24: Webinar: "Continuous Delivery with Jenkins"

©  2015  Clou

dBees,  Inc.    A

ll  Rights  Reserved  

Import of External Groups

24

Page 25: Webinar: "Continuous Delivery with Jenkins"

©  2015  Clou

dBees,  Inc.    A

ll  Rights  Reserved  

Roled Based Matrix Authorization Strategy

25

Page 26: Webinar: "Continuous Delivery with Jenkins"

©  2015  Clou

dBees,  Inc.    A

ll  Rights  Reserved  

Assign Roles to Groups

26

Page 27: Webinar: "Continuous Delivery with Jenkins"

©  2015  Clou

dBees,  Inc.    A

ll  Rights  Reserved  

Pipeline Implemented with Workflow

• Checkout the source code from the repo • Create the package and deploy to maven repository

• Source code Analysis with Sonar • Deploy to Perfs • Jmeter Tests in Test Env • Deploy to QA

o Does this look good? • Deploy to Staging Env

27

Page 28: Webinar: "Continuous Delivery with Jenkins"

©  2015  Clou

dBees,  Inc.    A

ll  Rights  Reserved  

The Workflow Pipeline

28

Authenticated

QA

Page 29: Webinar: "Continuous Delivery with Jenkins"

©  2015  Clou

dBees,  Inc.    A

ll  Rights  Reserved  

Release of the Artifact

• Secured and executable only by Dev-Ops • Ad-hoc job • RBAC and Folder Plugin • Maven release: prepare perform

29

Page 30: Webinar: "Continuous Delivery with Jenkins"

©  2015  Clou

dBees,  Inc.    A

ll  Rights  Reserved  

©  2015  Clou

dBees,  Inc.    A

ll  Rights  Reserved  

Demo Time

30

Page 31: Webinar: "Continuous Delivery with Jenkins"

©  2015  Clou

dBees,  Inc.    A

ll  Rights  Reserved  

©  2015  Clou

dBees,  Inc.    A

ll  Rights  Reserved  

Jenkins Operations Center by CloudBees

31

Page 32: Webinar: "Continuous Delivery with Jenkins"

©  2015  Clou

dBees,  Inc.    A

ll  Rights  Reserved  

Professional support

Jenkins Operations@Scale

Share slaves between masters

Centralized Ops & Management

Ensure security compliance

Ensure plugin version compliance

Jenkins Enterprise by CloudBees

Jenkins Operations Center by CloudBees

Page 33: Webinar: "Continuous Delivery with Jenkins"

©  2015  Clou

dBees,  Inc.    A

ll  Rights  Reserved  

©  2015  Clou

dBees,  Inc.    A

ll  Rights  Reserved  

Summary and Next Steps

33

Page 34: Webinar: "Continuous Delivery with Jenkins"

©  2015  Clou

dBees,  Inc.    A

ll  Rights  Reserved  

§  CloudBees is the leading authority on Jenkins and CI §  CloudBees offers several Jenkins solutions to fit your needs

§ On-premise § In the cloud § Hybrid

§  Jenkins Enterprise by CloudBees offers § Professional support § Enterprise-class plugins

§  Jenkins Operations Center by CloudBees offers § Centralized management and analytics § Horizontal scaling § Lowered capex by sharing slaves

§  DEV@cloud § Jenkins in the cloud for maximum elasticity and scalability § Hybrid mode to leverage on-premise resources

Summary

Page 35: Webinar: "Continuous Delivery with Jenkins"

©  2015  Clou

dBees,  Inc.    A

ll  Rights  Reserved  

• Try a 30-day evaluation – Jenkins Enterprise by CloudBees – Jenkins Operations Center by CloudBees

• cloudbees.com/jenkins

• Find user guides and videos – https://developer.cloudbees.com/bin/view/Jenkins+Enterprise/WebHome

• Tutorial – http://operations-center.cloudbees.com/docs/operations-center-docs-1.1/

tutorial.html

What’s next?

Page 36: Webinar: "Continuous Delivery with Jenkins"

©  2015  Clou

dBees,  Inc.    A

ll  Rights  Reserved  

Up-level your Jenkins Knowledge, Network with Community Experts at a JUC:

•  JUC Cities/Dates – East Coast US (Washington, DC): June 18-19 – Europe (London): June 23-24 – Israel: July (TBD) – West Coast US (San Francisco): September 3-4

•  Apply to Speak at JUC https://www.cloudbees.com/jenkins-user-conference-call-papers

•  Sponsor JUC https://www.cloudbees.com/2015-juc-and-cd-summit-world-tour-sponsorships

36

2015 Jenkins User Conference (JUC) World Tour

Page 37: Webinar: "Continuous Delivery with Jenkins"

©  2015  Clou

dBees,  Inc.    A

ll  Rights  Reserved  

©  2015  Clou

dBees,  Inc.    A

ll  Rights  Reserved