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?
相关问题
- Jenkins - cmd is not recognized
- When using Nokogiri, how do you suppress the inser
- Where Jenkins stores plugin configuration
- Multi-branch configuration with externally-defined
- How to start pm2 website using jenkins on AWS ubun
相关文章
- dotnet restore还原nuget包时无法加载 https://api.nuget.org/
- jenkins在window集群环境中如何部署自动化发布?
- jenkins + Publish over FTP 自动部署前端React项目
- jenkins自定打包部署React前端项目遇到的问题。
- Best way to manage docker containers with supervis
- Access BitBucket payload data in Jenkins pipeline
- Jenkins Not Outputting Junit Report Info From File
- Intermittent “SVNException: svn: E175002: Connecti
Other answers here are referring to the logs generated by the individual jobs,
but if you are asking about Jenkins' main
jenkins.log
file (generated by the Jenkins-server),a bug related to that was fixed on Apr-2015 -
see here:
Also, you can read more about logging in Jenkins, here:
It's a default Jenkins feature and you do not need a plugin to achieve what you require. Go to job config page and check the flag at "Discard old builds" (it is right under the job's description. Then select log rotation as strategy and specify the '7' as a value for 'Days to keep builds'.
Job Configuration -->Discard Old Builds:
There is default Log Rotation strategy:
I suggest you to click the "Advanced" button to know more about this log rotation strategy.