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

Generate HTTP password for Git


The first user account has now been created but in order to use it with the Git protocol we need to add a minimum level of security on HTTP: generating a random password to be used from the client. Even when used as a sandbox environment, empty passwords are not sufficient to allow a Git client to perform write operations to the repository.

When you go into the top-right drop-down menu, displaying the name of the user logged in, select the settings link.

The following screenshot shows the Gerrit Settings link:

The user settings screen allows you to customize all information, preferences, and security settings for the current user. In this scenario we only want to specify an HTTP password for the Git protocol, so you need to select HTTP Password and then click on the Generate Password button. A new random password is generated and stored in the Gerrit DB associated to the user.

To simplify the copy-and-paste of the password, Gerrit web-UI includes a simple icon...