You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
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
- export BITBUCKET_CLONE_DIR='/host/xxxx'
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:
From your avatar, select a workspace.
Select Settings on the left navigation sidebar to open your Workspace settings.
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.