Overview
When you use Dynamic Configuration, you need to use continuation orb. If you see the following error message while running the pipeline, please check the steps described below.
jq: error: Could not open file <file path>: No such file or directoryExited with code exit status 2
Confirm whether the config file path is correct
If your config files directory looks like the one below, you should set the file path as follows.
[Config files directory].circleci/ │ config.yml └ continue.yml
[config.yml]- continuation/continue:
configuration_path: .circleci/continue.ymlConfirm whether the config file exists in your repository
Even though the file path is correctly set, this issue can occur. If this is the case, please confirm whether the config file exists in your repository. Also, please test to add the checkout step before the continuation/continue step to ensure the file can be placed on your current branch.
[config.yml]steps:
- checkout
- continuation/continue:
configuration_path: .circleci/continue.yml