Skip to content

jarekankowski/bitrise-step-restore-gradle-cache

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Restore Gradle Cache

Step changelog

Restores Gradle caches. This Step needs to be used in combination with Save Gradle Cache.

Description

Restores Gradle dependency caches. This Step needs to be used in combination with Save Gradle Cache.

This Step is based on key-based caching and sets up the cache key and path automatically for Gradle dependencies. If you'd like to change the cache keys, you might want to use the generic Restore cache Step instead.

Related steps

Save Gradle cache

Restore cache

🧩 Get started

Add this step directly to your workflow in the Bitrise Workflow Editor.

You can also run this step directly with Bitrise CLI.

Examples

Check out Workflow Recipes for other platform-specific examples!

Minimal example

steps:
- restore-gradle-cache@1: {}
- android-build@1:
    inputs:
    - module: app
    - variant: debug
- save-gradle-cache@1: {}

⚙️ Configuration

Inputs
Key Description Flags Default
verbose Enable logging additional information for troubleshooting required false
Outputs
Environment Variable Description
BITRISE_CACHE_HIT Indicates if a cache entry was restored. Possible values: - exact: Exact cache hit for the first requested cache key - partial: Cache hit for a key other than the first - false No cache hit, nothing was restored

🙋 Contributing

We welcome pull requests and issues against this repository.

For pull requests, work on your changes in a forked repository and use the Bitrise CLI to run step tests locally.

Note: this step's end-to-end tests (defined in e2e/bitrise.yml) are working with secrets which are intentionally not stored in this repo. External contributors won't be able to run those tests. Don't worry, if you open a PR with your contribution, we will help with running tests and make sure that they pass.

Learn more about developing steps:

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%