pulumi / pulumi-az-pipelines-task

Azure Pipelines task extension for running Pulumi apps.
https://marketplace.visualstudio.com/publishers/pulumi
Apache License 2.0
27 stars 19 forks source link

Allow DOTNET_CLI_HOME to be set for the Pulumi CLI #25

Closed praneetloke closed 5 years ago

praneetloke commented 5 years ago

Fixes #23.

On build agents, the HOME env var is not set and this causes the dotnet CLI to fail. Use the built-in fallback Agent.TempDirectory if DOTNET_CLI_HOME itself is not defined and if all else fails, let the Pulumi CLI fail too, so that the user can set an appropriate home path for the dotnet CLI.