[JIRA] (JENKINS-60011) mail to user full name not email

0 views
Skip to first unread message

luckyhk.lee@samsung.com (JIRA)

unread,
Nov 1, 2019, 1:16:03 AM11/1/19
to jenkinsc...@googlegroups.com
Hokwang Lee created an issue
 
Jenkins / Bug JENKINS-60011
mail to user full name not email
Issue Type: Bug Bug
Assignee: Alex Earl
Attachments: image-2019-11-01-12-15-17-783.png
Components: email-ext-plugin, oic-auth-plugin
Created: 2019-11-01 05:15
Priority: Major Major
Reporter: Hokwang Lee

Hello.

 

I am using Jenkins LTS version with email-ext and oic-auth plugin and also p4 plugin for VCS.

 

I have keycloak for OpenID auth, and here's oic-auth setting.

 

The keypoint is Full name field.

I think user name field is for loginid and full name field is for name.

So when I set Full name field to "name".

I can see my name at top section of Jenkins.

 

and then, I create a job for polling per change.

whenever change committed, this job will run and send email to developer using emailext plugin.

I use this pipeline syntax for this.

  post {
    always {
      emailext (
        recipientProviders: [developers()],
        subject: "test",
        body: "test"
      )
    }
  }

At this point,

there was a log like
Warning: user Fistname Last...@company.com has no permission to view job #1091, but sending mail anyway
Failed to create e-mail address for Firstname
 

I think emailext plugin use fullname, not email and username field in oic-auth plugin.

 

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo

luckyhk.lee@samsung.com (JIRA)

unread,
Nov 1, 2019, 1:17:02 AM11/1/19
to jenkinsc...@googlegroups.com
Hokwang Lee updated an issue
Change By: Hokwang Lee
Hello.

 

I am using Jenkins LTS version with email-ext and oic-auth plugin and also p4 plugin for VCS.

 

I have keycloak for OpenID auth, and here's oic-auth setting.

!image-2019-11-01-12-15-17-783.png!

!image-2019-11-01-
12 14 - 17 15 - 21 55 - 563 100 .png!


 

The keypoint is Full name field.

I think user name field is for loginid and full name field is for name.

So when I set Full name field to "name".

I can see my name at top section of Jenkins.

 

and then, I create a job for polling per change.

whenever change committed, this job will run and send email to developer using emailext plugin.

I use this pipeline syntax for this.
{code:java}

  post {
    always {
      emailext (
        recipientProviders: [developers()],
        subject: "test",
        body: "test"
      )
    }
  }
{code}

At this point,

there was a log like
Warning: user Fistname Last...@company.com has no permission to view job #1091, but sending mail anyway
Failed to create e-mail address for Firstname
 

I think emailext plugin use fullname, not email and username field in oic-auth plugin.

 

luckyhk.lee@samsung.com (JIRA)

unread,
Nov 1, 2019, 1:17:03 AM11/1/19
to jenkinsc...@googlegroups.com
Hokwang Lee updated an issue
Hello.

 

I am using Jenkins LTS version with email-ext and oic-auth plugin and also p4 plugin for VCS.

 

I have keycloak for OpenID auth, and here's oic-auth setting.

!image-2019-11-01-12-15-17-783.png!

!image-2019-11-01-14- 15 16 - 55 42 - 100 027 .png!

luckyhk.lee@samsung.com (JIRA)

unread,
Nov 1, 2019, 1:18:02 AM11/1/19
to jenkinsc...@googlegroups.com
Hokwang Lee updated an issue
Hello.

 

I am using Jenkins LTS version with email-ext and oic-auth plugin and also p4 plugin for VCS.

 

I have keycloak for OpenID auth, and here's oic-auth setting.

!image-2019-11-01-12-15-17-783.png!

!image -2019-11-01-14-16-42-027 2 .png!

luckyhk.lee@samsung.com (JIRA)

unread,
Nov 1, 2019, 1:18:04 AM11/1/19
to jenkinsc...@googlegroups.com
Hokwang Lee updated an issue
Change By: Hokwang Lee
Attachment: image 2.png

luckyhk.lee@samsung.com (JIRA)

unread,
Nov 1, 2019, 1:19:02 AM11/1/19
to jenkinsc...@googlegroups.com
Hokwang Lee updated an issue
Hello.

 

I am using Jenkins LTS version with email-ext and oic-auth plugin and also p4 plugin for VCS.

 

I have keycloak for OpenID auth, and here's oic-auth setting.

!image-2019-11-01-12-15-17-783.png!

!image 2.png!


 

The keypoint is Full name field.

I think user name field is for loginid and full name field is for name.

So when I set Full name field to "name".

I can see my name at top section of Jenkins.

 

and then, I create a job for polling per change.

whenever change committed, this job will run and send email to developer using emailext plugin.

I use this pipeline syntax for this.
{code:java}
  post {
    always {
      emailext (
        recipientProviders: [developers()],
        subject: "test",
        body: "test"
      )
    }
  }
{code}
At this point,

there was a log like
Warning: user Fistname Last...@company.com has no permission to view job #1091, but sending mail anyway
Failed to create e-mail address for Firstname
 

I think emailext plugin use fullname, not email and username field in oic-auth plugin.

 


So I set preferred_username for full name in the upper capture.

 

slide.o.mix@gmail.com (JIRA)

unread,
Nov 1, 2019, 9:36:03 AM11/1/19
to jenkinsc...@googlegroups.com
Alex Earl commented on Bug JENKINS-60011
 
Re: mail to user full name not email

Email resolution (from username to email address) is not done directly in the email-ext plugin. Different plugins can implement a MailResolver, each of these is called when the email-ext plugin requests resolution of a username to email address. One of the plugins you have installed is returning the value you are getting. So, this is not an issue with email-ext

slide.o.mix@gmail.com (JIRA)

unread,
Feb 21, 2020, 2:04:03 PM2/21/20
to jenkinsc...@googlegroups.com
Alex Earl updated an issue
 
Change By: Alex Earl
Component/s: email-ext-plugin

slide.o.mix@gmail.com (JIRA)

unread,
Feb 21, 2020, 2:04:04 PM2/21/20
to jenkinsc...@googlegroups.com
Alex Earl assigned an issue to Unassigned
Change By: Alex Earl
Assignee: Alex Earl
Reply all
Reply to author
Forward
0 new messages