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

Enable Default Variables During Preparsing in Bitbucket Pipelines

XMLWordPrintable

    • 1
    • 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.

      Problem Statement

      Currently, default variables like BITBUCKET_BRANCH, BITBUCKET_COMMIT, and others are unavailable when pipelines are triggered by webhooks (e.g., pull request created/updated or push events) during the preparsing phase of Bitbucket Pipelines because these variables are only defined after the pipeline is created. 

      This limitation prevents developers from dynamically configuring pipelines based on these default variables during pre-parsing.

      Proposed Solution for the Feature Request:

      Provide support for default variables (e.g., BITBUCKET_BRANCH, BITBUCKET_COMMIT etc.) during the preparsing phase, even when pipelines are triggered by webhooks (pull requests or push events).

      Ensure these variables are initialized earlier in the pipeline lifecycle, so they are accessible during preparsing.

              Unassigned Unassigned
              40b9b0a8faa9 Karthick S
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated: