• Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • crowd2-plugin
    • None
    • Jenkins: 2.222.3
      org.jenkins-ci.plugins:crowd2: 2.0.2

      The Crowd2 plugin is registering users in Jenkins with Full Name = "First Last (username)" instead of just "First Last" or "Display Name" from Crowd.

      Crowd2 is also registering the Jenkins user E-mail address = "username" instead of the actual email address listed in Crowd.

       

      These two combine to mean that no commits from Bitbucket are associated with the actual Jenkins user, causing the culprits email to never send.  Editing every single user in Jenkins to correct the email address and full name is required to have commits map to actual users instead of having additional "users" created as committers.

          [JENKINS-62291] Crowd2 Plugin registering users incorrectly

          On our setup we have Azure Ad => Crowd => Jenkins. Therefore we have username=firstname.lastname@example.com
          After removing all users from https://jenkins.url/asynchPeople/:

          We get three different types of "Full Names"

          1. Firstname Lastname (firstname.lastname@example.com)
          2. Firstname Lastname
          3. firstname.lastname@pinteam.eu

          I assume

          1. Created by crowd2-plugin
          2. Created out of a commit from git user.name="Firstname Lastname"
          3. Created out of a commit from git user.name="firstname.lastname@example.eu"

          Benjamin Brummer added a comment - On our setup we have Azure Ad => Crowd => Jenkins. Therefore we have username=firstname.lastname@example.com After removing all users from https://jenkins.url/asynchPeople/: We get three different types of "Full Names" Firstname Lastname (firstname.lastname@example.com) Firstname Lastname firstname.lastname@pinteam.eu I assume Created by crowd2-plugin Created out of a commit from git user.name="Firstname Lastname" Created out of a commit from git user.name="firstname.lastname@example.eu"

          Bartosz Nowak added a comment -

          As far as I can tell current plugin is having problems with pulling user email from crowd.
          I'm not sure if this a problems with jenkins/crowd or dependencies. 
          This is on my todo list for 2.2.0 upgrade.

          Bartosz Nowak added a comment - As far as I can tell current plugin is having problems with pulling user email from crowd. I'm not sure if this a problems with jenkins/crowd or dependencies.  This is on my todo list for 2.2.0 upgrade.

          Bartosz Nowak added a comment -

          benbrummer 
          I checked code a bit and I think I found a source of this issue.
          Could you check this PR if this fixing you problem?
          https://github.com/jenkinsci/crowd2-plugin/pull/66
           
          In PR checks you can find incremental version of plugin which could be installed manually.
          Please test it first on DEV env first. Mostly, because I'm low at time resources and I'm not always able to test everything.

          Bartosz Nowak added a comment - benbrummer   I checked code a bit and I think I found a source of this issue. Could you check this PR if this fixing you problem? https://github.com/jenkinsci/crowd2-plugin/pull/66   In PR checks you can find incremental version of plugin which could be installed manually. Please test it first on DEV env first. Mostly, because I'm low at time resources and I'm not always able to test everything.

          Bartosz Nowak added a comment -

          Please reopen this if you still see this problem

          Bartosz Nowak added a comment - Please reopen this if you still see this problem

            dumam Bartosz Nowak
            shodgson11 Stephen Hodgson
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: