"42-chdir-support" breaks use of Terraform/Base.gitlab-ci.yml
Noticed our TF pipelines suddenly started failing earlier today. Noticed that in Terraform/Base.gitlab-ci.yml we - cd "${TF_ROOT}"
before calling gitlab-terraform validate
and the latest change to src/bin/gitlab-terraform.sh sees gitlab-terraform validate
also changing directory to TF_ROOT
:
if [ -n "${TF_ROOT}" ]; then
TF_CHDIR_OPT="-chdir=${TF_ROOT}"
fi
Meaning pipelines fail with Error handling -chdir option: chdir terraform: no such file or directory
. I've fixed this locally by removing the - cd "${TF_ROOT}"
from the Terraform/Base.gitlab-ci.yml.
Edited by Jack Skerman