We have two independent pipelines, A and B, from different repositories.
After A is successfully deployed, it will post a file called
config.js, I am thinking to save it as artifacts and share this file to pipeline B and save it to
src/config.js when run pipeline B.
How can I set the pipeline (.circleci/config.yml ) in pipeline A and B? Any reference for me?
Thanks for your reply. I have gone through the url you pasted many times before, that’s clearly for sharing data among jobs in same pipeline.
I am looking for the solution to share the data between pipelines which from different repositories.
Oh, my mistake - I didn’t read the post closely enough.
How would you want to decide which job’s
config.js to use?
You should be able to use the API to find the latest result and download an artifact.
Another approach i’ve used in the past is to push the generated file to a git branch, and have the other project read it from there.