Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Can I configure bitbucket-pipelines.yml to fail if the cache fails to download?

slmt January 27, 2018

I just received this fun error:

Cache "maven": Error downloading. Please contact support if this error persists.

Bitbucket Pipelines doesn't consider failure to download the cache a deal-breaker and happily moves on to executing the steps. The problem is that it takes Maven 5-10 minutes to download half the internet before it can run something as mundane as clean.

Is there a way to configure Bitbucket Pipelines to fail the build when the cache fails to download?

1 answer

0 votes
Philip Hodder
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 27, 2018

Hi Steve,

There's currently no way to configure pipelines to fail on *specifically* cache download errors. You could technically check to see if the cached directory exists, but this will become problematic once your cache expires (as then your build will consistently fail).

Thanks,

Phil

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events