Questions tagged [gitlab]

For questions about GitLab, an open source Git repository manager with issue tracking, wiki and continuous integration facilities.

GitLab is open source software to collaborate on code. It can be considered an open source self hosted , but GitLab.com also provides git hosting in the way GitHub does, and you can also have private repositories for free.

Features

GitLab has the following features:

  • Code management
  • Merge requests
  • Issue tracking
  • Wiki
  • Code review
  • Continuous Integration and Deployment
  • Fine grained access controls
  • Advanced LDAP synchronization
  • Email Alerting Service

Screens

Gitlab-demo

There are three versions available for GitLab:

  • Community Edition (CE)
  • Enterprise Edition Starter (EES)
  • Enterprise Edition Premium (EEP)

Resources

  1. Source Code (GitHub mirror)
  2. Documentation
  3. Community
  4. Mailing List
  5. Official Blog
  6. GitLab Continuous Integration
251 questions
9
votes
1 answer

Is there any way to break long command into multi lines in GitlabCI

I have a very long command in .gitlab-ci.yml file to ssh to jump host then use rsync to sync files from my repo to destination host (it does not have public ip so I need to access it via jump host). Here is my .gitlab-ci: image:…
Chau Giang
  • 223
  • 1
  • 2
  • 6
8
votes
2 answers

Multiple paths with different expiry time in gitlab-ci runners

I'm having issues with parsing a build directory between stages using Gitlab-CI. Gitlab-CI wipes the created build artifacts between stages which seems weird. I'm trying to store the build artifacts between the build and the test stage, however the…
Rekovni
  • 933
  • 10
  • 24
8
votes
2 answers

Using gitlab-ci to cache maven repository

We have a server running gitlab and gitlab-runners on same machine. I've defined a runner as below [abc@xyz bin]# gitlab-ci-multi-runner register Running in system-mode. Please enter the gitlab-ci coordinator URL (e.g.…
radbrawler
  • 257
  • 2
  • 5
4
votes
1 answer

Gitlab Runner not running scripts with Windows shell configuration

I have a Gitlab Runner running locally on my windows box. It works fine for the before script section. my .gitlab-ci.yml follows: before_script: - pushd . && uru 233 && popd && set HOME=c:\ && ruby -v && bundle install rspec: script: -…
David West
  • 1,463
  • 3
  • 16
  • 25
3
votes
1 answer

GitLab Pages delivers random content

I am experiencing weird behavior with the Pages feature of GitLab Omnibus package running on an Ubuntu 16.04 virtual machine. Some projects use Pages with Jekyll built by GitLab CI, which has been working as expected since it was first published…
mcnesium
  • 375
  • 1
  • 2
  • 7
2
votes
1 answer

Code review with GitLab?

Is there a way to perform code review (for your own projects) using GitLab? For instance automated reviews, but also manual review where you can comment and propose changes at a review of a commit?
2
votes
1 answer

Trigger a cross project GitLab trigger

I am trying to call a trigger on one GitLab project using a job on another. Let’s call one A, and the other B. I want a job in A to trigger a job in B. In A, this is what my .gitlab-ci.yml looks like: deploy:staging: image: alpine variables: …
Remco Haszing
  • 121
  • 1
  • 3
2
votes
1 answer

Can I create a pipeline stage which unconditionally passes but one in which a subsequent stage conditionally runs?

This is a follow up to Should a pipeline fail if early termination is desired?. In that question, I'm asking about best practices and whether this request is sound. In this, I just need to know how best to get it done. Normally a pipeline breaks…
Evan Carroll
  • 2,091
  • 3
  • 22
  • 65
1
vote
0 answers

Do Gitlab Personal Access Tokens grant permissions on repos you own, or all repos you have access to?

In Gitlab I can create a Personal Access Token for read_repository and write_repository permissions. Does this token grant access to just my projects in my namespace, or all projects that I have access to? read_repository Grants read-only access to…
Evan Carroll
  • 2,091
  • 3
  • 22
  • 65
1
vote
1 answer

GitLab "Groups" for permissions only?

I have a many repos all of which can be edited by a different "Senior Review Group" group. I've detailed this idea here. Should I use the GitLab Group functionality to assign reviewers are say who can merge? Or should I create external tooling…
Evan Carroll
  • 2,091
  • 3
  • 22
  • 65
1
vote
1 answer

Should a pipeline fail if early termination is desired?

Normally a pipeline breaks down into stages such that each stage has one or more jobs. In order to stop the pipeline from running conditionally, you simply fail that stage of the pipeline. For example let's assume I have a pipeline with four…
Evan Carroll
  • 2,091
  • 3
  • 22
  • 65
1
vote
1 answer

Where/what is the `auto-devops` script in gitlab's "auto devops" staging stage?

https://gitlab.com/gitlab-org/gitlab/blob/master/lib/gitlab/ci/templates/Jobs/Deploy.gitlab-ci.yml staging: extends: .auto-deploy stage: staging script: - auto-deploy check_kube_domain - auto-deploy download_chart - auto-deploy…
Chris Stryczynski
  • 493
  • 1
  • 3
  • 13
1
vote
1 answer

How do I set a base domain for gitlab's auto devops?

Docs seem to point to https://docs.gitlab.com/ee/user/project/clusters/index.html#base-domain However it doesn't seem to specify how to set the base domain strangely enough. Can't seem to find info no this via a web search, I've also looked at…
Chris Stryczynski
  • 493
  • 1
  • 3
  • 13
1
vote
1 answer

per-merge request GitLab CI pipeline customization

We have a gitlab CI pipeline for building&testing our product. Our product can be, fairly clearly, divided into two distinct parts - let's say we call them A and B. The most time-consuming part of our pipeline are end-to-end (e2e) tests that take >…
vonovak
  • 111
  • 1
0
votes
1 answer

Gitlab - Is there any reason not to default enable 'Allow Users to Request Access' for Projects?

Is there any reason not to default enable 'Allow Users to Request Access' for Projects? I can conceive that there may be a reason this is not enabled by default. But I am considering enabling it if possible. If not that may be a feature…
David West
  • 1,463
  • 3
  • 16
  • 25
1
2 3