git + FTP File Deployment + Bamboo

I'm new to the Atlassian product family and I'm trying to deploy my Stash repos with Bamboo, but I can't quite figure out how to.

My desired workflow is below.

  1. I make commits to my repo locally and push to Stash
  2. Bamboo polls Stash, sees updates and triggers the build
  3. My deploy plan checks out the repo
  4. Artifacts of the files that have changed in the latest git-commit are created
  5. The files are then uploaded via FTP (SCP Task) to a remote server

I've gotten everything working up to Step #4, but then I'm stuck.

Any ideas on how to achieve step #4? Am I approaching this deployment process wrong to begin with (I'm deploying a php website)?

2 answers

1 accepted

I ended up utilizing a project called git-ftp ( to upload only the changed files. So after my deploy plan checks out the repo, I call the python script using the script task and the magic happens.

No artifacts were created, but I'm cool with that.

I hope this helps someone.

I was stuck on the same problem, my simple build job, grab the files from the repository, wasn't producing artifacts. I had the wrong location and ant pattern. For a simple PHP project where all of your files are in the root of the repo, in the artifacts screen, leave the location blank and use the pattern **/*.* which will grab all files in all directories.

My next problem is how to get FTP deployment working :-)

Brett, have you found any solution about scp task configuration?

I'm still stuck on it. I prepare a release artifact, with all my compiled files in it. 

I configure SCP Task and, after the deploy, the logs report everything has gone OK.

But, inside the remote folder, I have a file "r" only (it is the last uploaded one, because it overwrites every file).

Thanks for your help.

Suggest an answer

Log in or Join to answer
Community showcase
Alexey Matveev
Published Saturday in Jira

How to run Jira in a docker container

Everything below is tested on Ubuntu 17.10. I prefer to use Jira in a docker container because: 1. I can install Jira with a couple of commands. 2. I can start and stop Jira just by starting and s...

65 views 1 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