Hi,
I'm not aware of such plugins, we usually use Jenkins jobs for such tasks like
cleanup old jobs/builds etc.
Periodic job with e.g. following system groovy script as a build step could do
the job:
long LIMIT = 2L*365*24*3600*1000 // 2 years in millis
long NOW = System.currentTimeMillis()
jenkins.model.Jenkins.instance.items.each{job ->
if(job.lastBuild != null && (NOW - job.lastBuild.timeInMillis) > LIMIT) {
println "Deleting ${job.displayName}
job.delete()
}
}
HTH
Vojta
----- Original Message -----
From: "Davide Mendolia" <[email protected]>
To: [email protected]
Sent: Saturday, August 4, 2012 10:46:17 AM
Subject: PlugIn that auto-delete a job after a period of inactivity time
Hi,
I'm searching for a plugIn that auto-delete a job if build didn't run for X
days.
I can't find one, do you know if there is something similar, or I will start to
write a plugin for that.
Thanks
--
Davide Mendolia