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?
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,
Badges are a great way to show off community activity, whether you’re a newbie or a Champion.Learn more
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!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG