Skip to content

Artifacts are not downloaded on child pipeline jobs

Summary

I have a parent pipeline that unpacks an multiple IP core description files. I want to handle each IP core in a separate job with child pipelines.

So after extraction and job preparation steps, I want to hand over the job description files (XML files) via artifacts. According to the child pipeline's job logs, artifacts were not downloaded.

Steps to reproduce

  • Create a parent pipeline and a child pipeline.
  • Pack a text file into the parent pipeline's job's artifact
  • Display that text file in the child pipeline

Example Project

Not created.

What is the current bug behavior?

Artifacts from parent pipelines jobs are not downloaded by the child pipelines jobs. Moreover the keyword needs cannot be used in child pipeline's jobs.

What is the expected correct behavior?

Relevant logs and/or screenshots

This shows my failing child jobs due to missing artifacts:
image

Results of GitLab environment info

This was executed on GitLab-EE 12.9.2

Results of GitLab application Check

Does not apply.

Possible fixes

(If you can, link to the line of code that might be responsible for the problem)

Proposal

Add the keyword artifacts:true to trigger to allow artifacts downloading from parent to child

trigger_child:
  trigger:
    include: path/to/child-pipeline.yml
    artifacts: true

Related issues

Edited by Dov Hershkovitch