Jira Bamboo deployment using git

Hello,

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,

Radek

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

2,811 views 11 18
Join discussion

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