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

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Bitbucket pipeline - publish to remote root instead of "build" folder


Hello there. I jut got into the Pipelines feature and Im having a hard time understanding paths. Everytime I run the pipeline below it first creates a "build" folder and then publishes all updated files inside of it. But my app was built in a way that it is very troublesome to run in inside a folder.

Is there a way to force it to publish it to the root of the ftp account?


This is the local path of my private repo:


Below is the script Im using:



- parallel

- step: name: 'Build and Test'

script: - pipe: atlassian/ftp-deploy:0.3.5


USER: 'myUser'

PASSWORD: 'myPass'


REMOTE_PATH: '/httpdocs/'




2 answers

Sure, pushing the whole git repository into '/httpdocs/' sounds like a real security nightmare.

It is crucible to configure the FTP-upload correctly, e.g. in your case it sounds like that setting

  • REMOTE_PATH: '/httpdocs/'

to a different folder is worth a try, for example if "/" expresses the root of your FTP account:

  • REMOTE_PATH: '/'

If in doubt, consult your hosts support and ask about how to obtain the correct path(s).

0 votes

Hi @Eder Wainer and welcome to the community.

I see that you are using the ftp deploy pipe and you have defined httpdocs as REMOTE_PATH.

Just to make sure that I understand the problem correctly:

  • Is the 'build' folder generated on your remote server, inside the 'httpdocs' folder?
  • Do you generate a folder named 'build' anywhere in your Pipelines build?
  • Do you already have a folder named 'build' in your repo?
  • Does this 'build' folder on your server contain all files of $BITBUCKET_CLONE_DIR?

I can reach out to one of the developers and check whether this is expected behavior or not, I just want to make sure that I have a correct understanding of the issue first.

Kind regards,

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Trello

Taco Tuesday: Your favorite Trello blog takeaway

Hello friends! From the community that brought you Welcome Wednesday, Throwback Thursday and Friday Fun, welcome to Taco Tuesday, a weekly discussion about all things Trello. The best part? One Tac...

59 views 4 3
Join discussion

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you