Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"Delete Build in Jenkins after Keep Forever"

I've used the Simple Promote Plugin in Jenkins and it set my build to "keep this build forever".

Is there any way I can delete it?

I got access to the slave who build it and to the master (tried to find anything related in there but no luck).

like image 433
Tiago Avatar asked May 12 '10 18:05

Tiago


People also ask

How do I get rid of Jenkins keep this build forever?

In order to delete builds marked "keep this forever" you should change that flag to opposite state. Save this answer. Show activity on this post. I think that the final (and may be the only one step) to completely delete build from Hudson's history is to modify "nextBuildNumber" file placed in job directory.

How do I remove old builds in Jenkins?

Delete a Jenkins build via GUI. Go into the build you want to delete, and click the Delete this build button in the upper right corner. If you need to clean the Jenkins build history, and reset the build number back to 1, you can run a simple script in Jenkins Script Console.

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.

Is project deletion possible in Jenkins?

To delete any job from Gui,Go to your job and on left side,click on delete project. Save this answer.


1 Answers

Just as Christopher said, you can remove the build just by deleting the build directory on the master, inside the job directory.

However if you access the page again, the build data gets dumped to disk again. So you either shut down Hudson first, or you go to the Hudson management console and 'Reload Configuration from Disk' which basically discards whatever's in memory and reloads from your config files.

Just make sure you do it right after deleting the folder.

like image 81
Francisco Passos Avatar answered Sep 18 '22 20:09

Francisco Passos