Gitlab CI:多项目管道触发器未运行下游分支的最新提交

发布于 2025-01-31 06:08:00 字数 442 浏览 2 评论 0原文

目前,我有一个成功建立的多项目管道,该管道在我的“项目B”中触发下游管道时,当我运行“ Project” A Pipeline。

以下是我上游“ project a”的gitlab-ci.yml

...

browser-test:
  stage: integration-test
  trigger:
    project: path/to/projectB
    branch: develop
    strategy: depend

...

问题

当A的CI因过时的测试而预期失败时,我解决了问题。更新B的开发分支并重新运行A的CI 期望上游CI现在触发B开发分支的最新固定提交,但不幸的是,它触发了使用旧提交的下游管道(不是我做出的最新提交)显然再次失败。

I currently have a successfully established multi-project pipelines which triggers a downstream pipeline in my "Project B" when I run "Project A" pipeline.

Below is my gitlab-ci.yml of my upstream "Project A".

...

browser-test:
  stage: integration-test
  trigger:
    project: path/to/projectB
    branch: develop
    strategy: depend

...

Issue I'm facing

When A's CI expectedly fails due to outdated tests, I fix & update B's develop branch and re-run A's CI expecting the upstream CI to now trigger the latest fixed commit of B's develop branch but unfortunately it triggers the downstream pipeline with the old commit (not the latest commit I made) which obviously fails again.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文