1 Copyright ©2012 CollabNet, Inc. All Rights Reserved. ENTERPRISE CLOUD DEVELOPMENT Code Quality Gate Wizard For Gerrit Now as easy as defining an email filter Johannes Nicolai, Jacek Centkowski Potsdam Engineering Office CollabNet
Jun 27, 2015
1 Copyright ©2012 CollabNet, Inc. All Rights Reserved. ENTERPRISE CLOUD DEVELOPMENT
Code Quality Gate Wizard For Gerrit Now as easy as defining an email filter
Johannes Nicolai, Jacek Centkowski
Potsdam Engineering Office CollabNet
2 Copyright ©2012 CollabNet, Inc. All Rights Reserved.
Agenda
• Introduction to Code Quality Gates
– What problem does it solve?
– How does the solution technically look like?
– Where to find out more?
• Live Demo
• Q & A
3 Copyright ©2012 CollabNet, Inc. All Rights Reserved.
Gerrit – Code Quality Gate Wizard – General Concept
4 Copyright ©2012 CollabNet, Inc. All Rights Reserved.
Tackling half baked review requests: Marrying Gerrit and Jenkins
master
CI Build: OK CI Build: OK
A1 local
master
Verified: -1 (build failed)
Verified: +1 (build OK)
refs/for/master C2
push
C2
C2*
C2*
push
Reviewed: +2
C2* A1
5 Copyright ©2012 CollabNet, Inc. All Rights Reserved.
Code Quality Gate Wizard
Code Quality Gate Wizard for Gerrit (Gerrit 2.8+)
– comes with a bunch of predefined policies and lets you graphically design your own quality gates as easy as defining email filter rules.
– Examples:
• Four-eye peer review
• Legal has to approve copyright file changes
• Senior staff has to approve the work of juniors
• Democratic feature voting
– More details under http://blogs.collab.net/git
6 Copyright ©2012 CollabNet, Inc. All Rights Reserved.
Live Demo
7 Copyright ©2012 CollabNet, Inc. All Rights Reserved.
Gerrit – Code Quality Gate Wizard – General Concept
8 Copyright ©2012 CollabNet, Inc. All Rights Reserved.
Prezi on Quality Gates for Gerrit http://prezi.com/2s2ukhpg53or/?utm_campaign=share&utm_medium=copy
4-Eye-Principle Illustrated http://prezi.com/sbfm_jtuohel/?utm_campaign=share&utm_medium=copy&rc=ex0share
Git Blogs (3 part series) http://blogs.collab.net/git
Learn More
9 Copyright ©2012 CollabNet, Inc. All Rights Reserved. 9 Copyright ©2012 CollabNet, Inc. All Rights Reserved.
Q&A
10 Copyright ©2012 CollabNet, Inc. All Rights Reserved.
Gerrit – Code Quality Gate Wizard – How to launch
11 Copyright ©2012 CollabNet, Inc. All Rights Reserved.
Gerrit – Code Quality Gate Wizard – Predefined templates
12 Copyright ©2012 CollabNet, Inc. All Rights Reserved.
Gerrit – Code Quality Gate Wizard – Built In Test Mode
13 Copyright ©2012 CollabNet, Inc. All Rights Reserved.
Gerrit – Code Quality Gate Wizard – Based on existing changes
14 Copyright ©2012 CollabNet, Inc. All Rights Reserved.
Gerrit – Code Quality Gate Wizard – Great Flexibility