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

Plugin to show user pictures in hudson: gravatar or images stored on a remote http server

    • Icon: New Feature New Feature
    • Resolution: Fixed
    • Icon: Trivial Trivial
    • plugin-proposals
    • None

      It would be nice to have a plugin that add gravatar images or other images from a specific location for the users.

      For gravatars: you compute the email address from username + email domain from the hudson configuration

      For linking images from another server the hudson admin will be supposed to configure only an URL were USERNAME will be replaced with the username. Something like http://pics.example.com/employees/USERNAME.jpg

      This feature will provide an easy solution for adding pictures to the users, both solution will not require users to upload a picture.

          [JENKINS-7494] Plugin to show user pictures in hudson: gravatar or images stored on a remote http server

          That would be really cool ssbarnea

          For gravatar.com we would need to try 1) www.gravatar.com/$USERNAME and if not found, 2) www.gravatar.com/$HASH, where $HASH is equals to md5( $MAIL ).

          Perhaps this should be the behavior for a generic avatar server. So 1) http://pics.example.com/employees/USERNAME.jpg and if not found 2) http://pics.example.com/employees/HASH.jpg.

          WDYT?

          I don't know if there is an extension point available at moment that would let a plug-in to implement this feature though.

          Bruno P. Kinoshita added a comment - That would be really cool ssbarnea For gravatar.com we would need to try 1) www.gravatar.com/$USERNAME and if not found, 2) www.gravatar.com/$HASH, where $HASH is equals to md5( $MAIL ). Perhaps this should be the behavior for a generic avatar server. So 1) http://pics.example.com/employees/USERNAME.jpg and if not found 2) http://pics.example.com/employees/HASH.jpg . WDYT? I don't know if there is an extension point available at moment that would let a plug-in to implement this feature though.

          Code changed in jenkins
          User: Erik Ramfelt
          Path:
          core/src/main/java/hudson/Functions.java
          core/src/main/java/hudson/tasks/UserAvatarResolver.java
          core/src/main/resources/hudson/model/User/builds.jelly
          core/src/main/resources/hudson/model/User/index.jelly
          core/src/main/resources/hudson/model/View/People/index.jelly
          core/src/test/java/hudson/tasks/UserAvatarResolverTest.java
          http://jenkins-ci.org/commit/jenkins/1147884f66bec5607ed3019de9a53366c81dc584
          Log:
          JENKINS-7494 Adding UserAvatarResolver to make it possible for plugins to add avatar images to user pages

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Erik Ramfelt Path: core/src/main/java/hudson/Functions.java core/src/main/java/hudson/tasks/UserAvatarResolver.java core/src/main/resources/hudson/model/User/builds.jelly core/src/main/resources/hudson/model/User/index.jelly core/src/main/resources/hudson/model/View/People/index.jelly core/src/test/java/hudson/tasks/UserAvatarResolverTest.java http://jenkins-ci.org/commit/jenkins/1147884f66bec5607ed3019de9a53366c81dc584 Log: JENKINS-7494 Adding UserAvatarResolver to make it possible for plugins to add avatar images to user pages

          Code changed in jenkins
          User: Erik Ramfelt
          Path:
          core/src/main/java/hudson/tasks/UserAvatarResolver.java
          core/src/test/java/hudson/tasks/UserAvatarResolverTest.java
          test/src/test/java/hudson/model/UserTestCase.java
          test/src/test/java/hudson/model/ViewTest.java
          test/src/test/java/hudson/tasks/UserAvatarResolverTest.java
          http://jenkins-ci.org/commit/jenkins/8cff4d8784bf81f918395875ea38b09c6f6a72c8
          Log:
          JENKINS-7494 Fixed image resource path so it supports a context-path

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Erik Ramfelt Path: core/src/main/java/hudson/tasks/UserAvatarResolver.java core/src/test/java/hudson/tasks/UserAvatarResolverTest.java test/src/test/java/hudson/model/UserTestCase.java test/src/test/java/hudson/model/ViewTest.java test/src/test/java/hudson/tasks/UserAvatarResolverTest.java http://jenkins-ci.org/commit/jenkins/8cff4d8784bf81f918395875ea38b09c6f6a72c8 Log: JENKINS-7494 Fixed image resource path so it supports a context-path

          Code changed in jenkins
          User: Seiji Sogabe
          Path:
          changelog.html
          http://jenkins-ci.org/commit/jenkins/c65d12038826d596a0613709a764020d2488db7d
          Log:
          record changelog for JENKINS-7494

          Compare: https://github.com/jenkinsci/jenkins/compare/35b357f...c65d120

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Seiji Sogabe Path: changelog.html http://jenkins-ci.org/commit/jenkins/c65d12038826d596a0613709a764020d2488db7d Log: record changelog for JENKINS-7494 Compare: https://github.com/jenkinsci/jenkins/compare/35b357f...c65d120

          dogfood added a comment -

          Integrated in jenkins_main_trunk #1171
          JENKINS-7494 Adding UserAvatarResolver to make it possible for plugins to add avatar images to user pages
          JENKINS-7494 Fixed image resource path so it supports a context-path
          record changelog for JENKINS-7494

          Seiji Sogabe : 1147884f66bec5607ed3019de9a53366c81dc584
          Files :

          • core/src/main/resources/hudson/model/User/builds.jelly
          • core/src/main/java/hudson/tasks/UserAvatarResolver.java
          • core/src/main/java/hudson/Functions.java
          • core/src/test/java/hudson/tasks/UserAvatarResolverTest.java
          • core/src/main/resources/hudson/model/User/index.jelly
          • core/src/main/resources/hudson/model/View/People/index.jelly

          Seiji Sogabe : 8cff4d8784bf81f918395875ea38b09c6f6a72c8
          Files :

          • test/src/test/java/hudson/model/UserTestCase.java
          • test/src/test/java/hudson/tasks/UserAvatarResolverTest.java
          • core/src/main/java/hudson/tasks/UserAvatarResolver.java
          • test/src/test/java/hudson/model/ViewTest.java
          • core/src/test/java/hudson/tasks/UserAvatarResolverTest.java

          Seiji Sogabe : c65d12038826d596a0613709a764020d2488db7d
          Files :

          • changelog.html

          dogfood added a comment - Integrated in jenkins_main_trunk #1171 JENKINS-7494 Adding UserAvatarResolver to make it possible for plugins to add avatar images to user pages JENKINS-7494 Fixed image resource path so it supports a context-path record changelog for JENKINS-7494 Seiji Sogabe : 1147884f66bec5607ed3019de9a53366c81dc584 Files : core/src/main/resources/hudson/model/User/builds.jelly core/src/main/java/hudson/tasks/UserAvatarResolver.java core/src/main/java/hudson/Functions.java core/src/test/java/hudson/tasks/UserAvatarResolverTest.java core/src/main/resources/hudson/model/User/index.jelly core/src/main/resources/hudson/model/View/People/index.jelly Seiji Sogabe : 8cff4d8784bf81f918395875ea38b09c6f6a72c8 Files : test/src/test/java/hudson/model/UserTestCase.java test/src/test/java/hudson/tasks/UserAvatarResolverTest.java core/src/main/java/hudson/tasks/UserAvatarResolver.java test/src/test/java/hudson/model/ViewTest.java core/src/test/java/hudson/tasks/UserAvatarResolverTest.java Seiji Sogabe : c65d12038826d596a0613709a764020d2488db7d Files : changelog.html

          redsolo added a comment -

          Ive released a new plugin named gravatar-plugin that will fix this. For more info; https://wiki.jenkins-ci.org/display/JENKINS/Gravatar+plugin

          redsolo added a comment - Ive released a new plugin named gravatar-plugin that will fix this. For more info; https://wiki.jenkins-ci.org/display/JENKINS/Gravatar+plugin

            redsolo redsolo
            ssbarnea Sorin Sbarnea
            Votes:
            4 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: