Gitlab CI:多项目管道触发器未运行下游分支的最新提交
目前,我有一个成功建立的多项目管道,该管道在我的“项目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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论