The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

Wildcard for caches path

abobrikovich
March 8, 2019

According to official guide https://confluence.atlassian.com/bitbucket/caching-dependencies-895552876.html :

  • custom caches can define only single path
  • custom caches don't allow wildcards

I use bitbucket for android project with huge native code base, and I use http://conan.io as dependency manager for c++ code.

Because of this I would like to cache this paths:

  • ~/.conan/data/[boost|libcurl]/*/*/*/package 
  • ~/.conan/data/[boost|libcurl]/*/*/*/export/
  • ~/.conan/data/[boost|libcurl]/*/*/*/export_source/

2 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

1 vote
Answer accepted
abobrikovich
April 17, 2019

Use `conan remove --build --src --force '*'` before caching

0 votes
Philip Hodder
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 16, 2019

Hello,

Could you attach and example of your bitbucket-pipelines.yml file?

Can you also check the "Build Teardown" logs of your pipeline, as it's possible that the directories you're trying to cache exceed the size limit of 1GB (after compression).

Thanks,

Phil

abobrikovich
April 17, 2019

Hi

I already solved the problem by `conan remove --build --src --force '*'` and changing cache path to `~/.conan`

Like Philip Hodder likes this
TAGS
AUG Leaders

Atlassian Community Events