Skip to content

Allow pipeline to continue when skipping resource deletion#1075

Open
liyu-ma wants to merge 3 commits intomainfrom
maliyu/pipeline-succeed-when-skip-deletion
Open

Allow pipeline to continue when skipping resource deletion#1075
liyu-ma wants to merge 3 commits intomainfrom
maliyu/pipeline-succeed-when-skip-deletion

Conversation

@liyu-ma
Copy link
Contributor

@liyu-ma liyu-ma commented Feb 25, 2026

When SKIP_RESOURCE_DELETION flag is set, pipeline should be allowed to complete successfully despite skipping resource deletion.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the Azure Pipelines cleanup flow so manual runs with SKIP_RESOURCE_DELETION=true can finish successfully while intentionally skipping destructive teardown steps.

Changes:

  • Downgrade the “skip deletion” behavior from error to warning for Terraform destroy and continue the loop instead of failing the job.
  • Downgrade Azure resource group deletion from error to warning and exit successfully when deletion is skipped.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
steps/terraform/run-command.yml Logs a warning and skips running Terraform when resource deletion is disabled for manual runs.
steps/cleanup-resources.yml Logs a warning and exits 0 when resource group deletion is disabled for manual runs.

liyu-ma and others added 2 commits February 25, 2026 16:28
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants