catouc / gitlab-ci-crawler

MIT License
1 stars 3 forks source link

Project name is "" in cases where trigger is based on included artifact and artifact is a ci.yaml file. #98

Open mercury200Hg opened 8 months ago

mercury200Hg commented 8 months ago

If a project uses ci.yml produced as an artifact then the relationship of the trigger should be the source project of the artifact but instead it's currently marked as ""

Steps to reproduce:

If your .gitlab-ci.yml contains following syntax:

trigger:
    include:
      - artifact: child-ci.yml
        job: my-job

In that scenario the name of project in relationship is marked "" whereas it should either be should be the source project of the artifact.

catouc commented 8 months ago

Yeah the parsing is missing logic for dynamic child pipelines, as per https://docs.gitlab.com/ee/ci/pipelines/downstream_pipelines.html#dynamic-child-pipelines. Will try to have a look the next few days, it will require to throw out the parsing logic again in large parts so might take a bit longer.