问题
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