If user does not write the path with the initial "/" the executor working directory path is wrong and can be not exist.
For example if you set Terraform Working Directory as environment/test, the executor run Terraform or OpenTofu in directory: /home/cnb/.terraform-spring-boot/executor/816a1372-1c53-42b8-a0bd-a1fbd8a191dc/94408cba-17df-4381-a604-b019563bf34aenvironment/test
Steps to reproduce
Create new workspace
Set working directory without initial "/"
Run plan
Wait plan without changes because working directory it's wrong and check executor log for find bad path.
Bug description 🐞
If user does not write the path with the initial "/" the executor working directory path is wrong and can be not exist.
For example if you set Terraform Working Directory as
environment/test
, the executor run Terraform or OpenTofu in directory:/home/cnb/.terraform-spring-boot/executor/816a1372-1c53-42b8-a0bd-a1fbd8a191dc/94408cba-17df-4381-a604-b019563bf34aenvironment/test
Steps to reproduce
Expected behavior
Path correct even if the initial "/" is missing
Example repository
No response
Anything else?
No response