Book Image

Learning Gerrit Code Review

By : Luca Milanesio
Book Image

Learning Gerrit Code Review

By: Luca Milanesio

Overview of this book

<p>Developing software is now more than ever before a globally distributed activity: agile methodologies that worked well enough with co-located teams now need to be empowered with additional tools such as Gerrit code review to allow the developers to share, discuss, and cooperate in a more social way, even with GitHub.</p> <p>Learning Gerrit Code Review is a practical guide that provides you with step-by-step instructions for the installation, configuration, and use of Gerrit code review. Using this book speeds up your adoption of Gerrit through the use of a unique, consolidated set of recipes ready to be used for LDAP authentication and to integrate Gerrit with Jenkins and GitHub.</p> <p>Learning Gerrit Code Review looks at the workflow benefits of code review in an agile development team, breaks it down into simple steps, and puts it into action without any hassle. It will guide you through the installation steps of Gerrit by showing you the most typical setup and configuration schemes used in private networks.</p> <p>You will also learn how to effectively use Gerrit with GitHub in order to provide the ability to add more consistent code review functionality to the social collaboration tools provided by the GitHub platform. Using the two tools together, you will be able to reuse your existing accounts and integrate your GitHub community into the development lifecycle while keeping in touch with external contributors.</p>
Table of Contents (17 chapters)
Learning Gerrit Code Review
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Summary


In this chapter, we have learned how to download Gerrit WAR and perform a default installation for a sandbox environment. Gerrit requires Java, Git, and a Posix environment as pre-requisites or can simply be installed by using a native setup.

By using the development_become_any_account authentication settings we have been able to create the first user, considered by Gerrit as the system administrator. We have also seen how to create a password in order to use Git over HTTP and we took our first steps with Gerrit by creating a new hello-project.

Gerrit provides easy shortcuts in its web-UI to get the clone commands for the projects: we cloned the hello-project and we created our first Git commit for review.

Change-Id is the unique identifier of a code contribution in the Code Review system: for this purpose we have downloaded and installed from Gerrit a useful commit-msg hook in order to generate a Change-Id for our changes.