jason-johnson / azure-pipelines-tasks-terraform

Azure Pipelines extension for Terraform
MIT License
124 stars 53 forks source link

publishPlanResults in Releases ? #332

Closed ultrajericho closed 11 months ago

ultrajericho commented 1 year ago

Describe the bug Quick question (sorry if it's not the right place), Is it normal that when naming Publish Plan Results Name, no "Terraform Plan" tab appears in the Azure Release? Is this a feature that only works with YAML Pipelines (so for Builds and not Releases)?

To Reproduce Steps to reproduce the behavior:

  1. I set a name in the "Publish Plan Results Name" field
  2. Execute release stage
  3. Release with the "Terraform plan" task succeed
  4. The logs indicates that the Plan (with the name I passed in the "Publish Plan Results Name" field) is returning the following warning : [warning]Plan 'Plan-StorageAccount' is going to create 4 resources.
  5. There is no "Terraform Plan" tab created anywhere in the Release.

Expected behavior I want to know if this feature only works in build Pipelines / YAML pipeline and if there is a way to do something clean in Releases .

Pipeline Logs 2023-03-03T16:45:35.2365997Z ##[warning]Plan 'Plan-' is going to create 4 resources. 2023-03-03T16:45:35.2375260Z ##[debug]Processed: ##vso[task.issue type=warning;]Plan 'Plan-' is going to create 4 resources.

Agent Configuration

ultrajericho commented 1 year ago

This guy managed to make the Terraform Plan work with his extension : https://marketplace.visualstudio.com/items?itemName=JaydenMaalouf.terraform-output

Maybe you can do the same enhancement with this one.

ultrajericho commented 1 year ago

Here is the pullrequest/commit he made to fix this : https://github.com/JaydenMaalouf/azure-pipelines-terraform-output/commit/41b40d49328338014fb1113b4173c49e5f4f53e6

jason-johnson commented 11 months ago

Will resolve this via #339