I have configured Jenkins to only display up to ten (10) builds. Now I want to go back and find an old build. It was number 1261 and now I am on build 1397. Is there a way to retrieve and view the console log for the old build (1261
)?
$JENKINS_HOME is where all Jenkins-based installations store configuration, build logs, and artifacts.
Discard Old Build is a Jenkins plugin that allows for setting build discard conditions with greater specificity than is available in the Jenkin's core function.
Latest 10 builds are kept.
To manually prevent a build from getting purged according to the schedule, click on the 'Keep this build forever' button to lock the build. There are different ways to do it automatically based on the type of the Project.
Not unless you have a backup of your Jenkins jobs directory ($JENKINS_HOME/jobs on Unix or %JENKINS_HOME%\jobs on Windows). The configuration option that sets the number of builds to display doesn't just control how many builds are displayed, but also deletes older builds from the file system to save space.
If you do have a backup, you'll find the console output in $JENKINS_HOME/jobs/<job name>/<build number>/log
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With