1

I'm trying to set up Atlassian Bamboo trying to get a minimal build plan off the ground. Our current set up is pretty basic. We have several projects that we git clone onto either a stage or a prod server. Currently when we want to deploy we ssh into the correct host, navigate to the directory where the project lives and pull down the changes manually.

Bamboo has an SSH task, but it only allows you to execute one command on that ssh task. I need to run cd /www/stage/project_dir and then git pull origin master. Can someone point me in the right direction in setting this up?

2
  • Do you need to execute these commands on a remote machine? Or on the bamboo server it self? May 19, 2015 at 6:51
  • On a remote machine.
    – BarFooBar
    May 19, 2015 at 18:07

2 Answers 2

2

There is still an open ticket to get the enhancement you want.

To elaborate on Adurbe's answer: You could drop a .sh file onto your server and then call it via Bamboo. Check out this StackOverflow question and look over the answers to find what will be best for you.

1
  • Thanks for the ticket link. Even though it isn't what I wanted to hear it answers the question well.
    – BarFooBar
    May 19, 2015 at 21:43
0

could you not run a batch file/shell script on the server that contains the two commands?

2
  • Although the answer might be correct, maybe you can give a bit more context and example how this would work in combination with Bamboo? The SE QA format works better with well defined answers. May 19, 2015 at 14:51
  • I suppose I could, but I was hoping that there might be a way to specify those steps within Bamboo itself. If the process changes I'd like to just update the plan and not have to worry about updating scripts.
    – BarFooBar
    May 19, 2015 at 18:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.