We have a master pipeline, which is responsible for triggering pipelines from multiple projects and performing some steps. I want to pass a file from first pipelines output to the second one but i am unable to do so.
image:
name: some-image
entrypoint: [""]
variables:
stages:
- create_file
- print_file
- consume_file
create_file:
stage: create_file
variables:
trigger:
project: user-name/project-name
strategy: depend
print_file:
stage: print_file
script:
- sleep 5
- cat output_file.txt
dependencies:
- create_file
consume_file:
stage: consume_file
variables:
trigger:
project: user-name/project-name-alternate
strategy: depend
I don’t want to resort to scripts instead of trigger. Have tried artifacts etc but i couldn’t find a way to pass them on to the next pipelines.
P.s. this is just a sample set out of the pipelines, there are multiple pipelines that are dependent on the output from first pipeline.