azure-pipelines-tasks-terraform icon indicating copy to clipboard operation
azure-pipelines-tasks-terraform copied to clipboard

Terraform Plan fails to create empty plan for multistage pipeline

Open bothzoli opened this issue 2 years ago • 1 comments

Describe the bug

I have a multistage pipeline with 4 stages, where all stages will do a terraform plan step. 2 of the stages produce a plan with changes, and the other 2 will have no change, thus an empty plan.

If I switch to the Terraform Plan tab it fails to display the plans. Checking the console I see an exception thrown from here. When debugging I see that the provided URL (attachment.href) returns a 404. I suppose that the empty plan was in fact not created.

To Reproduce Steps to reproduce the behavior: See the description above.

Expected behavior I expect that Terraform Plan displays plans regardless if any of them is empty.

bothzoli avatar Apr 01 '22 13:04 bothzoli

This also happens if none of the stages produce a plan with changes. All the attachment URLs are returning 404.

bothzoli avatar Apr 05 '22 09:04 bothzoli

Closing this as it's a duplicate of #268.

bothzoli avatar Aug 23 '22 07:08 bothzoli