Support merging artifacts/path arrays with !reference

Release notes

The YAML function called !reference allow you to reuse the same configuration in multiple jobs, however merging artifacts arrays is not supported. Allow merging artifacts arrays with !reference lets you target the artifact configuration you want to reuse as apart of your CI/CD pipeline, even if it's in another file.

Problem to solve

When trying to !refence a artifacts array a syntax error is reported. For example:

.another-job:
  artifacts:
    paths:
      - "**/hs_err_*.log"
      - ooms.tar.gz

job:
  artifacts:
    paths:
      - additional/path
      - !reference [.another-job, artifacts, paths]
  script:
    - echo "This is my script job"

Proposal

Add support for artifact arrays.

Intended users

Metrics

Edited by Ricardo Amarilla