Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Expose Bitbucket Project Name / Slug as Pipeline Environment Variable

Burak Morallı
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 31, 2025

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 observability

Expected behavior:
  - A new optional environment variable exposing the project name or project slug
  - Clear documentation regarding mutability

1 answer

0 votes
Syahrul
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 4, 2026

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

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events