Skip to content

Commit

Permalink
Ignore cleanWhileBuilding errors (#44361)
Browse files Browse the repository at this point in the history
  • Loading branch information
ViktorHofer authored Oct 22, 2024
1 parent 386c315 commit 02b05c8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/SourceBuild/content/repo-projects/Directory.Build.targets
Original file line number Diff line number Diff line change
Expand Up @@ -621,8 +621,9 @@
<Message Text="DirSize After Building $(RepositoryName)" Importance="High" Condition="'$(BuildOS)' != 'windows' and '@(DirsToDeleteWithTrailingSeparator)' != ''" />
<Exec Command="df -h $(RepoRoot)" Condition="'$(BuildOS)' != 'windows' and '@(DirsToDeleteWithTrailingSeparator)' != ''" />

<!-- Cleanup everything else -->
<RemoveDir Directories="@(DirsToDeleteWithTrailingSeparator)" />
<!-- Cleanup everything else. Ignore errors as out-of-band build servers don't reliably shut down, even with the build-server shutdown command.
https://github.com/dotnet/source-build/issues/4175 tracks a long term fix. -->
<RemoveDir Directories="@(DirsToDeleteWithTrailingSeparator)" ContinueOnError="true" />

<Message Text="DirSize After CleanupRepo $(RepositoryName)" Importance="High" Condition="'$(BuildOS)' != 'windows'and '@(DirsToDeleteWithTrailingSeparator)' != ''" />
<Exec Command="df -h $(RepoRoot)" Condition="'$(BuildOS)' != 'windows'and '@(DirsToDeleteWithTrailingSeparator)' != ''" />
Expand Down

0 comments on commit 02b05c8

Please sign in to comment.