[
https://issues.jenkins-ci.org/browse/JENKINS-11491?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=161749#comment-161749
]
Hua Zhang commented on JENKINS-11491:
-------------------------------------
We also have this problem, the user email is getting overwritten. In our case,
this does not seem to be always happening, i didn't figure out when the email
is getting overwritten, when not.
> Email of Jenkins user should not be set from email of git user
> --------------------------------------------------------------
>
> Key: JENKINS-11491
> URL: https://issues.jenkins-ci.org/browse/JENKINS-11491
> Project: Jenkins
> Issue Type: Bug
> Components: git
> Reporter: Elliot Winkler
> Assignee: abayer
> Priority: Minor
>
> Hi all - so it seems there are still some issues with how the git plugin
> handles emails. Here's my particular case. All of the people in my company
> have configured their git clients to use their personal email addresses, and
> they use this even when committing to our company projects. I don't want to
> them to have to reconfigure git to use their company email address because
> some of us also have personal git projects we work on. However, I want emails
> coming from Jenkins to go to their company email address. I was expecting
> that if I create a user in Jenkins whose name matches the name portion of a
> git author string, that would be good enough, and I could set the email of
> that Jenkins user to whatever I wanted and Jenkins would send email to that
> user. However, that does not seem to be happening -- the Jenkins user's email
> is getting overwritten with the git author email every time.
> I found a bug that was placed a while back, JENKINS-7156, for which this
> behavior was implemented. I also realize that there have been a few other
> related issues filed since then, and so what should happen when a git commit
> is processed isn't so cut and dry. I just don't think the current behavior
> makes sense -- there shouldn't be any reason that the git plugin should
> overwrite what I set in Jenkins -- otherwise there's no point in being able
> to set an email. Right?
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jenkins-ci.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira