Continuous Delivery Director

  • 1.  How to launch a Release/Phase in CDD

    Posted Mar 15, 2018 05:24 AM

    Hello,

    I've next release

     

     

     

    and I need to launch phase DE.

    The user is not going to login into CDD, I need to execute a rest/command to do it?

     

    Which is the rest I have to use?

    I'm Using 6.6 version



  • 2.  Re: How to launch a Release/Phase in CDD

    Broadcom Employee
    Posted Mar 15, 2018 08:05 AM

    have a look at the patch api under the heading of Execution

    here is an example of a curl command I picked up from a colleague

     

    curl -X PATCH --user ******@ca.com:ppppp --header "Content-Type: application/json" --header "Accept: application/json" -d "{  \"allowedStatuses\": [    \"RUNNING\"  ],  \"denyStartReason\": \"PHASE_CONTAINS_TASK_WITH_MISSING_PARAMS\",  \"endDate\": 0,  \"id\": 7,  \"percentCompleted\": 0,  \"phaseId\": 34,  \"startDate\": 0,  \"status\": \"RUNNING\"}" "http://$CDD_IP:8080/cdd/execution/0000/v1/releases-execution/7/phases-execution/34"



  • 3.  Re: How to launch a Release/Phase in CDD
    Best Answer

    Broadcom Employee
    Posted Mar 15, 2018 09:05 AM

    a simpler curl command with the rock bottom minimum

     

    curl -X PATCH --header "Content-Type: application/json" --header "Accept: application/json" -d "{ \"status\":\"RUNNING\"}\"" "http://190.160.80.100:9080/cdd/execution/0000/v1/releases-execution/102/phases-execution/340"

     

     

    you just need to add in the user information



  • 4.  Re: How to launch a Release/Phase in CDD

    Posted Mar 15, 2018 12:48 PM

    Hello, it worked

     

     

    thanks a lot