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 Sign up to answer
Community showcase
Published Mar 14, 2019 in Bitbucket Pipelines

Building a Bitbucket Pipe as a casual coder :  #!/bin/bash source "$(dirname "$0")/" enable_debug extra_args="" if [[ "${DEBUG}" == "true" ]]; then extra_args="--verbose" fi # mandatory variables R...

296 views 0 12
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