Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why Jenkins sometime delete all builds?

Tags:

jenkins

I configured new "free-style software project" Jenkins's job. It's run by polling SCM Perforce about 10 times a day. After 1-2 days all builds disappeared.

I've try to configure "Delete old builds" and "Build keeper" plugin. But nothing helps.

Probably you can help me. Thanks.

like image 917
Aleksey Bakin Avatar asked Jan 19 '13 06:01

Aleksey Bakin


People also ask

How do I keep a 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.

How do I fix Jenkins build failure?

In Jenkins, in the pipeline where the failure occurred, in the navigation pane, click Rebuild. In the Rebuild page, select the ReRun check box , and click Rebuild.


2 Answers

There's a reported Jenkins issue that matches your symptoms (and it just bit me as well). The workaround (which was successful for me) is to go to Manage Jenkins and Reload Configuration from Disk.

like image 162
Dave Bacher Avatar answered Sep 20 '22 11:09

Dave Bacher


Simple restart of Jenkins solve the same problem for me. Builds just appeared in Build History section. Jenkins version I have 1.498.

like image 38
Lesya Avatar answered Sep 21 '22 11:09

Lesya