Skip to content

Commit 2766f20

Browse files
Fix Helix log upload (#20258)
1 parent e79ba29 commit 2766f20

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

eng/helix/content/runtests.sh

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,7 @@ fi
156156

157157
echo "Copying TestResults/TestResults to ."
158158
cp TestResults/TestResults.xml testResults.xml
159-
echo "Copying artifacts/logs to $HELIX_WORKITEM_UPLOAD_ROOT/../"
160-
shopt -s globstar
161-
cp artifacts/log/**/*.log $HELIX_WORKITEM_UPLOAD_ROOT/../
162-
cp artifacts/log/**/*.log $HELIX_WORKITEM_UPLOAD_ROOT/
159+
echo "Copying artifacts/logs to $HELIX_WORKITEM_UPLOAD_ROOT/"
160+
cp `find . -name \*.log` $HELIX_WORKITEM_UPLOAD_ROOT/../
161+
cp `find . -name \*.log` $HELIX_WORKITEM_UPLOAD_ROOT/
163162
exit $exit_code

eng/scripts/RunHelix.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ param(
2525
[Parameter(Mandatory=$true)]
2626
[string]$Project,
2727
[string]$HelixQueues = "Windows.10.Amd64.Open",
28-
[string]$TargetArchitecture = "",
28+
[string]$TargetArchitecture = "x64",
2929
[bool]$RunQuarantinedTests = $false
3030
)
3131
$ErrorActionPreference = 'Stop'
@@ -39,4 +39,4 @@ $env:BUILD_REPOSITORY_NAME="aspnetcore"
3939
$env:SYSTEM_TEAMPROJECT="aspnetcore"
4040

4141
$HelixQueues = $HelixQueues -replace ";", "%3B"
42-
dotnet msbuild $Project /t:Helix /p:TargetArchitecture="$TargetArchitecture" /p:IsRequiredCheck=true /p:IsHelixDaily=true /p:HelixTargetQueues=$HelixQueues /p:RunQuarantinedTests=$RunQuarantinedTests /p:_UseHelixOpenQueues=true
42+
dotnet msbuild $Project /t:Helix /p:TargetArchitecture="$TargetArchitecture" /p:IsRequiredCheck=true /p:IsHelixDaily=true /p:HelixTargetQueues=$HelixQueues /p:RunQuarantinedTests=$RunQuarantinedTests /p:_UseHelixOpenQueues=true /p:ASPNETCORE_TEST_LOG_DIR=artifacts/log

0 commit comments

Comments
 (0)