Uploaded image for project: 'Bitbucket Data Center'
  1. Bitbucket Data Center
  2. BSERV-3885

Introduce Ability to configure a stash repository to create a plan branch in bamboo on pushing to branch

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • None
    • Repository - Hooks
    • None
    • 1
    • We collect Bitbucket feedback from various sources, and we evaluate what we've collected when planning our product roadmap. To understand how this piece of feedback will be reviewed, see our Implementation of New Features Policy.

    Description

      Background:
      In my company we are in the process of introducing a development pipeline whereby stash is acting as an initial gatekeeper into the mainline git branch. We have configured stash to allow a pull request to be merged only if a peer review has taken place and a bamboo build has passed.

      Problem:
      The current solution which is suggested in order for new branches to be tested by bamboo is to use the automatically manage branches feature in bamboo. However this feature has two limitations.

      • The time between scans for new branches is currently configurable only by using a command line parameter for the jvm. Its setting applies globally to all projects. Its default is 5 minutes. This default is too long when considering the feedback chain. "The earlier a bug is found, the cheaper it costs"
      • The feature appears at least from the surface as inefficient and un-scaleable. I am willing to be corrected. I come to this conclusion as performing regular git operations (to check for branches) on a mounting number of git repositories seems wasteful when stash already knows about every individual change to the git repository.

      Suggested Solution:
      Stash introduces a repository post receive hook which

      • Calls the bamboo api to create a new plan branch if it does not already exist. (/chain/admin/createPlanBranch.action)
      • Instructs bamboo to build the plan branch

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              a12e3b8c6348 Brian Fletcher
              Votes:
              3 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated: