Jira Bamboo deployment using git


I'm planning bamboo featured deployment for my project.

I want to deploy my project after a successfull build using REMOTE SSH command which will checkout latest code. But in this approach I feel that I have to receive success msg from git-checkout return and provide it to the deployment task which will flag it pos/neg.

Furthermore, If I want to make a manual deployment based on particulary branch (auto fetched by deployment plan) can I extract this information in my specified deployment task. For example: if I want to deploy branch release/R1-1 I would use the same plan but I want to send a name this branch to the SSH command script which should check it out and return 1; (exit 0; on failure)

More that I think it will be more realiable to tag each build and pull this tag based on particulary build - it enables a rollback to specifiec tag (build), right?

Is this all possible?

What makes the deployment flagged as succeded?

Do particulary deployment tasks return something?

Should I reveive any of success parameter after processing?

exit 0; is the answer? Is this the only posibillity to "send message" to bamboo that deploy fails?

1 answer

Hello Rafał,

Yes, Bamboo tasks, whatever if they are in normal build plans or deployment projects are failing or suceeding depending on the exit status. In other words, 0 is green, anything else is red.

Now, from your questions, it seems that you need to read exactly how Bamboo Build plans and Deployment plans work. Especially, you need to understand that you should deploy artifacts instead of checking out source code on some remote machine. Those should help:

Anyhow, if you would really want to do this, you can use for example a git-ftp configuration to checkout the files remotely via an SSH Bamboo task.

Hope that helps,


Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 27, 2018 in Portfolio for Jira

Introducing a new planning experience in Portfolio for Jira (Server/DC)

In the past, Portfolio for Jira required a high degree of detail–foresight that was unrealistic for many businesses to   have–in   order to produce a reliable long-term roadmap. We're tur...

2,299 views 12 19
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