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

Name cache by the hash of a file

    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

      It would be incredible if we could name the cache based off of the hash of the contents of a file. Primarily because if the file doesn't change then the hash will be the same, therefore we know there is no need to update the cache as well is if we should retrieve the cache.

      For example:
      Say I have a package.json that contains a list of js dependencies for my project. At the beginning of the pipeline there is a check that hashes the contents of my package.json and if it matches any of my caches then it will pull it down. Otherwise cache won't be pulled down and on completion of a pipeline a new cache will be created.

      As a result we ensure we always have the proper dependencies and potentially speed up the pipeline as well.

      To solve the problem of potential lingering cache we can delete cache that was using this method after a given period of time like a week or two.

      Attachments

        Activity

          People

            Unassigned Unassigned
            49902d7a0e1e bsell
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: