@Lazarenko, Sergey
Welcome to Microsoft Q&A Platform, thanks for posting your query here. Azure DevOps related queries/issues are currently not supported on this Microsoft Q&A platform.
I would request you to please post your queries in dedicated forums as in below links:
https://developercommunity.visualstudio.com/spaces/21/index.html
https://developercommunity.visualstudio.com/t/get-unique-id-from-devops-organization/756710
https://stackoverflow.com/questions/tagged/azure-devops
Cache Task in AzureDevOps doesn't work
Lazarenko, Sergey
46
Reputation points
Hello Community. We have faced an issue with Cache@2 task in Azure DevOps with very typical config. Here is its content:
- task: Cache@2
displayName: Cache Maven Repository
inputs:
key: 'maven_repositories'
cacheHitVar: 'true'
path: $(MAVEN_CACHE_FOLDER)
After that task we have Maven@4 task using
options: '-Dmaven.repo.local=$(MAVEN_CACHE_FOLDER)'
and
variables:
- name: MAVEN_CACHE_FOLDER
value: $(Pipeline.Workspace)/.m2/repository
But, the issue is that while Maven runs, it still downloads all dependencies from Central repository. Any idea, suggestion? Thank you in advance.
Accepted answer
-
ManoharLakkoju 705 Reputation points Microsoft External Staff
2024-02-20T04:32:45.6666667+00:00