Skip to content

Commit

Permalink
Use script instead of powershell so we can set the variable on all sy…
Browse files Browse the repository at this point in the history
…stems. (Crossgen image is missing pwsh).
  • Loading branch information
LoopedBard3 committed Jul 18, 2023
1 parent d39c2eb commit 8b6b99e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions eng/pipelines/coreclr/templates/run-scenarios-job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,9 @@ jobs:
- script: cp -r $(PerformanceDirectory)/scripts $(WorkItemDirectory)/scripts/ && cp -r $(PerformanceDirectory)/src/scenarios/shared $(WorkItemDirectory)/shared/ && cp -r $(PerformanceDirectory)/src/scenarios/staticdeps/ $(WorkItemDirectory)/staticdeps/
displayName: Copy scenario support files (Linux/MAC)
condition: and(succeeded(), ne(variables['Agent.Os'], 'Windows_NT'))
- powershell: |
Write-Host "##vso[task.setvariable variable=DOTNET_ROOT;]$(PayloadDirectory)/dotnet"
Write-Host "Set DOTNET_ROOT to $(PayloadDirectory)/dotnet"
- script: |
echo "##vso[task.setvariable variable=DOTNET_ROOT;]$(PayloadDirectory)/dotnet"
echo "Set DOTNET_ROOT to $(PayloadDirectory)/dotnet"
displayName: Explicitly set DOTNET_ROOT
# build Startup
- script: $(PayloadDirectory)\dotnet\dotnet.exe publish -c Release -o $(WorkItemDirectory)\Startup -f net7.0 -r win-$(Architecture) $(PerformanceDirectory)\src\tools\ScenarioMeasurement\Startup\Startup.csproj -p:DisableTransitiveFrameworkReferenceDownloads=true
Expand Down

0 comments on commit 8b6b99e

Please sign in to comment.