build-user-vars-plugin
build-user-vars-plugin copied to clipboard
[JENKINS-25083] use MailAddressResolver for retrieving user email instead of UserProperty
This pull request addresses [build-user-vars-plugin] - Improper resolution of user e-mails](https://issues.jenkins.io/browse/JENKINS-25083)
Follow-up to: Commit 3ff2b523e9663b485ed0cbdb3ab129b64bd5e179
The previous implementation for resolving user email addresses directly utilized UserProperty, which was identified as an improper method for this task. Instead, MailAddressResolver should be used which is specifically designed for inferring email addresses.
Submitter checklist
- [x] Make sure you are opening from a topic/feature/bugfix branch (right side) and not your main branch!
- [x] Ensure that the pull request title represents the desired changelog entry
- [x] Please describe what you did
- [x] Link to relevant issues in GitHub or Jira
- [x] Link to relevant pull requests, esp. upstream and downstream changes
- [x] Ensure you have provided tests - that demonstrates feature works or fixes the issue