Can I combine two branches into a GitLab CI build?

…衆ロ難τιáo~ 提交于 2019-12-11 16:05:20

问题


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.

Is that possible in GitLab CI?


回答1:


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

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

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



来源:https://stackoverflow.com/questions/47581801/can-i-combine-two-branches-into-a-gitlab-ci-build

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!