Skip to content

Commit

Permalink
Do not use the powershell step
Browse files Browse the repository at this point in the history
Alternative to #19257
  • Loading branch information
mattleibow committed Dec 6, 2023
1 parent 1f8b824 commit 4359893
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions eng/pipelines/common/device-tests-steps.yml
Expand Up @@ -21,7 +21,7 @@ steps:
skipProvisioning: ${{ eq(parameters.platform, 'windows') }}
provisionatorChannel: ${{ parameters.provisionatorChannel }}

- pwsh: ./build.ps1 --target=dotnet --configuration="Release" --verbosity=diagnostic
- script: pwsh build.ps1 --target=dotnet --configuration="Release" --verbosity=diagnostic
displayName: 'Install .NET'
retryCountOnTaskFailure: 3
env:
Expand All @@ -43,7 +43,7 @@ steps:
- pwsh: Move-Item -Path artifacts\${{ parameters.artifactName }}\*.nupkg -Destination artifacts -Force
displayName: Move the downloaded artifacts

- pwsh: ./build.ps1 --target=dotnet-local-workloads --verbosity=diagnostic
- script: pwsh build.ps1 --target=dotnet-local-workloads --verbosity=diagnostic
displayName: 'Install .NET (Local Workloads)'
retryCountOnTaskFailure: 3
workingDirectory: ${{ parameters.checkoutDirectory }}
Expand All @@ -52,10 +52,10 @@ steps:
PRIVATE_BUILD: $(PrivateBuild)

- ${{ else }}:
- pwsh: ./build.ps1 --target=dotnet-buildtasks --configuration="Release"
- script: pwsh build.ps1 --target=dotnet-buildtasks --configuration="Release"
displayName: 'Build the MSBuild Tasks'

- pwsh: ./build.ps1 -Script eng/devices/${{ parameters.platform }}.cake --project="${{ parameters.path }}" --device=${{ parameters.device }} --packageid=${{ parameters.windowsPackageId }} --results="$(TestResultsDirectory)" --binlog="$(LogDirectory)" ${{ parameters.cakeArgs }}
- script: pwsh build.ps1 -Script eng/devices/${{ parameters.platform }}.cake --project="${{ parameters.path }}" --device=${{ parameters.device }} --packageid=${{ parameters.windowsPackageId }} --results="$(TestResultsDirectory)" --binlog="$(LogDirectory)" ${{ parameters.cakeArgs }}
displayName: $(Agent.JobName)
workingDirectory: ${{ parameters.checkoutDirectory }}
retryCountOnTaskFailure: 2
Expand Down

0 comments on commit 4359893

Please sign in to comment.