Skip to content
Permalink
Browse files

[FIXED JENKINS-9016] If no Jenkins user is found for the commit's use…

…r.name value, use the username section of the email address instead.
  • Loading branch information
abayer committed Apr 13, 2011
1 parent dc575dc commit 3607d2ec90f69edcf8cedfcb358ce19a980b8f1a
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/main/java/hudson/plugins/git/GitChangeSet.java
@@ -230,8 +230,11 @@ public User getAuthor() {
throw new RuntimeException("No author in this changeset!");
}

User user = User.get(csAuthor, true);
User user = User.get(csAuthor, false);

if (user == null)
user = User.get(csAuthorEmail.split("@")[0], true);

// set email address for user if needed
if (fixEmpty(csAuthorEmail) != null) {
try {

0 comments on commit 3607d2e

Please sign in to comment.
You can’t perform that action at this time.