Skip to content

Commit

Permalink
feat: Add log compression script to reduce jenkins disk size (#3902)
Browse files Browse the repository at this point in the history
* feat: Add log compression script to reduce jenkins disk size

* fix: bash bug fix

* fix: make find more robust
  • Loading branch information
ryanaslett authored Sep 12, 2024
1 parent d53c2ad commit 0f996a6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions jenkins/logcompresser.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash

# Script invoked from cron on ci.nodejs.org to compress older on disk log files.
JENKINS_HOME=/var/lib/jenkins/jobs
find ${JENKINS_HOME} -type f -name "log" -path "./node*/*" -mtime +7 -print0|xargs -0 gzip -9v '{}'

0 comments on commit 0f996a6

Please sign in to comment.