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

Force cache upload if it changed

    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

      We build our container on php:7.2 base image. That means that every time a patch version is released, the base image is changed. That happens quote often. We're using docker cache for our build.

      That works great. First build takes a longer time as it compile PHP extensions, etc. Subsequent builds are using the cached layers to speed up the process.

      But when a new patch version of the base image is released, the base image changes. Therefore build pulls whole new image and all the previously cached layers are invalid. It builds the image from scratch and then when build succeeds it does not proceed to upload the cache with following message.

      **Cache "docker": Skipping upload for existing cache**
      Searching for test report files in directories named [test-results, failsafe-reports, test-reports, surefire-reports] down to a depth of 4
      Finished scanning for test reports. Found 0 test report files.
      Merged test suites, total number tests is 0, with 0 failures and 0 errors.
      

      Currently the only workaround I know is to delete the cache every time new patch version of the base image is released.

      Attachments

        Activity

          People

            Unassigned Unassigned
            a8a7159f2533 tomasfejfar
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: