A Bamboo Build Plan has several stages. Each of the stages is triggered by a specific branch of a linked remote Bitbucket repository. After the stage of the Bamboo build plan completes successfully, the linked Bamboo deployment environment tasks are triggered.
What specifically do I need to do in order to get the completed deployment environment tasks in Bamboo to trigger a merge of the remote Bitbucket repository code to the next highest branch?
If a merge to the next highest branch in the remote Bitbucket can be triggered from Bamboo at the end of the deployment environment tasks, then that would trigger the running of the next stage of the Bamboo build plan. So that the Bamboo build plan pipeline could continue.
Surely this functionality has been developed and tested, because this auto-merging to the next highest level is an essential enabling technology for a continuous delivery pipeline.