x
login Signup

How can I delete old builds from the cluster manager?

What tools or methods does ElectricAccelerator provide for identifying and removing annotation files and data stored on the cluster manager for old jobs?

avatar image By thedude 274 asked Feb 15, 2012 at 06:48 PM
more ▼
(comments are locked)
10|750 characters needed characters left

2 answers: sort voted first

You can use cmtool to delete builds matching criteria such as the age of the build. For example, to delete builds more than 20 days old:

 cmtool login <username> <password>
 cmtool deleteBuilds --filter "start_time <date_sub(curdate( ), interval 20 day)"

See the cmtool documentation for more information.

You can also use the "Builds By Date" filter on the "Builds" tab of the cluster manager web interface, then click the "Delete Filtered Builds" link at the top of the results page.

avatar image By eric melski ♦♦ 6k answered Feb 15, 2012 at 06:55 PM
more ▼
(comments are locked)
10|750 characters needed characters left

I tried to do this, but it looks like the --filter doesn't allow any additional options? I would like to keep my official build logs around for longer than my CI builds, but when I filter on class, I get:

 $ cmtool deleteBuilds \
     --filter "start_time < date_sub(curdate( ), interval 30 day) AND buildClassName NOT LIKE 'OFFICIAL'"
 InvalidQuery:
 Details:
 Unknown column 'buildClassName' in 'where clause'

Is this expected behavior? The documentation didn't describe this limitation, and the buildClassName filter does work when passed to the getBuilds subcommand.

I am using EA 6.6.2.

avatar image By uncle don 1 answered Dec 04, 2013 at 07:22 PM
more ▼
(comments are locked)
10|750 characters needed characters left
Your answer
toggle preview:

Up to 8 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.