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

Pipelines cache definitions with glob support

    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 nice to choose a single cache-definitions with provided Glob selection.

      The current solution looks like this:

      #!yml
      
      pipelines:
        default:
          - step:
              caches:
                - root
                - service-graphql
                - service-integrations
                - service-logging
      definitions:
        caches:
          root: node_modules
          service-graphql: services/graphql/node_modules
          service-integrations: services/integrations/node_modules
          service-logging: services/logging/node_modules
      

      A more convenient solution would be to use globs as dynamic caching definitions. This is cleaner and the developer does't need to maintain the file each time a new service is added to the project.

      Expectation:

      #!yml
      
      pipelines:
        default:
          - step:
              caches:
                - root
                - services
      
      definitions:
        caches:
          root: node_modules
          services: services/*/node_modules
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              dfb6d708775c Alexandros Fotiadis
              Votes:
              2 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: