Skip to content

Commit

Permalink
Shutdown build servers for each SB repo project (#15488)
Browse files Browse the repository at this point in the history
  • Loading branch information
mthalman authored Feb 9, 2023
1 parent bda2c1c commit 6b841b4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 1 addition & 2 deletions src/SourceBuild/content/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,7 @@ while :; do
lowerI="$(echo $1 | awk '{print tolower($0)}')"
case $lowerI in
--clean-while-building)
# TODO: Reenable with https://github.com/dotnet/source-build/issues/3233
# MSBUILD_ARGUMENTS+=( "-p:CleanWhileBuilding=true")
MSBUILD_ARGUMENTS+=( "-p:CleanWhileBuilding=true")
;;
--online)
MSBUILD_ARGUMENTS+=( "-p:BuildWithOnlineSources=true")
Expand Down
3 changes: 3 additions & 0 deletions src/SourceBuild/content/repo-projects/Directory.Build.targets
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,9 @@
DependsOnTargets="BuildRepoReferences"
Inputs="$(MSBuildProjectFullPath)"
Outputs="$(RepoCompletedSemaphorePath)Build.complete">

<Exec Command="$(DOTNET_HOST_PATH) build-server shutdown" />

<Message Importance="High" Text="[$([System.DateTime]::Now.ToString('HH:mm:ss.ff'))] Building $(ProjectBuildReason)" />
<Message Importance="High" Text="Running command:" />
<Message Importance="High" Text=" $(BuildCommand) $(RepoApiArgs)" Condition="'$(BuildCommand)' != ''" />
Expand Down

0 comments on commit 6b841b4

Please sign in to comment.