我可以将两个分支合并到GitLab CI版本中吗? [英] Can I combine two branches into a GitLab CI build?

查看:171
本文介绍了我可以将两个分支合并到GitLab CI版本中吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道GitLab CI将分别构建每个分支,但是当我构建功能分支时,我想将一些测试结果与master分支上的相同测试进行比较. 我可以针对最新版本的master进行操作,也可以根据需要在每次功能分支提交时重新构建master.

I know that GitLab CI will build each branch separately, but when I build the feature branch I want to compare some test results against the same tests on the master branch. I could do that against the most recent build of master, or I'm happy to rebuild master on every feature branch commit if required.

在GitLab CI中可以吗?

Is that possible in GitLab CI?

推荐答案

您可以使用管道触发以在功能分支管道中建立您的master分支.

You can use pipeline triggers to build your master branch during a feature branch pipeline.

在您的情况下,我想您想等待master管道完成.这不是Gitlab的默认行为.

In your case I guess you want to wait for the master pipeline to complete. This is not the default Gitlab behavior.

使用名为 pipeline-commander 的脚本,您可以等待触发器完成.

Using a script called pipeline-commander you can wait for the trigger to complete.

这篇关于我可以将两个分支合并到GitLab CI版本中吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆