Aborting manual step still executes later steps


I have set up a step that generates a sql script to be reviewed. I then added a manual step where the DBA can review a sql script. if they don’t like it they can click abort. This should then not execute the next step which is the deployment of the script to the database.

In the step that deploys to the database my “Run Condition” is
#{if GenerateScriptAndDeploy == “True”}true#{/if}

I was expecting that even if the condition is true that the step would not run if the dba aborted the manual step.However that is not the case. If the DBA aborts the manual step the deployment still runs if GenerateScriptAndDeploy == “True”

Is there a way to abort all following steps no matter what?

Thank you.


Found the solution in this post

This will make sure the step only runs of there were no errors in prior steps (that includes aborting a step) and if my variable is True.
#{unless Octopus.Deployment.Error}#{GenerateScriptAndDeploy}#{/unless}


I’m glad you found a solution :slight_smile: Please let us know if we can help you with anything else.


This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.