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 (https://github.com/ezyang/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 Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Asked 12 hours ago in Confluence

What are the resources that you use to learn more about Atlassian Products?

I am gathering information about resources available for Atlassian product knowledge transferring for a presentation in our local Atlassian User Group. I want to group them in four categories From ...

61 views 3 4
View question

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