I setup Gitlab runner on a local Windows machine. There are some jobs defined, but one of them is "terraform version", but the job failed in Gitlab CI, below is the error,
$ terraform version
terraform: The term 'terraform' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
Note: Terraform works fine locally without Gitlab when executed from the working directory.
Can someone through some lights here, thanks.
As windows issue is not resolved or can't be resolved in my case, i have tried another option ie. by installing Windows Subsystem for Linux (WSL) on the same windows machine. Thanks all.