Adds tmpreaper to jenkins slave crontab.
Schedules tmpreaper to run daily at 1am, and delete files older than 1 days from /tmp. Fixes bug 925774 Change-Id: Iff9383d020fa3ea0cbbe85d4ea0e5fe27ba6901e
This commit is contained in:
parent
0993cd74ce
commit
5405cc4f4d
@ -65,6 +65,7 @@ class jenkins_slave {
|
||||
"socat",
|
||||
"sqlite3",
|
||||
"swig",
|
||||
"tmpreaper",
|
||||
"unzip",
|
||||
"vlan",
|
||||
"wget"]
|
||||
@ -103,4 +104,12 @@ class jenkins_slave {
|
||||
],
|
||||
}
|
||||
|
||||
cron { "tmpreaper":
|
||||
user => jenkins,
|
||||
minute => '0',
|
||||
hour => '1',
|
||||
command => '/usr/sbin/tmpreaper --runtime 1200 --delay 600 1d /tmp',
|
||||
require => [ Package[tmpreaper], Jenkinsuser[jenkins] ],
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user