Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Retrieve very old builds from Jenkins

Tags:

jenkins

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)?

like image 990
user1467855 Avatar asked Sep 10 '12 19:09

user1467855


People also ask

Where is Jenkins build history stored?

$JENKINS_HOME is where all Jenkins-based installations store configuration, build logs, and artifacts.

What is Discard old builds in Jenkins?

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.

How many builds you store in your Jenkins?

Latest 10 builds are kept.

What is keep this build forever in Jenkins?

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.


1 Answers

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

like image 169
gareth_bowles Avatar answered Oct 19 '22 12:10

gareth_bowles