【发布时间】:2019-12-20 19:30:31
【问题描述】:
我在我的gitlab-ci.yml 中有一个工作,它触发了一个生成工件(在本例中为徽章)的外部管道。
我希望能够获取这些工件并将它们作为工件添加到我项目的桥接作业(或其他一些作业)中,以便我可以引用它们。
我触发的工作如下所示:
myjob:
stage: test
trigger:
project: other-group/other-repo
strategy: wait
我想要这样的东西:
myjob:
stage: test
trigger:
project: other-group/other-repo
strategy: wait
artifacts:
# how do I get artifacts from the job(s) on other-repo?
badge.svg
Gitlab 有一个 endpoint that can be used for the badge url 用于从项目的最新 Pipeline/Job 下载工件
https://gitlabserver/namespace/project/-/jobs/artifacts/master/raw/badge.svg?job=myjob
有没有办法从触发的作业中获取工件并将它们添加到我的项目中?
【问题讨论】: