CDD Releases maintenance to manage DB size

book

Article ID: 211437

calendar_today

Updated On:

Products

Continuous Delivery Director

Issue/Introduction

How can we manage the size of our CDD DB?

Environment

Release : 8.0.0

Component : CONTINUOUS DELIVERY DIRECTOR

Resolution

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

  1. Login to CDD
  2. Remove Archived Releases as below

2.1: VIA CDD UI

        • Navigate to Releases Tab and select filter "Show Archived Releases", which will show the releases marked as done

        • Select the release/s and click on Delete Release/s

2.2 VIA CDD REST API

        • API section: Design  |  API: /releases    |  Method: DELETE
        • Examples
curl -X DELETE --header "Accept: application/json" "http://CDD_SERVER_HOSTNAME:CDD_PORT/cdd/design/0000/v1/releases?release=2&release=1"

 

 

 

 



Attachments