jenkinsci / jenkinsci/git-plugin
[JENKINS-9016] Git creates usernames based on 'name' not the email.
- Dominant language
- Java
- Stars
- 694
- Forks
- 1.1k
- Avg merge
- 1h 29m
- Merged PRs (30d)
- 3
Description
I realize mapping git author/commit users back to Jenkin's users is pain, but perhaps it could be done a little better.
Some ideas:
- Try looking up a user's email and comparing that.
- Using the user portion from the email (e.g. someuser@example.com becomes someuser).
- Looking up the user's email in LDAP, if LDAP is being used.
The last would be ideal for us.
Ciao!
---
Originally reported by
docwhat, imported from: Git creates usernames based on 'name' not the email.
Raw content of original issue
I realize mapping git author/commit users back to Jenkin's users is pain, but perhaps it could be done a little better.
Some ideas:
- Try looking up a user's email and comparing that.
- Using the user portion from the email (e.g. someuser@example.com becomes someuser).
- Looking up the user's email in LDAP, if LDAP is being used.
The last would be ideal for us.
Ciao!
environment
```
git plugin 1.1.6
git plugin 2.0, jenkins 1.540, ubuntu 13.10
```
Contributor guide
Assessment
This issue has not been assessed yet.