Expose Bitbucket Project Name/Slug as Default Pipeline Variables

XMLWordPrintable

      Summary

      Bitbucket Pipelines currently exposes BITBUCKET_PROJECT_KEY, but does not provide a human‑readable project identifier such as the project name or project slug. Introducing default variables like BITBUCKET_PROJECT_SLUG and/or BITBUCKET_PROJECT_NAME would enable more consistent, self‑describing CI/CD naming patterns without extra API calls or manual configuration.

      Proposed Solution

      Add new default environment variables in Bitbucket Pipelines that expose the project’s human‑readable identifiers, for example:

      • BITBUCKET_PROJECT_SLUG – the project’s URL‑safe slug
      • BITBUCKET_PROJECT_NAME – the project’s display name

      These should be available in all pipeline steps, similar to the existing BITBUCKET_* variables.

            Assignee:
            Unassigned
            Reporter:
            Syahrul
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: