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

Started-By Environment Variable Plugin does not work in manually approved promoted builds

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Start-By Enviorment Varialbe plugin works olny with "Force Promotion" of Promoted Builds plugin.

      In a promotion process, if option "Only when manually approved" (under section "Criteria") is selected, and the user promotes the build (on "Promotion Status" page) by clicking "Approve" button, JENKINS_STARTED_BY will not be correctly populated. In console output:

      Legacy code started this job.  No cause information is available
      ...
      + echo JENKINS_STARTED_BY=
      JENKINS_STARTED_BY=
      

      If this option is not selected, therefore the user can only promote a build by clicking "Force Promotion" (if he has the privilege), then JENKINS_STARTED_BY variable is populated correctly. In console output:

      Started by user john
      ...
      + echo JENKINS_STARTED_BY=john
      JENKINS_STARTED_BY=john
      

      In attachment are screen-shots of a trivial Jenkins job configuration demonstrating the test cases.

        Attachments

          Activity

          Hide
          gkonovalenko Gavriil Konovalenko added a comment -

          Presence of following string in the build log output: "Legacy code started this job. No cause information is available" means that username is not identifiable. Because source for username data is Cause, which is absent.

          I'd suggest to reassign this bug to https://wiki.jenkins-ci.org/display/JENKINS/Promoted+Builds+Plugin , asking to fix absence of build Cause.

          Show
          gkonovalenko Gavriil Konovalenko added a comment - Presence of following string in the build log output: "Legacy code started this job. No cause information is available" means that username is not identifiable. Because source for username data is Cause, which is absent. I'd suggest to reassign this bug to https://wiki.jenkins-ci.org/display/JENKINS/Promoted+Builds+Plugin , asking to fix absence of build Cause.
          Hide
          zhh Hua Zhang added a comment -

          Out of date and no more relevant. Closed.

          Show
          zhh Hua Zhang added a comment - Out of date and no more relevant. Closed.

            People

            • Assignee:
              Unassigned
              Reporter:
              zhh Hua Zhang
            • Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: