jason-johnson / azure-pipelines-tasks-terraform

Azure Pipelines extension for Terraform
MIT License
121 stars 52 forks source link

Terraform workspace select doesn't support (or reads) commandOptions #353

Closed dperez112 closed 10 months ago

dperez112 commented 1 year ago

Describe the bug When trying to use the select workspace task commandOptions are not taken like in other commands. To Reproduce Steps to reproduce the behavior:

  1. Setup pipeline with a task similar to:
    task: TerraformCLI@0
    displayName: Select Worspace
    inputs:
      command: workspace
      workspaceSubCommand: select
      commandOptions: -or-create
      workingDirectory: directory
      workspaceName: workspacename
  2. Execute pipeline
  3. Command Options are not executed

Expected behavior Command options should be executed

owlleg6 commented 11 months ago

Would like to request this feature too, it would be neat to automatically create workspace while running pipelines