microsoft / azure-pipelines-terraform

Azure Pipelines tasks for installing Terraform and running Terraform commands in a build or release pipeline.
MIT License
101 stars 62 forks source link

TerraformTaskV4@4 fails on Azure pipelines with image ubuntu-latest #228

Open CharanGali opened 2 months ago

CharanGali commented 2 months ago

Team,

Could you please help us in resolving the below error while initialising the terraform on ubuntu machine in pipelines. image

Agent information image

Expected result: To run the pipeline successful

mericstam commented 1 month ago

Hi, sorry for late reply, do you still have issues? Br Manuel

CharanGali commented 1 month ago

Yes @mericstam Could you please help us ?

mericstam commented 1 month ago

please supply the full line in light blue from your screenshot. and if possible supply the part of the pipeline where the init command is declared.

CharanGali commented 1 month ago

@mericstam

please supply the full line in light blue from your screenshot. and if possible supply the part of the pipeline where the init command is declared.

Not only with the init command. If we use the validate command as well, i was receiving error as below image i.e., ##[error]Error: There was an error when attempting to execute the process '/opt/hostedtoolcache/terraform/1.9.4/x64/terraform'. This may indicate the process failed to start. Error: spawn /opt/hostedtoolcache/terraform/1.9.4/x64/terraform ENOENT

But in previous step, i can terraform is installed as expected image

Please let me know if you need additional details