We are using a grunt package that creates a file in the root of our repository and caching this file could improve our build times via pipelines. Unfortunately the package does not provide means to specify the location of this file. We are opening an issue on the package's repository to see about creating an option, but in the meantime is there a way to cache a single file using custom cache definitions in our bitbucket-pipelines.yml file?
Hi John,
No, unfortunately there is not currently a way to define a cache as a single file.
You could work around this by copying the file into a directory at the end of your build, and copying it out of the directory at the beginning (and defining that directory as a cache).
Hope this helps,
Cheers,
Geoff
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.