Skip to content

Issue with variables for working_directory #6

@nvmker

Description

@nvmker

Hi,
I have following codefresh.yml:

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions