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

Include actor information to the default variables

    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

      Problem Definition

      No pipelines variable is presenting who performed the current build.

      Suggested Solution

      Add something like BITBUCKET_BUILD_ACTOR to default variables of custom pipelines.

      Workaround

      You can retrieve pipeline's actor information as "creator" attribute via REST API like as below:

      REPOS="__USERNAME__/__SLUG__"
      curl -L --request GET \
        --header "Accept: application/json" \
        --url "https://api.bitbucket.org/2.0/repositories/${REPOS}/pipelines/?pagelen=100"
      

      It's a bit messy but probably you can determine the current pipeline with BITBUCKET_BUILD_NUMBER variable.

      Related Documents

      Attachments

        Activity

          People

            Unassigned Unassigned
            kyamamoto@atlassian.com K. Yamamoto
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: