We use Jenkins (on Linux) to manage our Maven builds.
Our users can create their own work, and sometimes (3 or 4 times a year), they make a mistake, and the task generates a large log file (79 GB for the last time ...).
I looked at existing plugins and I did not find anything to control the size of the Jenkins log.
For example, if the log size exceeds 200 MB (when the job is running), I would like to automatically stop the build.
If you have developed such shell scripts or Jenkins plugins, can you share your solution?
Thanks:)
jenkins diskspace jenkins-plugins
Bruno lavit
source share