gerrit

[!NOTE|label:references:]

.gitconfig

default groups

[!TIP]

special references

magic references

  • refs/for/<branch ref>

get project.config

  • clone the repo

  • checkout meta/config

    or

publish to remote

update meta/config if remotes update

reset to remotes

useful refs

sandbox:

its-jira:

  • for project specific

  • for common setup

verified label

change-id

freeze main branch

[!TIP] One quirk is that the shortest possible pattern expansion must be a valid ref name thus ^refs/heads/.*/name will fail because refs/heads//name is not a valid reference but ^refs/heads/.+/name will work.

About the refs/for namespace

[!TIP] references:

refs/for/* syntax is just a short name for refs/for/refs/*:

  • project.config

  • groups

freeze multiple branches (stable & release) for the specific account

  • project.config

    • or using exclusiveGroupPermissions

  • groups

only allow code review merge, forbidden code push

[!TIP|label:references:]

  • restriction for branches (feature1, feature2 and main)

Code-Review 1+1=2

[!NOTE|label:references:]

optional label vote

[!NOTE|label:references:]

sections

[!NOTE|label:references:]

commentlink

receive

change

[!NOTE|label:references:]

plugin

[!NOTE|label:references:]

[!TIP|label:references:]

  • by rules.pl

    non author cr
  • by project.config

  • by submit-requirement

[!TIP] check also:

  • optional validation

optional-check
  • optional validation with auto vote

optional-check-autovote
optional-check-autovote
  • mandatory validation

mandatory check
mandatory check

tips

[!NOTE|label:references:]

integrate in Jenkins

[!NOTE|label:references:]

  • stream-events

  • build current patches only

    [!NOTE] Warning: The current implementation takes into account that 'Build Current Patches Only' with 'Abort new patch sets' and 'Abort patch sets with same topic' are enabled (see help for more).

    gerrit trigger
  • generate ssh-key

css for code block

  • gruvbox

    • background : #272727

    • front-color: #e8dbb6

    gruvbox code block
  • ubunut

    • background : #3a122e

    • front-color: #eee

    ubuntu code block
  • solarized

    • background : #0d2a34

    • front-color: #869395

    solarized code block

Last updated

Was this helpful?