Date post: | 14-Apr-2017 |
Category: |
Technology |
Upload: | vanoorts |
View: | 318 times |
Download: | 0 times |
Gerrit & Jenkins Workflow: An Integrated Demonstration
Code Review and Automation, All In DockerFor Gerrit User Summit 2015
Real World Use Case: Mobile Development
●Gerrit: Centralized Source and Code Review
●Jenkins: Automation and Integration●Repo: Cross-repository Features (Android
use)
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
Gerrit + CI Pain Points●Fast feedback?●Sequences of test
jobs?●Orphaned jobs?
Workflow
Jenkins Workflow
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
Infrastructure
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
Show &Tell + Key Points
Let’s Talk About The Dockerization
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]