Summary

Article ID:360032825472
1 minute readKnowledge base
On this page

You want to delete old or extraneous builds from the Cluster Manager.

Solution

It is important to remove build logs periodically so they do not fill up the Cluster Managers available disk space. Uploaded annotation is also considered part of build logs, so remember to clean up build logs regularly if annotation is frequently uploaded to the Cluster Manager.

You can use the Cluster Manager UI or cmtool.

Using the Cluster Manager UI

  1. Click the Builds tab to open the build history list.

  2. Filter the build list with your desired criteria; for example, Good Builds or Builds by Date, and so on.

  3. Click Delete Filtered Builds .
    Confirm your decision at the prompt to delete the results. After you confirm the delete, it cannot be undone.

Using cmtool

The following example deletes all builds more than 20 days old:

cmtool login

cmtool deleteBuilds --filter "start_time <date_sub(curdate( ), interval 20 day)"

See the cmtool Reference and Users Guide for additional information about using cmtool deleteBuilds.

Applies to

  • Product versions: All

  • OS versions: All

This article is part of our Knowledge Base and is provided for guidance-based purposes only. The solutions or workarounds described here are not officially supported by CloudBees and may not be applicable in all environments. Use at your own discretion, and test changes in a safe environment before applying them to production systems.