Use a Stop step to automatically halt the execution of a pipeline at any point in the workflow. For example, you could automatically stop the pipeline if approval isn’t received. If the Stop step is executed, the pipeline history will show that the pipeline was stopped via the Stop task.
Click the Deploy tab. Clickto create a new deployment pipeline or click Edit on an existing pipeline.
Add a Stop step or click an existing Stop step. Enter the reason for stopping the pipeline. When you’re done, click Save.