I am trying to cache Gradle between runs on Azure Pipelines. My goal is to generate a build on the main branch, cache Gradle, and then use this cache when running pipelines for feature branches, allowing them to run faster
I tried this one but not working between runs of pipelines
`steps:
- task: Cache@2
inputs:
key: ‘gradle | “$(Agent.OS)”
restoreKeys: |
gradle | “$(Agent.OS)”
gradle | ‘*’
path: ‘$(Pipeline.Workspace)/.gradle’
displayName: ‘Cache Gradle’
`