gerrit & jenkins workflow: an integrated ci demonstration

11
Gerrit & Jenkins Workflow: An Integrated Demonstration Code Review and Automation, All In Docker For Gerrit User Summit 2015

Upload: vanoorts

Post on 14-Apr-2017

320 views

Category:

Technology


0 download

TRANSCRIPT

Page 1: Gerrit & Jenkins Workflow: An Integrated CI Demonstration

Gerrit & Jenkins Workflow: An Integrated Demonstration

Code Review and Automation, All In DockerFor Gerrit User Summit 2015

Page 2: Gerrit & Jenkins Workflow: An Integrated CI Demonstration

Real World Use Case: Mobile Development

●Gerrit: Centralized Source and Code Review

●Jenkins: Automation and Integration●Repo: Cross-repository Features (Android

use)

Page 3: Gerrit & Jenkins Workflow: An Integrated CI Demonstration

Gerrit/Jenkins Solutions●Gerrit Trigger + chained jobs●Gerrit hooks firing Jenkins jobs ●Multiple Jobs with Gerrit trigger

configured*NEW* Gerrit Trigger + Jenkins Workflow *NEW*

○Available as of Aug 2015○Parameterized trigger: supports workflow as of

Aug 2015

Page 4: Gerrit & Jenkins Workflow: An Integrated CI Demonstration

Gerrit + CI Pain Points●Fast feedback?●Sequences of test

jobs?●Orphaned jobs?

Page 5: Gerrit & Jenkins Workflow: An Integrated CI Demonstration

Workflow

Jenkins Workflow

Page 6: Gerrit & Jenkins Workflow: An Integrated CI Demonstration

Why Gerrit Trigger + Workflow for Gerrit CI integration?

●Gerrit hooks or gerrit trigger on multiple jobs solved a problem: how do I handle multiple parallel jobs?

○This does it a lot more cleanly though●Highly configurable●Built-in concurrency & fail-fast options●Lives in SCM, it can live in Gerrit and be

reviewed separately●Failure handling: try/catch and finally

Page 7: Gerrit & Jenkins Workflow: An Integrated CI Demonstration

Infrastructure

Page 8: Gerrit & Jenkins Workflow: An Integrated CI Demonstration

Standing on the Shoulders of Giants ●Jenkins Gerrit Trigger

Plugin (2011)●Jenkins Workflow (Mid-

2014)●Gerrit Docker Image by ●Gerritforge (April 2015)●Jenkins Docker Image

(Started July 2014)●Repo●Docker all the things

Page 9: Gerrit & Jenkins Workflow: An Integrated CI Demonstration

Show &Tell + Key Points

Page 10: Gerrit & Jenkins Workflow: An Integrated CI Demonstration

Let’s Talk About The Dockerization

Page 11: Gerrit & Jenkins Workflow: An Integrated CI Demonstration

Closing Notes:Blog:

●https://www.cloudbees.com/blog/jenkins-workflow-and-gerrit-putting-pieces-together

Sources:●https://github.com/cloudbees/gerrit-workflow-demo

Email:●[email protected]