We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bc4a4dc commit 0254161Copy full SHA for 0254161
1 file changed
.azure/templates/steps/maven_cache.yaml
@@ -1,9 +1,11 @@
1
steps:
2
- task: Cache@2
3
inputs:
4
- key: 'maven-cache | $(System.JobName) | **/pom.xml'
+ # The first key is used to clean the cache after some time to avoid it getting bigger and bigger
5
+ # Once the cache gets too big, try to bump it to for example `summer-2027`
6
+ key: 'autumn-2025 | maven-cache | $(System.JobName) | **/pom.xml'
7
restoreKeys: |
- maven-cache | $(System.JobName)
- maven-cache
8
+ autumn-2025 | maven-cache | $(System.JobName)
9
+ autumn-2025 | maven-cache
10
path: $(HOME)/.m2/repository
11
displayName: Maven cache
0 commit comments