how to change bitbucket pipeline default clone directory

Hi all

probably is not a new question, but I didn't find anything useful, then I ask.

I need to change the pipeline default clone directory, that by default is 



I read here and it seems that the variable is:



I tried to set this in Settings >> Pipeline >> Environment page of my bitbucket project, but no way.


What am I doing wrong?

Thanks in advance.



1 answer

0 votes

Hi Daniele,

The $BITBUCKET_CLONE_DIR variable is for referencing the path so we have the flexibility to change clone dir if needed. It's for internal use only. It's referenced in the article because you can *use* that variable, but it wouldn't make sense to change the value.

If there's a reason why you consider necessary to change the default clone directory, you can submit a Feature request at so we can consider it for future implementation.

Hope this helps!

Just to emphasize this in case it wasn't clear enough in my previous comment, the variable is for customers to use but it's read only, it can only be modified by Atlassian.




Suggest an answer

Log in or Join to answer
Community showcase
Piotr Plewa
Published Dec 27, 2017 in Bitbucket

Recipe: Deploying AWS Lambda functions with Bitbucket Pipelines

Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda&nbsp...

631 views 0 4
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot