Automation scope for selecting branches automatically for plans with multiple repositories

XMLWordPrintable

    • Type: Suggestion
    • Resolution: Unresolved
    • None
    • Component/s: Plan Branches
    • None
    • 1
    • 1

      Hi Team,

      Problem Statement:

      • Bamboo doesn't allow selecting the branches automatically in plan branches having multiple linked repositories to checkout the code for different branches of repos and verify the changes of those respective branches using the same plan branch code configuration.

      Summary:

      • When we have a plan or a plan branch with multiple linked repositories and want to check out the code and verify the changes for other branches of these multiple repositories, Bamboo should allow us to use the same plan branch configuration.
      • This is a limitation for some projects, as we need to select manually the branches that contain changed code in linked repositories.
      • For example:
        • We have a plan called multi_repos_test which has multiple repositories like below:
        • Under this, we have a plan branch called feature-1.2 with the below linked repository and branch configuration respectively:
        1. Repository name: auto_merging_test Branch: feature/1.2
        2. Repository name: bb test1 Branch: master
        3. Repository name: bb test2 Branch: master
        • Now, I want to use this same plan branch configuration for different branches under these repositories for verifying the code changes of other branches as well. For instance, by selecting the other branches like below and fire the build execution:
        1. Repository name: auto_merging_test Branch: develop3
        2. Repository name: bb test1 Branch: bugfix/1.1
        3. Repository name: bb test2 Branch: release/2022.0.0

      Suggested Solution:

      • Implement a Rest API to fire a build execution by passing the branch values of multiple linked repositories to the curl command and selecting the branches for multiple linked repositories to the desired branch value in a plan.

        1. Plan_configuration.png
          Plan_configuration.png
          156 kB
        2. Planbranch_repo1.png
          Planbranch_repo1.png
          175 kB
        3. planbranch_repo2.png
          planbranch_repo2.png
          173 kB
        4. Planbranch_repo3.png
          Planbranch_repo3.png
          175 kB
        5. Repo3_differentbranch.png
          Repo3_differentbranch.png
          175 kB
        6. Repo1_differentbranch.png
          Repo1_differentbranch.png
          178 kB
        7. Repo2_differentbranch.png
          Repo2_differentbranch.png
          175 kB

              Assignee:
              Unassigned
              Reporter:
              Jyothi Charupalli
              Votes:
              2 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: