Allow multiple Plan Branches to reference a single VCS branch with plan variable overrides via bamboo specs

XMLWordPrintable

    • Type: Suggestion
    • Resolution: Unresolved
    • None
    • Component/s: Bamboo Specs
    • None
    • 0
    • 2

      We are using Git Flow and need to build develop/master branch against multiple (10) versions of an SDK. The differences in public API between the versions of SDK are minimal so we can use a single set of sources with minimal conditional compilation.

      When code changes are pushed to develop/master we require multiple builds to be triggered against the same VCS branch.

      The only difference between the Plans is a single plan variable which specifies the SDK to build against. This variable needs to be passed to a few Tasks within our job.

      We have this working when configuring via the Bamboo UI, but it appears that Bamboo Specs does not support this way of working.

      We are aware of "branch-override:" but this allows overrides to be applied on a per VCS Branch basis, not per Plan Branch basis, so sadly it does not help this use case.

      Duplicating the Job in Specs has been suggested, but this would mean maintaining (in our case) 10 times the yaml jobs in order to only change 2 characters in each, so this would be a support nightmare.

      I would like to be corrected here but, We do not believe yaml anchors can be used to create multiple instances of the job in the Bamboo Specs, because the "variables:" is at plan level in the yaml than the Jobs.

      We also do not want to have to change the bamboo.yml file in each VCS branch as it would break Git Flow.

              Assignee:
              Unassigned
              Reporter:
              PA Admin
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: