Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • G gitlabhq1
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 21
    • Issues 21
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • gpt
  • large_projects
  • gitlabhq1
  • Issues
  • #6049

Closed
Open
Created Jan 14, 2014 by Administrator@rootOwner

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)

Assignee
Assign to
Time tracking