# Cache pull failing for Android build

**URL:** <https://discuss.bitrise.io/t/cache-pull-failing-for-android-build/12126>\
**Category:** Question & Answer\
**Created:** [March 1, 2020, 10:06am UTC](https://discuss.bitrise.io/t/cache-pull-failing-for-android-build/12126 "2020-03-01T10:06:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![harsh.signin](https://avatars.discourse-cdn.com/v4/letter/h/e36b37/32.png) [@harsh.signin](https://discuss.bitrise.io/u/harsh.signin)\
**Post date:** [March 1, 2020, 10:06am UTC](https://discuss.bitrise.io/t/cache-pull-failing-for-android-build/12126/1 "2020-03-01T10:06:38Z")

</div>

Cache pull build is failing for my Android build.  
My workflow is as follows :  
Git clone Repository  
[Bitrise.io](http://Bitrise.io) Cache:Pull  
File Downloader  
Install missing Android SDK components  
Android Unit Test  
[Bitrise.io](http://Bitrise.io) Cache:Push  
Deploy to [Bitrise.io](http://Bitrise.io) - Apps, Logs, Artifacts

step cach:pull fails

> Downloading remote cache archive  
> Failed to get cache download url: build cache not found: probably cache not initialised yet (first cache push initialises the cache), nothing to worry about 😉  
> WARN[09:27:54] Step (cache-pull) failed, but was marked as skippable  
> | |  
> ±–±--------------------------------------------------------------±---------+  
> | ! | cache-pull (exit code: 1) | 4.45 sec |  
> ±–±--------------------------------------------------------------±---------+  
> | Issue tracker: [Issues · bitrise-steplib/steps-cache-pull · GitHub](https://github.com/bitrise-steplib/steps-cache-pull/issues) |  
> | Source: [GitHub - bitrise-steplib/steps-cache-pull: Download Cache](https://github.com/bitrise-steplib/steps-cache-pull.git) |  
> ±–±--------------------------------------------------------------±—

cache:push steps gives following log :

> ±-----------------------------------------------------------------------------+
> 
> | (6) cache-push |  
> ±-----------------------------------------------------------------------------+  
> | id: cache-push |  
> | version: 2.2.3 |  
> | collection: [GitHub - bitrise-io/bitrise-steplib: New Bitrise StepLib](https://github.com/bitrise-io/bitrise-steplib.git) |  
> | toolkit: go |  
> | time: 2020-03-01T09:36:57Z |  
> ±-----------------------------------------------------------------------------+  
> | |  
> WARN[09:36:57] The step’s (cache-push) Run-If expression evaluated to false - skipping  
> INFO[09:36:57] The Run-If expression was: .IsCI | and (not .IsPR)  
> | |  
> ±–±--------------------------------------------------------------±---------+  
> | - | cache-push | 1.26 sec |  
> ±–±--------------------------------------------------------------±---------+

Build no : 5f5a70807208af1f

---

<div class="post-metadata">

**Author:** ![koral](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/koral/32/357_2.png) [@koral](https://discuss.bitrise.io/u/koral)\
**Post date:** [March 1, 2020, 12:59pm UTC](https://discuss.bitrise.io/t/cache-pull-failing-for-android-build/12126/2 "2020-03-01T12:59:02Z")

</div>

> [@harsh.signin](#):
>
> The Run-If expression was: .IsCI | and **(not .IsPR)**

It seems that it’s a PR build.  
Cache Push by default works only on non-PR workflows.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/bitrise/original/2X/d/d901cf2aad020f2dd11918afc89ec2089bb87b35.png) [@system](https://discuss.bitrise.io/u/system)\
**Post date:** [March 31, 2020, 1:09pm UTC](https://discuss.bitrise.io/t/cache-pull-failing-for-android-build/12126/3 "2020-03-31T13:09:12Z")

</div>

Closed on March 31, 2020, 1:09pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
