Disbale mail notification for project

817 views
Skip to first unread message

Bhavik Bavishi

unread,
Jul 26, 2016, 3:15:09 PM7/26/16
to repo-d...@googlegroups.com
Hi,

Is there a settings to disable all mail for on project ? We are into
evaluating one the project by getting patches from others push them into
gerrit where Jenkins job gets trigger based on new changes. But we found
that Gerrit find the auther email and committer email from patch and
sends notification, which we don't want, so can it be possible to
disable all mail notification for one project ?

Edwin Kempin

unread,
Jul 27, 2016, 4:08:15 AM7/27/16
to Bhavik Bavishi, Repo and Gerrit Discussion
On Tue, Jul 26, 2016 at 9:13 PM, Bhavik Bavishi <bhavikd...@gmail.com> wrote:
Hi,

Is there a settings to disable all mail for on project ? We are into evaluating one the project by getting patches from others push them into gerrit where Jenkins job gets trigger based on new changes. But we found that Gerrit find the auther email and committer email from patch and sends notification, which we don't want, so can it be possible to disable all mail notification for one project ?
You can suppress email notifications on push:
 


--
--
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en

--- You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Bhavik Bavishi

unread,
Jul 27, 2016, 5:37:49 AM7/27/16
to repo-d...@googlegroups.com, Repo and Gerrit Discussion
On 7/27/16 1:37 PM, 'Edwin Kempin' via Repo and Gerrit Discussion wrote:
>
>
> On Tue, Jul 26, 2016 at 9:13 PM, Bhavik Bavishi
> <bhavikd...@gmail.com <mailto:bhavikd...@gmail.com>> wrote:
>
> Hi,
>
> Is there a settings to disable all mail for on project ? We are into
> evaluating one the project by getting patches from others push them
> into gerrit where Jenkins job gets trigger based on new changes. But
> we found that Gerrit find the auther email and committer email from
> patch and sends notification, which we don't want, so can it be
> possible to disable all mail notification for one project ?
>
> You can suppress email notifications on push:
> https://gerrit-review.googlesource.com/Documentation/user-upload.html#notify

Thanks for the suggestion. Just wanted to understand further, by using
git push ... notify=NONE will *not* notify users, which also not update
user in "Reviewers" list on change page.
Does this also make sure that, any subsequent comments added for the
change by Jenkins, will also *not* notifiy users ?

>
>
>
>
> --
> --
> To unsubscribe, email repo-discuss...@googlegroups.com
> <mailto:repo-discuss%2Bunsu...@googlegroups.com>
> More info at http://groups.google.com/group/repo-discuss?hl=en
>
> --- You received this message because you are subscribed to the
> Google Groups "Repo and Gerrit Discussion" group.
> To unsubscribe from this group and stop receiving emails from it,
> send an email to repo-discuss...@googlegroups.com
> <mailto:repo-discuss%2Bunsu...@googlegroups.com>.
> For more options, visit https://groups.google.com/d/optout.
>
>
>
> --
> --
> To unsubscribe, email repo-discuss...@googlegroups.com
> More info at http://groups.google.com/group/repo-discuss?hl=en
>
> ---
> You received this message because you are subscribed to the Google
> Groups "Repo and Gerrit Discussion" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to repo-discuss...@googlegroups.com
> <mailto:repo-discuss...@googlegroups.com>.

Edwin Kempin

unread,
Jul 27, 2016, 5:40:23 AM7/27/16
to Bhavik Bavishi, Repo and Gerrit Discussion


On Wed, Jul 27, 2016 at 11:33 AM, Bhavik Bavishi <bhavikd...@gmail.com> wrote:
Hi Edwin,

On Wed, Jul 27, 2016 at 1:37 PM, Edwin Kempin <eke...@google.com> wrote:


On Tue, Jul 26, 2016 at 9:13 PM, Bhavik Bavishi <bhavikd...@gmail.com> wrote:
Hi,

Is there a settings to disable all mail for on project ? We are into evaluating one the project by getting patches from others push them into gerrit where Jenkins job gets trigger based on new changes. But we found that Gerrit find the auther email and committer email from patch and sends notification, which we don't want, so can it be possible to disable all mail notification for one project ?
You can suppress email notifications on push:

Thanks for the suggestion. Just wanted to understand further, by using git push ... notify=NONE  will *not* notify users,
Yes, with notify=NONE this push will not send any notifications.
 
which also not update user in "Reviewers" list on change page.
No, this option has no effect on who becomes reviewer. So the users are still added as reviewers.
 
Does this also make sure that, any subsequent comments added for the change by Jenkins, will also *not* notifiy users ?
No. But when posting comments through the REST API [1] you can suppress email notifications as well by setting the notify field in ReviewInput [2] to NONE.

Bhavik Bavishi

unread,
Jul 27, 2016, 8:11:00 AM7/27/16
to repo-d...@googlegroups.com, Repo and Gerrit Discussion
Edwin, thanks for the information.
> <mailto:repo-discuss%2Bunsu...@googlegroups.com>
> More info at http://groups.google.com/group/repo-discuss?hl=en
>
> --- You received this message because you are subscribed to
> the Google Groups "Repo and Gerrit Discussion" group.
> To unsubscribe from this group and stop receiving emails
> from it, send an email to
> repo-discuss...@googlegroups.com
> <mailto:repo-discuss%2Bunsu...@googlegroups.com>.
> For more options, visit https://groups.google.com/d/optout.
>
>
>
>
>
> --
> --
> To unsubscribe, email repo-discuss...@googlegroups.com
> More info at http://groups.google.com/group/repo-discuss?hl=en
>
> ---
> You received this message because you are subscribed to the Google
> Groups "Repo and Gerrit Discussion" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to repo-discuss...@googlegroups.com
> <mailto:repo-discuss...@googlegroups.com>.

Bhavik Bavishi

unread,
Jul 27, 2016, 9:58:24 AM7/27/16
to repo-d...@googlegroups.com
On 7/27/16 5:40 PM, Bhavik Bavishi wrote:
> Edwin, thanks for the information.
>
> On 7/27/16 3:09 PM, 'Edwin Kempin' via Repo and Gerrit Discussion wrote:
>>
>>
>> On Wed, Jul 27, 2016 at 11:33 AM, Bhavik Bavishi
>> <bhavikd...@gmail.com <mailto:bhavikd...@gmail.com>> wrote:
>>
>> Hi Edwin,
>>
>> On Wed, Jul 27, 2016 at 1:37 PM, Edwin Kempin <eke...@google.com
>> <mailto:eke...@google.com>> wrote:
>>
>>
>>
>> On Tue, Jul 26, 2016 at 9:13 PM, Bhavik Bavishi
>> <bhavikd...@gmail.com <mailto:bhavikd...@gmail.com>>
>> wrote:
>>
>> Hi,
>>
>> Is there a settings to disable all mail for on project ? We
>> are into evaluating one the project by getting patches from
>> others push them into gerrit where Jenkins job gets trigger
>> based on new changes. But we found that Gerrit find the
>> auther email and committer email from patch and sends
>> notification, which we don't want, so can it be possible to
>> disable all mail notification for one project ?
>>
>> You can suppress email notifications on push:
>>
>> https://gerrit-review.googlesource.com/Documentation/user-upload.html#notify
>>
>>
>>
>> Thanks for the suggestion. Just wanted to understand further, by
>> using git push ... notify=NONE will *not* notify users,
>>
>> Yes, with notify=NONE this push will not send any notifications.
I am getting below error ...
! [remote rejected] HEAD -> refs/for/master%notify=NONE ("--notify" is
not a valid option)
I also tried with r=NONE,cc=NONE , but didn't work
! [remote rejected] HEAD -> refs/for/master%r=NONE,cc=NONE (user "NONE"
not found)

Edwin Kempin

unread,
Jul 27, 2016, 10:03:52 AM7/27/16
to Bhavik Bavishi, Repo and Gerrit Discussion
Sorry, this feature is only available in master. I guess you use some older version.
 
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.

Shobha Deepak

unread,
Aug 31, 2016, 10:58:58 AM8/31/16
to Repo and Gerrit Discussion, bhavikd...@gmail.com
Hi Edwin,

I am also seeing the same issue. 

ERROR:
! [remote rejected] HEAD -> refs/for/master%notify=NONE ("--notify" is not a valid option)

I am using  Gerrit Code Review (2.12-3-gf59848c)

Please suggest. 

Thanks,
Shobha
E

For more options, visit https://groups.google.com/d/optout.

Edwin Kempin

unread,
Aug 31, 2016, 11:00:47 AM8/31/16
to Shobha Deepak, Repo and Gerrit Discussion, Bhavik Bavishi
On Wed, Aug 31, 2016 at 4:55 PM, Shobha Deepak <shobhad...@gmail.com> wrote:
Hi Edwin,

I am also seeing the same issue. 

ERROR:
! [remote rejected] HEAD -> refs/for/master%notify=NONE ("--notify" is not a valid option)

I am using  Gerrit Code Review (2.12-3-gf59848c)
Gerrit 2.12 doesn't support the notify option on push.
It's only coming with Gerrit 2.13.
 

Please suggest. 

Thanks,
Shobha

            More info at
http://groups.google.com/group/repo-discuss?hl=en

            --- You received this message because you are subscribed to
            the Google Groups "Repo and Gerrit Discussion" group.
            To unsubscribe from this group and stop receiving emails
            from it, send an email to
            repo-discuss...@googlegroups.com

            For more options, visit https://groups.google.com/d/optout.





--
--
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en

---
You received this message because you are subscribed to the Google
Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to repo-discuss...@googlegroups.com

For more options, visit https://groups.google.com/d/optout.


--
--
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en

--- You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
--
To unsubscribe, email repo-discuss+unsubscribe@googlegroups.com

More info at http://groups.google.com/group/repo-discuss?hl=en

---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss+unsubscribe@googlegroups.com.

Bhavik Bavishi

unread,
Aug 31, 2016, 3:09:28 PM8/31/16
to repo-d...@googlegroups.com
Hi Shobha,

I don't know your use-case, but for me I set "sendemail.allowrcpt"[1] to
whitelist.

[1]
https://ctflatest.collab.net/gerrit/Documentation/config-gerrit.html#sendemail.allowrcpt

On 8/31/16 8:25 PM, Shobha Deepak wrote:
> Hi Edwin,
>
> I am also seeing the same issue.
>
> *ERROR:*
> ! [remote rejected] HEAD -> refs/for/master%notify=NONE ("--notify" is
> not a valid option)
>
> I am using *Gerrit Code Review
> <https://www.gerritcodereview.com/> (2.12-3-gf59848c)*
> *
> *
> Please suggest.
>
> Thanks,
> Shobha
> E
>
> On Wednesday, July 27, 2016 at 10:03:52 AM UTC-4, Edwin Kempin wrote:
>
>
>
> On Wed, Jul 27, 2016 at 3:58 PM, Bhavik Bavishi
> <bhavikd...@gmail.com <javascript:>> wrote:
>
> On 7/27/16 5:40 PM, Bhavik Bavishi wrote:
>
> Edwin, thanks for the information.
>
> On 7/27/16 3:09 PM, 'Edwin Kempin' via Repo and Gerrit
> Discussion wrote:
>
>
>
> On Wed, Jul 27, 2016 at 11:33 AM, Bhavik Bavishi
> <bhavikd...@gmail.com <javascript:>
> <mailto:bhavikd...@gmail.com <javascript:>>> wrote:
>
> Hi Edwin,
>
> On Wed, Jul 27, 2016 at 1:37 PM, Edwin Kempin
> <eke...@google.com <javascript:>
> <mailto:eke...@google.com <javascript:>>> wrote:
>
>
>
> On Tue, Jul 26, 2016 at 9:13 PM, Bhavik Bavishi
> <bhavikd...@gmail.com <javascript:>
> <mailto:bhavikd...@gmail.com <javascript:>>>
> repo-discuss...@googlegroups.com <javascript:>
>
> <mailto:repo-discuss%2Bunsu...@googlegroups.com
> <javascript:>>
> More info at
> http://groups.google.com/group/repo-discuss?hl=en
> <http://groups.google.com/group/repo-discuss?hl=en>
>
> --- You received this message because you
> are subscribed to
> the Google Groups "Repo and Gerrit
> Discussion" group.
> To unsubscribe from this group and stop
> receiving emails
> from it, send an email to
> repo-discuss...@googlegroups.com <javascript:>
>
> <mailto:repo-discuss%2Bunsu...@googlegroups.com
> <javascript:>>.
> For more options, visit
> https://groups.google.com/d/optout
> <https://groups.google.com/d/optout>.
>
>
>
>
>
> --
> --
> To unsubscribe, email repo-discuss...@googlegroups.com
> <javascript:>
> More info at
> http://groups.google.com/group/repo-discuss?hl=en
> <http://groups.google.com/group/repo-discuss?hl=en>
>
> ---
> You received this message because you are subscribed to
> the Google
> Groups "Repo and Gerrit Discussion" group.
> To unsubscribe from this group and stop receiving emails
> from it, send
> an email to repo-discuss...@googlegroups.com <javascript:>
> <mailto:repo-discuss...@googlegroups.com
> <javascript:>>.
> For more options, visit
> https://groups.google.com/d/optout
> <https://groups.google.com/d/optout>.
>
>
>
>
>
> --
> --
> To unsubscribe, email repo-discuss...@googlegroups.com <javascript:>
> More info at http://groups.google.com/group/repo-discuss?hl=en
> <http://groups.google.com/group/repo-discuss?hl=en>
>
> --- You received this message because you are subscribed to the
> Google Groups "Repo and Gerrit Discussion" group.
> To unsubscribe from this group and stop receiving emails from
> it, send an email to repo-discuss...@googlegroups.com <javascript:>.
> For more options, visit https://groups.google.com/d/optout
> <https://groups.google.com/d/optout>.
>
>
> --
> --
> To unsubscribe, email repo-discuss...@googlegroups.com
> More info at http://groups.google.com/group/repo-discuss?hl=en
>
> ---
> You received this message because you are subscribed to the Google
> Groups "Repo and Gerrit Discussion" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to repo-discuss...@googlegroups.com
> <mailto:repo-discuss...@googlegroups.com>.

Shobha Deepak

unread,
Sep 13, 2016, 12:23:21 PM9/13/16
to Repo and Gerrit Discussion, bhavikd...@gmail.com
Hi Bhavik,

Thanks for your reply.

My use-case is as below.

I am a developer, I need to have +2 & merge permission on for topic branches not for master branch.
When I enable this permission, I see that many users are getting emails for every code push I do for topic branch. 
I just need +2 or merge permission but I don't want gerrit send emails for every one who is developer to this repository.

Any help will be appreciated.

Thanks,
Shobha
>                 <mailto:repo-discuss+unsub...@googlegroups.com
>                 <javascript:>>.
>                 For more options, visit
>                 https://groups.google.com/d/optout
>                 <https://groups.google.com/d/optout>.
>
>
>
>
>
>         --
>         --
>         To unsubscribe, email repo-discuss...@googlegroups.com <javascript:>
>         More info at http://groups.google.com/group/repo-discuss?hl=en
>         <http://groups.google.com/group/repo-discuss?hl=en>
>
>         --- You received this message because you are subscribed to the
>         Google Groups "Repo and Gerrit Discussion" group.
>         To unsubscribe from this group and stop receiving emails from
>         it, send an email to repo-discuss...@googlegroups.com <javascript:>.
>         For more options, visit https://groups.google.com/d/optout
>         <https://groups.google.com/d/optout>.
>
>
> --
> --
> To unsubscribe, email repo-discuss...@googlegroups.com
> More info at http://groups.google.com/group/repo-discuss?hl=en
>
> ---
> You received this message because you are subscribed to the Google
> Groups "Repo and Gerrit Discussion" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to repo-discuss...@googlegroups.com

Bhavik Bavishi

unread,
Sep 14, 2016, 1:52:26 AM9/14/16
to repo-d...@googlegroups.com
Hi Shobha,

As Edwin suggested, give a try with REST API [1], instead of UI.

I've not check but CLI as below may help ..

ssh ... gerrit review <CHANGEID,PATCH_NO> --verified +1 --code-review +2
-s -n NONE

where,
--verified for "Verified"
--code-review for "Code-review"
-s for "Submit"
-n for notification

[1]
https://gerrit-review.googlesource.com/Documentation/user-upload.html#notify
> > <mailto:repo-discuss...@googlegroups.com
> <javascript:>
> > <http://groups.google.com/group/repo-discuss?hl=en
> <http://groups.google.com/group/repo-discuss?hl=en>>
> >
> > --- You received this message because you are subscribed
> to the
> > Google Groups "Repo and Gerrit Discussion" group.
> > To unsubscribe from this group and stop receiving emails from
> > it, send an email to repo-discuss...@googlegroups.com
> <javascript:>.
> > For more options, visit https://groups.google.com/d/optout
> <https://groups.google.com/d/optout>
> > <https://groups.google.com/d/optout
> <https://groups.google.com/d/optout>>.
> >
> >
> > --
> > --
> > To unsubscribe, email repo-discuss...@googlegroups.com <javascript:>
> > More info at http://groups.google.com/group/repo-discuss?hl=en
> <http://groups.google.com/group/repo-discuss?hl=en>
> >
> > ---
> > You received this message because you are subscribed to the Google
> > Groups "Repo and Gerrit Discussion" group.
> > To unsubscribe from this group and stop receiving emails from it,
> send
> > an email to repo-discuss...@googlegroups.com <javascript:>
> > <mailto:repo-discuss...@googlegroups.com <javascript:>>.
> > For more options, visit https://groups.google.com/d/optout
> <https://groups.google.com/d/optout>.
>
>
> --
> --
> To unsubscribe, email repo-discuss...@googlegroups.com
> More info at http://groups.google.com/group/repo-discuss?hl=en
>
> ---
> You received this message because you are subscribed to the Google
> Groups "Repo and Gerrit Discussion" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to repo-discuss...@googlegroups.com
> <mailto:repo-discuss...@googlegroups.com>.
Reply all
Reply to author
Forward
0 new messages