-
Type:
Suggestion
-
Resolution: Unresolved
-
Component/s: Pipelines - Variables
-
None
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.