Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Caching a single file (not directory) in pipelines

jtpcsd
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 14, 2018

 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?

1 answer

2 votes
Geoff Crain
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 16, 2018

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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events