Skip to content

Commit

Permalink
Windows maintenance
Browse files Browse the repository at this point in the history
  • Loading branch information
Karm committed Oct 21, 2024
1 parent f62440b commit 3f86d45
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions jenkins/jobs/auxiliary/mandrel_windows_maintenance.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,15 @@ matrixJob('mandrel-windows-maintenance') {
steps {
batchFile {
command('''
powershell -c Remove-Item -Recurse -Force "C:\\Users\\Administrator\\AppData\\Local\\Temp\\*"
powershell -c Remove-Item -Recurse -Force "C:\\workspace\\workspace\\*"
@echo off
powershell -Command "Remove-Item -Recurse -Force 'C:\\Users\\Administrator\\AppData\\Local\\Temp\\*'" || echo Failed to delete Temp folder, continuing...
powershell -Command "Remove-Item -Recurse -Force 'C:\\workspace\\workspace\\*'" || echo Failed to delete Workspace folder, continuing...
powershell -Command "Remove-Item -Recurse -Force 'C:\\tmp\\*'" || echo Failed to delete tmp folder, continuing...
powershell -Command "Remove-Item -Recurse -Force 'C:\\Users\\Administrator\\.dotnet\\*'" || echo Failed to delete .dotnet folder, continuing...
powershell -Command "Remove-Item -Recurse -Force 'C:\\Users\\Administrator\\.gradle\\*'" || echo Failed to delete .gradle folder, continuing...
powershell -Command "Remove-Item -Recurse -Force 'C:\\Users\\Administrator\\.redhat\\*'" || echo Failed to delete .redhat folder, continuing...
powershell -Command "Remove-Item -Recurse -Force 'C:\\Users\\Administrator\\.quarkus\\*'" || echo Failed to delete .quarkus folder, continuing...
powershell -Command "Remove-Item -Recurse -Force 'C:\\Users\\Administrator\\.m2\\*'" || echo Failed to delete .m2 folder, continuing...
''')
unstableReturn(1)
}
Expand Down

0 comments on commit 3f86d45

Please sign in to comment.