Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CruiseControl.Net: How Does One Clear Obsolete Build History?

I just started using CCNet, and in the process of getting my build projects set up I racked up a lot of build history from trial and error. I really don't want to keep that old stuff around, but I can't seem to see where/how to get rid of it. I'm sure this is a silly question, and I apologize if I'm overlooking something that should be obvious. I did RTM and Google for about a half hour, and poked around my CCNet installation, but it's not jumping out at me. I deleted the state files for the projects (don't know if that has anything to do with it), but the old builds are still there if I drill into a project's stats from the dashboard. Any suggestions? Thanks.

Answered: I had explicitly set the artifacts directory to a location that was not under the CCNet server directory and consequently never looked in it again... went looking and, disco, there's the build histories.

like image 337
Rex Miller Avatar asked Nov 24 '08 22:11

Rex Miller


4 Answers

Don't forget you can use Artifact Cleanup Publisher to keep your build history from growing to the size of Mars over time.

like image 54
hollystyles Avatar answered Nov 14 '22 12:11

hollystyles


Assuming you have a project called "Dev" and you've installed CCNet into the default location, you'll have a folder called:

c:\Program Files\CruiseControl.NET\server\Dev

and a Dev.state file in:

c:\Program Files\CruiseControl.NET\server

Just delete both the folder and the state file.

like image 38
Carl Avatar answered Nov 14 '22 10:11

Carl


What you're looking for are the "artifacts" folders. Check your ccnet.config file for the tag

Stop your service, delete the artifact directory folder, and restart your service.

like image 21
Ted Spence Avatar answered Nov 14 '22 10:11

Ted Spence


The logs are stored in the artifacts directories under artifacts\MyProjectName\Build\log*.xml.

The State file stores things like the last build date, time, info.

Best to stop the service, and then delete the .state in ProgFiles\CC.net\server and also delete the artifacts\MyProjectName\Build\log.xml files.

like image 1
ScottCate Avatar answered Nov 14 '22 10:11

ScottCate