The Gerrit server must be registered with the Rational® Adapter for Git
Before you begin
Make sure the Rational Adapter
for Git Gerrit additions are deployed to the Gerrit server.
About this task
Register the Gerrit server to make it known to the Rational Adapter for Git so
that it can be recognized by Gerrit projects.
Procedure
- Point your web browser to the Gerrit home page; for example http://our.gerrit.server/gerrit
The Rational Adapter
for Git banner shows. This is one of the Gerrit additions that you
deployed to the Gerrit server.

- Click the Admin (Administration) icon in the top right
portion of the banner and then click Register This Server.

The Create a New Logical
Adapter page opens in a new web browser window.
.gif)
- Confirm that the Rational Adapter for Git URL matches
the Gerrit server name, for example http://our.gerrit.server/gerrit
- Confirm that Type is Gerrit.
- Click Save.
- The Gerrit server is now registered with the Rational Adapter for Git. The Git Server
Connection page is now displayed. An information message displays
that directs you to further instructions to take the logical adapter
URI and update the same variable in the ./static/oslcConfig.js file.
Complete the steps as instructed.
Important: The
first step shown is incorrect. The first step is to find the installation
location of the Gerrit server.
.gif)
- Restart the Gerrit server.
Results
You have registered the Gerrit server with the Rational Adapter for Git.
What to do next
Register Gerrit projects to make them known to the Change
and Configuration Management project and enable the Gerrit features
of the Rational Adapter
for Git, see
Registering Gerrit projects.