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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.