Currently Bitbucket Pipelines only exposes BITBUCKET_PROJECT_KEY.
This value is not suitable for human-readable identifiers such as SonarQube project keys, Docker image names, or Helm release names.The project name or project slug is already available in the Bitbucket UI and through the REST API, but it is not exposed as an environment variable.
Providing a variable such as BITBUCKET_PROJECT_SLUG or BITBUCKET_PROJECT_NAME would greatly simplify CI/CD naming standards without requiring additional API calls or manually defined variables.
Use cases:
- SonarQube project keys
- Docker image naming
- Helm release names
- Logging and observabilityExpected behavior:
- A new optional environment variable exposing the project name or project slug
- Clear documentation regarding mutability
Hey @Burak Morallı
Welcome to the community.
I have submitted a feature request on your behalf to expose default variables for Project name and slug. Please vote and watch it to receive updates if it is accepted in the future.
https://jira.atlassian.com/browse/BCLOUD-23957
I hope this helps.
Regards,
Syahrul
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.