Add gerrit support

Change-Id: I5acb5070346cd02452dada7d603a54df592b6b1c