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?
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}