Recall & Review
beginner
What is log rotation in Jenkins?
Log rotation in Jenkins means automatically deleting or archiving old build logs to save disk space and keep the system clean.
Click to reveal answer
beginner
How can you configure log rotation for a Jenkins job?
In the job configuration, under 'Discard Old Builds' or 'Build Discarder', you can set how many builds or days to keep logs before Jenkins deletes them.
Click to reveal answer
beginner
Why is log management important in Jenkins?
It prevents the server from running out of disk space and helps keep Jenkins fast and reliable by removing old unnecessary logs.
Click to reveal answer
intermediate
What Jenkins plugin can help with advanced log management?
The 'Log Parser Plugin' helps analyze and manage logs by highlighting errors and warnings in build logs.
Click to reveal answer
beginner
How does Jenkins decide which logs to delete during rotation?
Jenkins deletes logs based on the rules set in the job's 'Discard Old Builds' settings, like max number of builds or max days to keep.
Click to reveal answer
Where do you configure log rotation settings in a Jenkins job?
✗ Incorrect
Log rotation is set per job under 'Build Discarder' to control how many builds and logs to keep.
What is the main benefit of log rotation in Jenkins?
✗ Incorrect
Log rotation helps save disk space by deleting old build logs automatically.
Which plugin helps highlight errors in Jenkins build logs?
✗ Incorrect
The Log Parser Plugin analyzes logs and highlights errors and warnings.
If you want to keep only the last 10 builds' logs, where do you set this?
✗ Incorrect
You set the number of builds to keep in the 'Discard Old Builds' section of the job.
What happens if you do not configure log rotation in Jenkins?
✗ Incorrect
Without log rotation, logs keep growing and can fill up disk space.
Explain how to set up log rotation for a Jenkins job and why it is important.
Think about cleaning old files to save space.
You got /5 concepts.
Describe the role of the Log Parser Plugin in Jenkins log management.
It’s like a highlighter for your logs.
You got /4 concepts.