Release Automation

 View Only
  • 1.  I want to automatically stop the deployment when an action fails.

    Posted Dec 21, 2016 02:40 PM

    I have a process with a "run command line" action, if it returns a value different than zero the action fails and  then the deploy is paused, but i need that  deployment stops and finish as failed when the action fails. How can I do it?



  • 2.  Re: I want to automatically stop the deployment when an action fails.
    Best Answer

    Posted Dec 21, 2016 03:46 PM

    Hello Javier, 

    with the help of a condition tree you make this this happen. Once your actions runs and you check the response code, if it passes it will go to the next action to deploy, However in case of failure you can add an ROC action called "ROC - Fail Deployment Step" this action fails the deployment step which is running this flow.

     

    you can see the screen shots for reference.

     decision tree

    One more thing, at the time you are putting this condition, that action should be set, "Not to pause when Fail". in above case action "Create Artifact in Repository" is set not to pause when fail.



  • 3.  Re: I want to automatically stop the deployment when an action fails.

    Posted Dec 21, 2016 04:05 PM

    I will try this, thanks!



  • 4.  Re: I want to automatically stop the deployment when an action fails.

    Broadcom Employee
    Posted Dec 28, 2016 05:30 PM

    Hi Javier,

     

    Did Nikhil's response do what you wanted? If so, please mark his answer as correct. If not, please let us know where/how we can help.

     

    Cheers,
    Gregg