The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

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

DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events