We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4a73142 commit 523680dCopy full SHA for 523680d
scripts/build-agents/Daily-Maintenance.ps1
@@ -43,6 +43,12 @@ Write-Host "Executing daily maintenance..."
43
# Remove all Docker images that have not been used for 7 days.
44
docker image prune -a --filter "until=168h" --force
45
46
+# Remove PostSharp and Metalama from the NuGet package cache
47
+# We assume that TeamCity runs as SYSTEM.
48
+$packageDir = "C:\Windows\system32\config\systemprofile\.nuget\packages"
49
+Remove-Item $packageDir/Metalama* -Force -Recurse
50
+Remove-Item $packageDir/PostSharp* -Force -Recurse
51
+
52
# Pull this repo.
53
git pull
54
0 commit comments