Shutdown build servers for each SB repo project (#15488)

This commit is contained in:
Matt Thalman 2023-02-09 07:34:07 -06:00 committed by GitHub
parent bda2c1cc61
commit 6b841b4b66
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View file

@ -37,8 +37,7 @@ while :; do
lowerI="$(echo $1 | awk '{print tolower($0)}')" lowerI="$(echo $1 | awk '{print tolower($0)}')"
case $lowerI in case $lowerI in
--clean-while-building) --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) --online)
MSBUILD_ARGUMENTS+=( "-p:BuildWithOnlineSources=true") MSBUILD_ARGUMENTS+=( "-p:BuildWithOnlineSources=true")

View file

@ -271,6 +271,9 @@
DependsOnTargets="BuildRepoReferences" DependsOnTargets="BuildRepoReferences"
Inputs="$(MSBuildProjectFullPath)" Inputs="$(MSBuildProjectFullPath)"
Outputs="$(RepoCompletedSemaphorePath)Build.complete"> 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="[$([System.DateTime]::Now.ToString('HH:mm:ss.ff'))] Building $(ProjectBuildReason)" />
<Message Importance="High" Text="Running command:" /> <Message Importance="High" Text="Running command:" />
<Message Importance="High" Text=" $(BuildCommand) $(RepoApiArgs)" Condition="'$(BuildCommand)' != ''" /> <Message Importance="High" Text=" $(BuildCommand) $(RepoApiArgs)" Condition="'$(BuildCommand)' != ''" />