Gerrit Trigger and email notification

46 views
Skip to first unread message

李大明

unread,
Jan 15, 2015, 11:21:14 PM1/15/15
to jenkins...@googlegroups.com
I set up a Jenkins server and use gerrit trigger, I want to configure Jenkins to send notification mail when build fail.

Problems are

1. Jenkins list commits that are merged in to target branch, not the commit in patchset. That causes some confusion

2. Jenkins knowns only user name from gerrit, but no email address, so I got

Failed to send e-mail to xxxx because no e-mail address is known, and no default e-mail domain is configured

Does "LDAP Email Plugin" solve this issue?


Robert Sandell

unread,
Jan 19, 2015, 6:37:03 AM1/19/15
to jenkins...@googlegroups.com
Are you using the Gerrit Trigger Build Chooser? It should only select the patch set that triggered the build to be in the change list.

/B

李大明

unread,
Jan 26, 2015, 3:53:32 AM1/26/15
to jenkins...@googlegroups.com
Yes, I use Gerrit trigger.

I finally solve this by using $GERRIT_PATCHSET_UPLOADER_EMAIL varible So that I can mail to the specific user.

Robert Sandell於 2015年1月19日星期一 UTC+8下午7時37分03秒寫道:
Reply all
Reply to author
Forward
0 new messages