Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to keep only red builds in jenkins

Tags:

linux

jenkins

How to keep only the failed builds logs in a job history?

I haven't enough disk space to store both successful and failed builds. I'm looking for a simple way to keep all the red one's logs and none of the blue/green on a Linux jenkins. (Perhaps with a Post-build Action?)

like image 304
Philippe Blayo Avatar asked Jun 21 '13 12:06

Philippe Blayo


1 Answers

The Discard Old Build plugin can do that for you:

From the link:

After installing this plugin, a new post-build step named 'Discard Old Builds' appears.

like image 71
Kleist Avatar answered Nov 07 '22 14:11

Kleist