How can we manage the size of our CDD DB?
Release : 8.0.0
Component : CONTINUOUS DELIVERY DIRECTOR
Please find below CDD REST API to manage releases. All below API of CDD can be access via swagger interface of CDD i.e. Login to CDD -> User Avatar (Top Right) -> REST API
To get list of all releases
API section: Design | API: /releases | Method: GET
Status available: RUNNING_WITH_FAILURES, RUNNING, DONE
Examples:
# To get all releases without any filter
curl -X GET --header "Accept: application/json" "http://CDD_SERVER_HOSTNAME:CDD_PORT/cdd/design/0000/v1/releases"
# To get all releases with status DONE
curl -X GET --header "Accept: application/json" "http://CDD_SERVER_HOSTNAME:CDD_PORT/cdd/design/0000/v1/releases?status=DONE"
# To get all releases with status RUNNING
curl -X GET --header "Accept: application/json" "http://CDD_SERVER_HOSTNAME:CDD_PORT/cdd/design/0000/v1/releases?status=RUNNING"
# To get all releases with status RUNNING_WITH_FAILURES
curl -X GET --header "Accept: application/json" "http://CDD_SERVER_HOSTNAME:CDD_PORT/cdd/design/0000/v1/releases?status=RUNNING_WITH_FAILURES"
To reduce the size of DB, you can remove the releases which are with status DONE. Please follow instruction below to do so.
Remove Archived Releases
2.1: VIA CDD UI
2.2 VIA CDD REST API
curl -X DELETE --header "Accept: application/json" "http://CDD_SERVER_HOSTNAME:CDD_PORT/cdd/design/0000/v1/releases?release=2&release=1"