Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-60011

mail to user full name not email

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Incomplete
    • Icon: Major Major
    • oic-auth-plugin
    • None

      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 Lastname@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.

       

        1. image 2.png
          31 kB
          Hokwang Lee
        2. image-2019-11-01-12-15-17-783.png
          12 kB
          Hokwang Lee

            mdoubez Michael Doubez
            luckyhorang Hokwang Lee
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: