Skip to content

Commit

Permalink
try again
Browse files Browse the repository at this point in the history
  • Loading branch information
ryfu-msft committed Aug 27, 2024
1 parent 6f71a99 commit 6160cdf
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -347,16 +347,12 @@ jobs:
inputs:
packageFeedSelector: 'nugetOrg'

- task: PowerShell@2
- pwsh: |
Install-Module Microsoft.WinGet.Client -Repository PSGallery -Force
Repair-WingetPackageManager -AllUsers
winget install --id Microsoft.Sysinternals.PsTools -s winget
$env:Path = [System.Environment]::GetEnvironmentVariable("Path","Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path","User")
displayName: Install WinGet and PsExec
inputs:
pwsh: true
targetType: 'inline'
script: |
Install-Module Microsoft.WinGet.Client -Repository PSGallery -Force
Repair-WingetPackageManager
winget install --id Microsoft.Sysinternals.PsTools --accept-source-agreements
$env:Path = [System.Environment]::GetEnvironmentVariable("Path","Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path","User")
condition: succeededOrFailed()
- task: CmdLine@2
Expand Down

0 comments on commit 6160cdf

Please sign in to comment.