Issue with variables for working_directory

#6 · open · 1 comments

View on GitHub ↗

nvmker

Hi, I have following codefresh.yml: ```yaml version: '1.0' stages: - prepare - build - test steps: main_clone: title: Cloning main repository... stage: prepare type: git-clone repo: openbridge/api-products revision: develop git: github pre_commit: type: rothandrew/pre-commit title: Validating pre-commit hooks stage: Validate ``` If there is no working directory set I getting following error: ``` Executing command: cd ${WORKING_DIRECTORY} /bin/sh: 2: cd: can't cd to /codefresh/volume/${{CF_REPO_NAME}} ``` If there is working directory set to ```./${{CF_REPO_NAME}}``` I getting following error: ``` Executing command: cd ${WORKING_DIRECTORY} /bin/sh: 2: cd: can't cd to ./${{CF_REPO_NAME}} ``` And same for just ```${{CF_REPO_NAME}}```. Only if there is working directory set as directly as ```working_directory: ./api-products``` I getting successful runs.

Comments

RothAndrew

Hi, thanks for reporting this. I'll take a look. I'm not happy atm with how the working directory stuff works. It needs to be refactored.