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 

 

/opt/atlassian/pipelines/agent/build

I read here https://confluence.atlassian.com/bitbucket/environment-variables-794502608.html and it seems that the variable is:

 

BITBUCKET_CLONE_DIR

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.

Daniele

 

1 answer

0 vote

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 https://bitbucket.org/site/master/issues?status=new&status=open 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.

Cheers,

Ana

 

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
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...

2,012 views 1 5
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