From 62ea0264e4ab3f58850f7bc61d506d7485d98c61 Mon Sep 17 00:00:00 2001 From: Nate McMaster Date: Thu, 5 Jul 2018 10:14:35 -0700 Subject: [PATCH] Ensure trx logging is reported correctly when building in TeamCity --- build/SharedFx.targets | 15 +++++++++++---- dockerbuild.sh | 3 ++- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/build/SharedFx.targets b/build/SharedFx.targets index 594e914840..2fbdc33202 100644 --- a/build/SharedFx.targets +++ b/build/SharedFx.targets @@ -530,9 +530,17 @@ + $(RepositoryRoot)\test\SharedFx.UnitTests\SharedFx.UnitTests.csproj + + + $(LogOutputDir)SharedFx-UnitTests-$(Version).trx + + $(UnitTestFxTrxLogFile) + $(HostMachineRepositoryRoot)/artifacts/logs/SharedFx-UnitTests.trx + DotNetRestoreSourcePropsPath=$(GeneratedRestoreSourcesPropsPath); DotNetPackageVersionPropsPath=$(GeneratedPackageVersionPropsPath); @@ -540,7 +548,6 @@ RepositoryCommit=$(RepositoryCommit); SharedFxRuntimeIdentifier=$(SharedFXRid) - $(LogOutputDir)SharedFx.UnitTests-$(BuildNumber).trx @@ -548,15 +555,15 @@ - + Condition="'$(TEAMCITY_VERSION)' != '' AND Exists('$(UnitTestFxTrxLogFile)')" /> diff --git a/dockerbuild.sh b/dockerbuild.sh index a3f61b7a17..d401522921 100755 --- a/dockerbuild.sh +++ b/dockerbuild.sh @@ -108,4 +108,5 @@ docker run \ ${docker_args[@]+"${docker_args[@]}"} \ $tagname \ ./build.sh \ - ${build_args[@]+"${build_args[@]}"} + ${build_args[@]+"${build_args[@]}"} \ + "-p:HostMachineRepositoryRoot=$DIR"