-
Bug
-
Resolution: Duplicate
-
Critical
-
None
-
Platform: All, OS: All
We used to have users' email addresses looked up in Perforce, but it has stopped
working. I think this happened in the 1.0.15 release of the plugin.
I found issue 1374 which was a request to implement this lookup in the first
place, and stumbled upon issue 1022 where the submitter mentions a change to
PerforceMailResolver in October (fits with 1.0.15).
Symptom: Mail is sent to "username" instead of "email address" (for users not
already registered in Hudson's list of people).
[JENKINS-4933] User email address lookup in Perforce stopped working
Resolution | New: Fixed [ 1 ] | |
Status | Original: Open [ 1 ] | New: Resolved [ 5 ] |
Were you using Matrix builds, or did you have any slave nodes? I'm the one who
made the change to the PerforceMailResolver. It was relying on an instance
variable that was volitile in a distributed build environment. I suspect that
it only worked when there was only one node, or perhaps it worked so long as it
was called before any distributed builds had run. I didn't see any way to fix
it while also supporting distributed matrix builds.
Isn't there a simple workaround in that you can just edit the user's information
to set the email address manually? I realize that's not ideal, but there's no
equivalent workaround for broken distributed builds, so unless someone can
figure out how to support both, I think the distributed builds are more
important than getting email addresses from perforce. I'm sure it is possible
to do both, I just didn't see how when I looked at it.