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

Add environment variable with current user's name and ID

    XMLWordPrintable

Details

    Description

      Jenkins should provide variables containing the name and ID (e.g. "Thomas Lehmann" and "t.lehmann") of the currently logged in user as environment variables (e.g. JENKINS_USER_NAME="Thomas Lehmann" and JENKINS_USER_ID="t.lehmann").

      For example, this is useful for deployment promotions where the email notification should contain the name of the user that did the promotion.

      Attachments

        Activity

          ntumbal ntmba lobo added a comment -

          why is this not an in-built jenkins feature ?

          ntumbal ntmba lobo added a comment - why is this not an in-built jenkins feature ?
          oleg_nenashev Oleg Nenashev added a comment -

          The feature is supported by https://wiki.jenkins-ci.org/display/JENKINS/Build+User+Vars+Plugin
          Even if the feature would be useful "out of the box", the plugin approach allows to update it without updating of the core

          oleg_nenashev Oleg Nenashev added a comment - The feature is supported by https://wiki.jenkins-ci.org/display/JENKINS/Build+User+Vars+Plugin Even if the feature would be useful "out of the box", the plugin approach allows to update it without updating of the core

          People

            Unassigned Unassigned
            tholewebgods Thomas Lehmann
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: