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

Started-By Environment Variable Plugin does not work

      It is expected that the following will print the user that started the job when placed in a shell script:
      echo ${JENKINS_STARTED_BY}

      But it does not. It appears that the value is not populated as it should be.

          [JENKINS-12074] Started-By Environment Variable Plugin does not work

          Stephen Brandwood created issue -

          See the same issue. Would be great if this works.

          peter_schuetze added a comment - See the same issue. Would be great if this works.

          Martin Ba added a comment -

          The plugin works for me on Windows with Jenkins 1.420
          The environment variable is printed as follows:
          JENKINS_STARTED_BY=first.second@ourdomain.com

          So it looks like it may be affected by a change btw. 1.420 and 1.442

          Martin Ba added a comment - The plugin works for me on Windows with Jenkins 1.420 The environment variable is printed as follows: JENKINS_STARTED_BY=first.second@ourdomain.com So it looks like it may be affected by a change btw. 1.420 and 1.442

          This plugin is using UserCause to find the user that started the job, but this has been deprecated and replaced with UserIdCause. I can submit a fix, but I suggest that people just use the Build User Vars plugin instead (https://wiki.jenkins-ci.org/display/JENKINS/Build+User+Vars+Plugin)

          Stephen Brandwood added a comment - This plugin is using UserCause to find the user that started the job, but this has been deprecated and replaced with UserIdCause. I can submit a fix, but I suggest that people just use the Build User Vars plugin instead ( https://wiki.jenkins-ci.org/display/JENKINS/Build+User+Vars+Plugin )
          Aaron Stone made changes -
          Link New: This issue is related to JENKINS-11968 [ JENKINS-11968 ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 142346 ] New: JNJira + In-Review [ 175668 ]

            Unassigned Unassigned
            sbrandwoo Stephen Brandwood
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: