diff --git a/tools/ci_build/github/azure-pipelines/linux-ci-pipeline.yml b/tools/ci_build/github/azure-pipelines/linux-ci-pipeline.yml index 019a365062..b778398b62 100644 --- a/tools/ci_build/github/azure-pipelines/linux-ci-pipeline.yml +++ b/tools/ci_build/github/azure-pipelines/linux-ci-pipeline.yml @@ -14,6 +14,7 @@ jobs: variables: skipComponentGovernanceDetection: true CCACHE_DIR: $(Pipeline.Workspace)/ccache + TODAY: $[format('{0:dd}{0:MM}{0:yyyy}', pipeline.startTime)] pool: Linux-CPU-2019 steps: - task: mspremier.PostBuildCleanup.PostBuildCleanup-task.PostBuildCleanup@3 @@ -42,12 +43,12 @@ jobs: - task: Cache@2 inputs: - key: '"ccache" | "$(Build.SourceBranch)" | "$(Build.SourceVersion)"' + key: '"$(TODAY)" | "$(Build.SourceBranch)" | "$(Build.SourceVersion)"' path: $(CCACHE_DIR) cacheHitVar: CACHE_RESTORED restoreKeys: | - "ccache" | "$(Build.SourceBranch)" - "ccache" + "$(TODAY)" | "$(Build.SourceBranch)" + "$(TODAY)" | displayName: Cach Task - script: |