How to enable log rotation in Jenkins for weekly?

jass picture jass · Jul 24, 2015 · Viewed 15k times · Source

I am trying to enable the log rotation for jenkins. Because the log file occupied more memory space. Is there any plugins or method to do it?

Answer

mainframer picture mainframer · Jul 24, 2015

Job Configuration -->Discard Old Builds:

There is default Log Rotation strategy:

Jenkins log rotation

I suggest you to click the "Advanced" button to know more about this log rotation strategy.