Uploaded image for project: 'Bitbucket Cloud'
  1. Bitbucket Cloud
  2. BCLOUD-14006

Environment variable for user who triggered build

    XMLWordPrintable

Details

    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

    Description

      These are the environment variables we can use now: https://confluence.atlassian.com/bitbucket/environment-variables-794502608.html

      I'd also like to have access to the person who triggered the Pipeline, either the Git user who committed/pushed the changes, or the Bitbucket user who manually triggered the Pipeline.

      Ideally this would be provided in the format Full name <email@address.com>, similar to Git.

      Original request

      This ticket also requested the Git commit short hash, but that is easily retrievable either via git directly (git log --format=%h -n1) or by trimming down the BITBUCKET_COMMIT env var (echo $BITBUCKET_COMMIT | cut -c1-7).

      Attachments

        1. 3919055031-Screen%20Shot%202017-03-30%20at%2006.24.48.png
          3919055031-Screen%20Shot%202017-03-30%20at%2006.24.48.png
          38 kB
        2. commits.png
          commits.png
          142 kB
        3. manual.png
          manual.png
          46 kB

        Activity

          People

            Unassigned Unassigned
            9f4b914ad3e8 Matej Vitásek
            Votes:
            18 Vote for this issue
            Watchers:
            12 Start watching this issue

            Dates

              Created:
              Updated: