Include actor information to the default variables

Issue #18035 duplicate
Kenta Yamamoto staff created an issue

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.


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

curl -L --request GET \
  --header "Accept: application/json" \
  --url "${REPOS}/pipelines/?pagelen=100"

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

Comments (7)

  1. Aneita Yang
    • changed status to open

    Thanks for raising this. We hope to provide this variable for use within the next couple of months.

  2. Log in to comment