Continuous Delivery Director

Expand all | Collapse all

denyApproveReason:TRANSITION_DOES_NOT_EXIST response for running a phase

  • 1.  denyApproveReason:TRANSITION_DOES_NOT_EXIST response for running a phase

    Posted 11-26-2018 07:03 AM

    I am trying to run a phase in CDD via the rest api.

    Following is the response I receive:

    {"data":{"percentCompleted":100.0,"startDate":1542984447000,"endDate":1542985210000,"phaseId":4352,"allowedStatuses":["RUNNING"],"denyApproveReason":"TRANSITION_DOES_NOT_EXIST","status":"DONE","id":4352,"revision":541,"className":"PhaseExecutionDto"}}

     

    Deploy » TriggerCDD #236 Console [Jenkins]

    Sending request to url: https://cdd.xyz:8443/cdd/execution/0000/v1/releases-execution/4278/phases-execution/4352Response Code: HTTP/1.1 422 Unprocessable Entity[Pipeline] }[Pipeline] // node[Pipeline] }[Pipeline] // stage[Pipeline] }[Pipeline] // node[Pipeline] End of Pipelinehudson.AbortException: Fail: the returned code 422 is not in the accepted range: [[200‥200]]      at jenkins.plugins.http_request.HttpRequestExecution.responseCodeIsValid(HttpRequestExecution.java:306)      at jenkins.plugins.http_request.HttpRequestExecution.processResponse(HttpRequestExecution.java:316)      at jenkins.plugins.http_request.HttpRequestExecution.authAndRequest(HttpRequestExecution.java:232)      at jenkins.plugins.http_request.HttpRequestExecution.call(HttpRequestExecution.java:195) Caused: java.lang.IllegalStateException      at jenkins.plugins.http_request.HttpRequestExecution.call(HttpRequestExecution.java:198)      at jenkins.plugins.http_request.HttpRequestExecution.call(HttpRequestExecution.java:67)      at hudson.remoting.LocalChannel.call(LocalChannel.java:45)      at jenkins.plugins.http_request.HttpRequestStep$Execution.run(HttpRequestStep.java:303)      at jenkins.plugins.http_request.HttpRequestStep$Execution.run(HttpRequestStep.java:285)      at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1$1.call(AbstractSynchronousNonBlockingStepExecution.java:47)      at hudson.security.ACL.impersonate(ACL.java:290)      at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1.run(AbstractSynchronousNonBlockingStepExecution.java:44)      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)      at java.util.concurrent.FutureTask.run(FutureTask.java:266)      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)      at java.lang.Thread.run(Thread.java:748) Finished: FAILURE


  • 2.  Re: denyApproveReason:TRANSITION_DOES_NOT_EXIST response for running a phase

    Broadcom Employee
    Posted 11-26-2018 11:53 AM

    Could you please show us what is in the body of your rest call?  

    thanks



  • 3.  Re: denyApproveReason:TRANSITION_DOES_NOT_EXIST response for running a phase

    Broadcom Employee
    Posted 11-26-2018 01:37 PM

    Hi Saurabh

     

    Thank you for your question.

     

    It seems that the status of the phase/release is "DONE". Is that correct?

     

    Could you please share what is the current status of the related phase and the current status of its release?

     

    In general, you cannot run a phase of a release whose status is "DONE".

     

    Could you please share the body of your request?

     

    Could you please share the related section at CDD log file?

     

    Thanks

     Ofer