Prerequisites

Docker requires a 64-bit OS and version 3.10 or higher of the Linux kernel.

To check your current kernel version, open a terminal and use uname -r to display your kernel version:

 $ uname -r
3.10.0-229.el7.x86_64

Gerrit Command Line Options

To create new changes for review, simply push to the project’s magical refs/for/'branch' ref using any Git client tool: By default all email notifications are sent.

# git push ssh://sshusername@hostname:29418/projectname HEAD:refs/for/branch

No email notification will be sent to anyone

# git push ssh://bot@git.example.com:29418/kernel/common HEAD:refs/for/master%notify=NONE
# git push ssh://bot@git.example.com:29418/kernel/common HEAD:refs/for/master%notify=NONE,notify-to=a@a.com

Only the change owner is notified.

# git push ssh://bot@git.example.com:29418/kernel/common HEAD:refs/for/master%notify=OWNER

Review labels can be applied to the change by using the label (or l) option in the reference

# git push ssh://john.doe@git.example.com:29418/kernel/common HEAD:refs/for/experimental%l=Verified+1
# git push ssh://john.doe@git.example.com:29418/kernel/common HEAD:refs/for/experimental%l=Code-Review+1,l=Verified+1

Command line options for "java -jar gerrit.war"


Gerrit Code Review
usage: java -jar gerrit.war command [ARG ...]

The most commonly used commands are:
  init           Initialize a Gerrit installation
  reindex        Rebuild the secondary index
  daemon         Run the Gerrit network daemons
  gsql           Run the interactive query console
  version        Display the build version number

  ls             List files available for cat
  cat FILE       Display a file from the archive

To create new changes for review, simply push to the project’s magical refs/for/'branch' ref using any Git client tool: By default all email notifications are sent.
		  

Create a the new Git repository in Gerrit via the following command.

# assumes that Gerrit runs on port 29418 # on localhost $ ssh -p 29418 @localhost gerrit create-project demo/gerrittest

How to push for code reviw in Gerrit

git push origin HEAD:refs/for/master

How to push for code reviw in Gerrit

git push ssh://sshusername@hostname:29418/projectname HEAD:refs/for/branch

How to download Gerrit Review hooks in local repository?

gitdir=$(git rev-parse --git-dir); scp -p -P 29418 admin@13.126.112.7:8080:hooks/commit-msg ${gitdir}/hooks/

How to download Gerrit Review hooks in local repository?


curl -Lo .git/hooks/commit-msg http://13.126.112.7:8080/tools/hooks/commit-msg

H

You can install using the yum package manager.

Install with Windows 2016


  Call us on +91 700 483 5930   |   +91 700 483 5706     Contact@DevopsSchool.com