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

This widget could not be displayed.

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.

This widget could not be displayed.

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 Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Published 4 hours ago in Marketplace Apps

The 7 hacks of highly successful automation

...there's anything I've learnt from working, it's that people are lazy! No offense to anyone reading this, but it's true and we can all admit it. The easier you make something for someone, the more...

26 views 0 7
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