diff --git a/eng/helix/content/runtests.cmd b/eng/helix/content/runtests.cmd index ce069ddcd6..6dec0880d5 100644 --- a/eng/helix/content/runtests.cmd +++ b/eng/helix/content/runtests.cmd @@ -95,6 +95,12 @@ if %$quarantined%==true ( echo "Copying TestResults\TestResults.xml to ." copy TestResults\TestResults.xml testResults.xml +echo "Copying artifacts/logs to %HELIX_WORKITEM_UPLOAD_ROOT%\..\" +for /R artifacts/log %%f in (*.log) do ( + echo "Copying: %%f" + copy "%%f" %HELIX_WORKITEM_UPLOAD_ROOT%\..\ + copy "%%f" %HELIX_WORKITEM_UPLOAD_ROOT%\ +) exit /b %exit_code%