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

Next challenges

Recent achievements

  • Global
  • Personal


  • Give kudos
  • Received
  • Given


  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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

Where is my Cloned Repository?

I am learning about Pipelines. My objective is to use a pipeline to deploy the code to a Digitalocean server. The SSH and the Server is set.

The pipeline runs without errors but when I go to the server there is nothing there. How can I make cloned repository show up in the destination server?

My Pipeline: 

image: node:12.13.0
- step:
name: Deploy to Staging
deployment: staging
apt-get update && apt-get install -y unzip git
image: mongo

The script:

git clone --bare


git fetch origin --tags

 Then I get the following output:

+ sh

Checking out the source repository

Cloning into bare repository 'myrepo.git'...

Warning: Permanently added the RSA host key for IP address '' to the list of known hosts.

Entering the checked out repository

Downloading the source repository

Warning: Permanently added the RSA host key for IP address '' to the list of known hosts.


 * branch            HEAD       -> FETCH_HEAD

I expected to find the cloned repository in the server but there is nothing there. What is going wrong with my pipeline? Why I can't clone the repo to the server and keep it there? 

1 answer

1 accepted

0 votes
Answer accepted

Hello @Andre,

There's nothing in your pipeline configuration pointing to your remote server in DigitalOcean. Your current script simply clones team1/myrepo repository onto machine that runs the pipeline, that is, Bitbucket machine, not the remote server.

Depending on what your desired deployment mechanism looks like, I'd expect to see either adding another remote to the repo (which is already there, provided by Pipelines, so you don't need to clone it again) and then git push, or maybe rsync, or something else to actually copy the files to the remote server in DigitalOcean.

Hope this helps. Let me know if you have any questions.


Hi @Daniil Penkin

Ok, now I understand, the setup of the remote server in the repository page is not enough to send the app to the server. I must add SSH instructions in the pipeline, something, under script:,  like:

- ssh root@ touch mytxt.txt 

Now it works, 


Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bitbucket

Powering DevOps with Bitbucket Server & Data Center

Hi everyone, The Cloud team recently announced 12 new DevOps features that help developers ship better code, faster   ! While we’re all excited about the new improvements to Bitbucket ...

1,926 views 0 7
Read article

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