Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to delete an Azure Pipeline cache without changing cache key

I have a task that creates a cache

- task: Cache@2
  inputs:
    key: 'sonarCache'
    path: $(SONAR_CACHE)
    cacheHitVar: CACHE_RESTORED
  displayName: Cache Sonar packages

However, the cache got corrupted. So how do I run this pipeline while telling it to ignore any existing cache ?

For some reason, I cannot change the cache key sonarCache

like image 640
TSR Avatar asked Jan 19 '26 19:01

TSR


1 Answers

There's currently no way to do this. Here is what the documentation says: enter image description here

like image 121
tibtof Avatar answered Jan 21 '26 11:01

tibtof



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!