Uploaded image for project: 'Bitbucket Cloud'
  1. Bitbucket Cloud
  2. BCLOUD-9918

Have the ability to list last commits for an account (BB-10969)

    XMLWordPrintable

Details

    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

    Description

      I'm working for an organization which uses a Bitbucket account with over 200 repositories (unlimited users account).
      We're using also a jenkins server for our continuous integration.

      Each configured job may have some polling to watch for changes.
      There is therefore a lot of processes started and many queries sent to Bitbucket.

      I'm sure you're aware of this kind of feature.

      I'm also sure the resulting load is very expensive ...

      We would like to use Bitbucket hook but our context does not allow us to create this king of incoming flow.

      I had the idea to call Bitbucket API to get last updated job and therefore notify jenkins for that changes. This work really nice and decrease the number of processes and requests from ~200 by minutes to 1 or 2 by minutes (depending on the API pagination).

      I used the API v2 which allow to list all Bitbucket repositories for an account and I'm using the updated_on field to define which repositories have been modified since my last call.

      I think this is a misuse of this API and getting a dedicated API will be more efficient and sustainable. For example :

      https://api.bitbucket.org/2.0/repositories/myOrganizationAccount/commits?since=2014-07-10T16:52:21.759158+00:00

      Attachments

        Activity

          People

            Unassigned Unassigned
            legacy-bitbucket-user Legacy Bitbucket Cloud User (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: