Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Gerrit Code Review Email Notifications

I have been working on CI and trying get email notifications from gerrit but fail to do that . I am using this link link text to try configure gerrit email notifications after performing method given when i check the project.config in gitweb it is showing this at the end of project.config file along with other configurations

[project]
      description = Access inherited by all other projects.
[receive]
       requireContributorAgreement = false
       requireSignedOffBy = false
       requireChangeId = true
[submit]
        mergeContent = true
[capability]
        administrateServer = group Administrators
        priority = batch group Non-Interactive Users
        streamEvents = group Non-Interactive Users
[access "refs/*"]
        read = group Administrators
        read = group Anonymous Users
[access "refs/for/refs/*"]
        push = group Registered Users
        pushMerge = group Registered Users
[access "refs/heads/*"]
        create = group Administrators
        create = group Project Owners
        forgeAuthor = group Registered Users
        forgeCommitter = group Administrators
        forgeCommitter = group Project Owners
        push = group Administrators
        push = group Project Owners
        label-Code-Review = -2..+2 group Administrators
        label-Code-Review = -2..+2 group Project Owners
        label-Code-Review = -1..+1 group Registered Users
        label-Verified = -1..+1 group Non-Interactive Users
        submit = group Non-Interactive Users
        editTopicName = +force group Administrators
        editTopicName = +force group Project Owners
[access "refs/meta/config"]
        exclusiveGroupPermissions = read
        read = group Administrators
        read = group Project Owners
        push = group Administrators
        push = group Project Owners
        label-Code-Review = -2..+2 group Administrators
        label-Code-Review = -2..+2 group Project Owners
        submit = group Administrators
        submit = group Project Owners
[access "refs/tags/*"]
        pushTag = group Administrators
        pushTag = group Project Owners
        pushSignedTag = group Administrators
        pushSignedTag = group Project Owners
[label "Code-Review"]
        function = MaxWithBlock
        copyMinScore = true
        value = -2 This shall not be merged
        value = -1 I would prefer this is not merged as is
        value =  0 No score
        value = +1 Looks good to me, but someone else must approve
        value = +2 Looks good to me, approved
[label "Verified"]
        function = MaxWithBlock
        value = -1 Fails
        value = 0 No score
        value = +1 Verified

[notify "team"]
        email = user1@example.lab
        email = admin@example.lab

i dont why email notification is not working please some body help me to solve this