Jenkins email plugin doesn't send email to user who broke the build

前端 未结 4 1326
小蘑菇
小蘑菇 2020-12-16 11:50

I\'ve setup Jenkins to send emails only to users who broke the build using email-ext plugin, but I\'m getting this error:

Not sending mail to unregist

4条回答
  •  忘掉有多难
    2020-12-16 12:10

    OK, after some experiments this is what I found out:

    Jenkins takes the email part of the committer (not the author). For example for a commit message that looks like that:

    Author: John Smith   2017-07-27 17:15:39
    Committer: John Doe   2017-07-27 17:15:39
    Parent: 9c3ff18dda8ca6f7b7ac4ebab4c76d3c85891a33 (commit)
    Branch: master
    

    Jenkins will take "committer1", and create a brand new user under People with User ID "committer1" and email "". Unless that user has a password however, it will be considered unregistered so you need to go to Configure for that user and add a password field to it:

    So this is one way to fix the error, but you have to do it for every user and in a big team it can be tedious.

提交回复
热议问题