未验证 提交 c571f314 编写于 作者: J JJ Kasper 提交者: GitHub

Update Azure cache key (#18964)

This updates to use the `Build.SourceVersion` value from the [predefined variables](https://docs.microsoft.com/en-us/azure/devops/pipelines/build/variables?view=azure-devops&tabs=yaml) for the cache key instead of the pull request value since it isn't available after merging to canary. 

x-ref: https://github.com/vercel/next.js/pull/18931
上级 d196e72a
......@@ -13,7 +13,7 @@ stages:
- script: echo $(Agent.BuildDirectory)
- script: dir
- script: dir $(System.DefaultWorkingDirectory)
- script: echo $(System.pullRequest.sourceCommitId)
- script: echo $(Build.SourceVersion)
- powershell: Set-MpPreference -ExclusionPath $(System.DefaultWorkingDirectory)
- powershell: Set-MpPreference -ExclusionPath $(Pipeline.Workspace)/.yarn
- powershell: Set-MpPreference -DisableIntrusionPreventionSystem $true -DisableIOAVProtection $true -DisableRealtimeMonitoring $true -DisableScriptScanning $true -EnableControlledFolderAccess Disabled -EnableNetworkProtection AuditMode -Force -MAPSReporting Disabled -SubmitSamplesConsent NeverSend
......@@ -26,7 +26,7 @@ stages:
inputs:
# use deterministic cache key that is specific
# to this test run
key: $(System.pullRequest.sourceCommitId)
key: $(Build.SourceVersion)
path: $(System.DefaultWorkingDirectory)
displayName: Cache Build
- script: |
......@@ -54,7 +54,7 @@ stages:
inputs:
# use deterministic cache key that is specific
# to this test run
key: $(System.pullRequest.sourceCommitId)
key: $(Build.SourceVersion)
path: $(System.DefaultWorkingDirectory)
displayName: Cache Build
- script: |
......@@ -89,7 +89,7 @@ stages:
inputs:
# use deterministic cache key that is specific
# to this test run
key: $(System.pullRequest.sourceCommitId)
key: $(Build.SourceVersion)
path: $(System.DefaultWorkingDirectory)
displayName: Cache Build
- script: |
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册