Gitlab-ci Integration - Merge requests
Created by: pguridi
Gitlab-ci works perfectly running builds on push. But with some merge requests I get the error "Cannot connect to CI server. Please check your setting".
The root of the problem is Gitlab CI will not build from all the project branches, only the selected ones from the GitlabCI UI (by default master). So, if the merge is from a branch that was never built by GitlabCI, the following line will return error:
(ci_status) "status = project.gitlab_ci_service.commit_status(merge_request.last_commit.sha)"
because merge_request.last_commit.sha was never built. Merge requests between "gitlabci tracked branches" works perfectly, showing the build result in the merge view.
Would be great to have an option to track all the branches from GitlabCI
*Update: Tested in gitlab-6-4-stable and gitlabci-4-0-stable, Ubuntu 12.04 x64.
related: #4764 (closed)