Skip to content

Commit ee77543

Browse files
committed
Work CI-CD
- Ad nuget cache to AZDO. ***NO_CI***
1 parent f5c1e89 commit ee77543

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

azure-pipelines.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,19 @@ jobs:
117117
env:
118118
GITHUB_TOKEN: $(GITHUB_TOKEN)
119119

120+
- task: Cache@2
121+
displayName: Cache NuGet packages
122+
condition: >-
123+
and(
124+
succeeded(),
125+
eq(variables['StartReleaseCandidate'], false),
126+
not(startsWith(variables['Build.SourceBranch'], 'refs/tags/v'))
127+
)
128+
continueOnError: true
129+
inputs:
130+
key: 'nuget | **/packages.lock.json'
131+
path: $(UserProfile)/.nuget/packages
132+
120133
- task: NuGetCommand@2
121134
displayName: NuGet restore Test Adapter
122135
retryCountOnTaskFailure: 2

0 commit comments

Comments
 (0)