I am trying to use dynamic pipeline to handle my project of lots of sub-directories with sub-projects.
I use a bash script to generate a “generated-ci.yml” file in “setup” stage as artifacts for the “test” stage.
The .gitlab-ci.yml looks like this:
# For exmaple, there might be typos... stages: - setup - test generate-config: stage: setup script: - ./generate.sh artifacts: paths: - generated-ci.yml trigger-step: stage: test trigger: include: - artifact: generated-ci.yml job: generated-config
The problem is that, my gitlab host disabled artifacts “405 Method Not Allowed”.
I can upload/download the “generated-ci.yml” to some cloud artifact registry with a script.
Say, I can add
upload.sh generated-ci.yml $CI_PIPELINE_ID in generate-config.script, but can’t add
download.sh generated-ci.yml $CI_PIPELINE_ID in trigger-step.script.
This is because in the trigger pipeline, script is not allowed.
Is there a way to work around?