Hi,
I am trying to deploy resources in Azure cloud using terraform scripts and bitbucket pipelines.
It's getting failed at initial stage. error screenshot has been attached
Unable to figure out why it's unable find terraform
Error on Build line 66:
/opt/atlassian/pipelines/agent/tmp/shellScript13245989058089105971.sh: line 5: terraform: not found
Could you please help me on this
Below is my pipeline script
Hi Vivek and welcome to the community!
I believe the culprit is that you have added in this repo a Repository variable with the name PATH. The shell uses PATH to find commands, so if you replace its usual list of locations, then some commands won't work anymore.
If you want to add a directory to the environment variable PATH, you can use a command like the following in your step's script (and remove the PATH variable from your Repository's variables):
- export PATH=$PATH:~/opt/bin
If this Repository variable is not related to the PATH environment variable that the shell uses to find commands, you can change its name to something different.
Please feel free to let me know how it goes and if you have any questions.
Kind regards,
Theodora
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.