Skip to content

Commit 1766843

Browse files
authored
Restore the .NET tools first (#3154)
1 parent 84f5eea commit 1766843

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

scripts/azure-templates-bootstrapper.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -319,14 +319,18 @@ jobs:
319319
- ${{ if ne(parameters.skipSteps, 'true') }}:
320320
- ${{ if eq(parameters.docker, '') }}:
321321
- ${{ if eq(parameters.buildAgent.pool.os, 'windows') }}:
322+
- pwsh: dotnet tool restore
323+
displayName: Restore the .NET tools
324+
condition: and(succeeded(), eq(variables['DOWNLOAD_EXTERNALS'], ''))
325+
retryCountOnTaskFailure: 1
326+
timeoutInMinutes: 5
322327
- pwsh: dotnet cake --info
323328
displayName: Display all the Cake information
324329
condition: and(succeeded(), eq(variables['DOWNLOAD_EXTERNALS'], ''))
325330
retryCountOnTaskFailure: 1
326331
timeoutInMinutes: 5
327332
- pwsh: |
328333
Get-Content $PSCommandPath
329-
dotnet tool restore
330334
${{ parameters.initScript }}
331335
dotnet cake --target=${{ parameters.target }} --verbosity=${{ parameters.verbosity }} --configuration=${{ coalesce(parameters.configuration, 'Release') }} ${{ parameters.additionalArgs }}
332336
@@ -339,14 +343,18 @@ jobs:
339343
retryCountOnTaskFailure: ${{ parameters.retryCount }}
340344
condition: and(succeeded(), eq(variables['DOWNLOAD_EXTERNALS'], ''))
341345
- ${{ if ne(parameters.buildAgent.pool.os, 'windows') }}:
346+
- bash: dotnet tool restore
347+
displayName: Restore the .NET tools
348+
condition: and(succeeded(), eq(variables['DOWNLOAD_EXTERNALS'], ''))
349+
retryCountOnTaskFailure: 1
350+
timeoutInMinutes: 5
342351
- bash: dotnet cake --info
343352
displayName: Display all the Cake information
344353
condition: and(succeeded(), eq(variables['DOWNLOAD_EXTERNALS'], ''))
345354
retryCountOnTaskFailure: 1
346355
timeoutInMinutes: 5
347356
- bash: |
348357
cat ${BASH_SOURCE[0]}
349-
dotnet tool restore
350358
${{ parameters.initScript }}
351359
dotnet cake --target=${{ parameters.target }} --verbosity=${{ parameters.verbosity }} --configuration=${{ coalesce(parameters.configuration, 'Release') }} ${{ parameters.additionalArgs }}
352360

0 commit comments

Comments
 (0)