Builds getting removed from UI after Jenkins restart

In the backend(CLI) I have all the builds available but in UI its not showing all of them as per below permalinks file only build 11 is visible.
jenkins version is 2.467 & Java Version is :17.0.10

#cat permalinks
lastCompletedBuild 11
lastFailedBuild -1
lastStableBuild -1
lastSuccessfulBuild -1
lastUnstableBuild -1
lastUnsuccessfulBuild 11

2 Likes

Make sure the values in your permalinks file are correct as they are essential for correctly displaying builds in the Jenkins GUI. If the values are incorrect, it can prevent builds from appearing in the UI.

If you’re facing an issue where Jenkins isn’t showing all builds, a known workaround is to go to “Manage Jenkins” and select “Reload Configuration from Disk.” This step often helps in making Jenkins recognize the builds that are present in the backend.

Sometimes, Jenkins may not show certain builds or logs due to persistent issues. In such cases, restarting Jenkins can often resolve the problem. You can restart Jenkins from the front page if you’re authenticated, or by visiting the quiet down page at https://yoursite/jenkins/quietDown.

If you need to restore deleted builds, ensure they are correctly placed in the appropriate job directory under %HUDSON_HOME%/jobs/. After placing the builds, you don’t need to restart the entire servlet container; simply go to “Manage Hudson” and “Reload Configuration from Disk” to make Jenkins recognize the newly added builds.

Please let me know which of those worked if any?