I am looking at
https://issues.jenkins.io/browse/JENKINS-70342, but
I'm not sure how the "context" in CanonicalIdResolver is supposed to
be used. The only thing I have seen in the docs is "Can be used (for
example) to distinguish ambiguous committer ID using the SCM URL".
DefaultUserCanonicalIdResolver, User.FullNameIdResolver,
User.UserIDCanonicalIdResolver ignore it; and I have not seen it used
anywhere else, neither giving nor receiving a context. But I'm new
here, there is no easy way to see all the implementations of
CanonicalIdResolver in all the plugins, there is?
The use of "idOrFullName" in resolveCanonicalId() also feels a bit
overspecific? While you could call an email an "id", you could argue
the same about a full name. I may be missing something here.
Should the git plugin ask to resolve
- "Full Name <
m...@email.com>"
- "Full Name" (this already works via User.FullNameIdResolver)
- "
m...@email.com"
- Multiple of them, one after the other
?
Should it use any "context" to say "this is an email"? And if so,
there is any convention between different SCM plugins to say "email"?