9

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

TSR
  • 17,242
  • 27
  • 93
  • 197

2 Answers2

1

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

tibtof
  • 7,857
  • 1
  • 32
  • 49
0

maybe failing the pipeline once will invalidate the existing cache

Xiang ZHU
  • 365
  • 2
  • 13