Add branch restriction that allows failed builds on the most recent commit, as long as latest builds are successful

XMLWordPrintable

    • 4

      Currently, Bitbucket has a branch restriction that states the following:

      Minimum number of successful builds for the last commit with no failed builds and no in progress builds

      This is the only build-related branch restriction at this time.

      The requirement here is to add a branch restriction that allows failed builds on the latest commit of a given PR, however, it only does so if the latest build in that PR successful.

      Example description for this branch restriction:

      Check that the latest build for the last commit is successful, ignoring failed builds, and no in progress builds.

      This will allow users to continue with the merge without needing to create a new commit and run additional builds on a newer commit to have a mergeable PR.

            Assignee:
            Unassigned
            Reporter:
            Leonardo M
            Votes:
            3 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: