Process Flow - Log management and rotation
Jenkins generates logs
Log file grows
Check log size or age
Rotate logs
Archive old logs
Delete logs older than retention
New log file created
Repeat cycle
Jenkins writes logs continuously. When logs get too big or old, Jenkins rotates them by archiving and starting fresh logs, then deletes old archives based on retention.