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

Implement pre-commit triggers

XMLWordPrintable

    • 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.

      Allowing commits that break builds means the commit history will include commits that represent broken code. CI is much more useful when the CI implements a pre-commit policy which requires the commit to pass a CI (bamboo) build prior to being accepted as a commit. If the CI build fails, the push to Stash should fail with the appropriate error message(s) and the developer should fix their branch and attempt push to Stash with corrected code. Having this capability completely changes developer culture in that developers must be proactive rather than reactive.

      In a feature branch development model, the pre-commit verification would ensure that the feature + baseline builds as a minimum commit requirement. That would be a good starting point. My assumption here is that Bamboo and Stash would work together to enable this functionality. Stash should see the intent to commit and Bamboo should validate pre-commit conditions. Once validated, Stash should accept or reject the commit accordingly.

            Unassigned Unassigned
            c88f74c68ec2 Brian Jones
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: