Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root


1 badge earned


Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!


Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.


Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!


Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

How to override default variable in bitbucket pipeline

Deleted user Apr 06, 2022

Hello community,

I want to override default value for BITBUCKET_CLONE_DIR in bitbucket pipeline. I have tried the below approach to override it. But it doesn't work. any suggestion please?

Thanks in advance.

  - step: &run-tests
      name: run_unit
         - export BITBUCKET_CLONE_DIR='/host/xxxx'

1 answer

1 vote
Caroline R Atlassian Team Apr 08, 2022

Hi, @[deleted], thank you for reaching out to Atlassian Community.

I tested overriding the default variable BITBUCKET_CLONE_DIR on a personal repository using the same command you shared here and it worked for me. Could you please confirm what is the error message you receive?

You can also override a default variable by specifying a variable with the same name in the repository or workspace level. To access and configure a repository variable, you need to be an admin of that repository.

  • You can manage repository variables in Repository settings > Pipelines > Repository variables

  • If you want to set a variable in the workspace level, you can follow the next steps: 

  1. From your avatar, select a workspace. 

  2. Select Settings on the left navigation sidebar to open your Workspace settings. 

  3. In the menu on the left, go to  Pipelines > Workspace variables

In case you would like to read more about variables and secrets, you can access the following doc: 

Please feel free to share any additional information regarding this case.

Kind regards,

Suggest an answer

Log in or Sign up to answer

Atlassian Community Events