I am using the Continuation Orb from Circle CI so that I can pass along an ENV that is determined in the Setup step. The setup step does what it is supposed to, but the continuation orb isn’t able to find the predefined yml file that I have in the repo. I COULD embed the yml, but it seems a little cleaner to have a second file and that is supposedly supported using the configuration_path property.
The second file, test.yml is in the same directory as my config.yml file… so .circle/test.yml. I did.a quick test and I can actually ‘less’ the file as a run command step, that sees it fine. However, when the Orb tries to load the file in, it throws an error.
jq: error: Could not open file .circleci/test.yml: No such file or directory
Use the continuation/continue command directly within the setup job (which already includes a checkout step) instead of relying on the continuation/continue job. The last 2 steps of the setup job would be:
Thanks so much for this rapid turn around. The fact that you were able to quickly identify a work around AND then followed with a full merged fix, that rocked! I REALLY appreciate it.
Ok, so that definitely resolved my inclusive of a secondary config file.
The follow up (and maybe I should post this independently) but I am getting an error when I try to read the parameters I passed.
The error Arguments referenced without declared parameters: targetBranch stems from the fact that you’re using the scope for a job or command parameters.
In your configuration file, targetBranch and buildNumber are pipelines parameters, so you need to reference them using the scope pipeline.parameters: