-
Notifications
You must be signed in to change notification settings - Fork 119
Gerrit configuration
Gerrit can be configured with following options:
connector.type
- set it to gerrit
connector.host
(default: localhost
) - this is your HTTP/HTTPS Gerrit host
connector.port
(default: 80
) - this is your HTTP/HTTPS Gerrit port
connector.path
(default: empty) - set this if your Gerrit is responding on URL path, for example /gerrit/
connector.useHttps
(default: false
) - set to true
if you use HTTPS
connector.username
- Gerrit's user username
connector.password
- Gerrit's user password
Options connector.projectKey
and connector.repositorySlug
are not used with Gerrit, only with Stash.
You can also set up Gerrit scoring with following options:
score.strategy
(default: ScoreAlwaysPass
) - choose your scroing strategy. Available strategies:
-
NoScore
- do not score at all -
ScoreAlwaysPass
- always pass -
ScorePassIfEmpty
- pass only if there are no violations detected -
ScorePassIfNoErrors
- pass only if there are no violations with severity ERROR detected
score.passingKey
(default: Code-Review
) - set up this key if review passes
score.passingValue
(default: 1
) - set up this value if review passes
score.failingKey
(default: Code-Review
) - set up this key if review fails
score.failingValue
(default: -1
) - set up this value if review fails