Questions tagged [gitlab]

GitLab is an open source Git repository manager with issue tracking and wiki as well as continuous integration features. Use this tag for programming questions related to the GitLab API or similar; questions about general usage are considered off-topic.

GitLab is open source software to collaborate on code. It can be considered an open source self-hosted GitHub, 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:

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
17630 questions
6
votes
2 answers

Create 2 Pipelines for a Node Project in GitLab

I'm trying to run 2 pipelines for a project in GitLab, but I can't find any way to do it.
Flavio
  • 71
  • 1
  • 3
6
votes
2 answers

How to configure GitLab CI Pipeline only on merge requests and that too only for specific branches?

I have following configuration for enabling pipeline on merge requests. I want this pipeline to run only on merge request to few specific branches only. For Ex: "release/some-xyz-branch" and "develop" branches. How to do it ? test_job: stage:…
6
votes
2 answers

How to fix "No such file or directory" during gitlab-ci run

I have just configured the gitlab-ci with a runner, and run the template bash ci tasks as: # This file is a template, and might need editing before it works on your project. # see https://docs.gitlab.com/ce/ci/yaml/README.html for all available…
armnotstrong
  • 8,605
  • 16
  • 65
  • 130
6
votes
2 answers

Manual approval in GitLab CI deployment pipeline

we've got a GitLab CI build / test / deployment pipeline and need to insert a manual approval between deployment to Test and promoting to Prod. I can't figure out how to do that. Ideally we would like to have a button like in GoCD or in AWS…
KeepLearning
  • 349
  • 2
  • 3
  • 10
6
votes
1 answer

Can I push to a branch after I made a merge request?

Is it okay to push to a branch after a merge request has been made? When the branch actually gets merged into the master branch, does it take the new pushes (made after the merge request has been made) into account?
Zinjifra
  • 83
  • 1
  • 7
6
votes
1 answer

Gitlab merge "merge request" with commit

I believe it's stupid question but I don't understand how should I use gitlab merge request push options I have this scenario: I have open merge request from develop to master I make some changes on develop branch and push them to gitlab server…
Daniel Barton
  • 491
  • 5
  • 14
6
votes
2 answers

How to use `extends` with `gitlab-runner exec`

I have a .gitlab-ci.yaml with the extends directive, which works on the gitlab-ci, but I cannot test it with gitlab-runner exec, it looks like the extends is ignored by gitlab-runner. I have two files, like: # .2extend.yml .job2extend: image:…
6
votes
1 answer

Not getting the output from shell script in Gitlab CI

I have set up a gitlab runner on my windows. I have a build.sh script in which I am just echoing "Hello world". I have provided these lines in my gitlab-ci.yml file: build: stage: build script: - ./build.sh The runner executes this…
deanavenger
  • 582
  • 1
  • 7
  • 24
6
votes
2 answers

How can we programmatically approve merge requests in GitLab?

Our group has a bot that creates merge requests for certain mechanical changes to our code base. We'd like these MRs to get merged in automatically if/when the CI pipeline succeeds, but our projects require an approval from a member of our group.…
Laurence Gonsalves
  • 137,896
  • 35
  • 246
  • 299
6
votes
3 answers

Check scopes of personal access token from GitLab

How can I check the scopes (permissions) of a personal access token from GitLab? Given a personal access token, get all the scopes permitted to this token.
MOntu
  • 837
  • 1
  • 6
  • 8
6
votes
2 answers

Avoid push --force when updating a gitlab merge request

tl;dr How can I update a gitlab merge request the same way as a gerrit changeset? In a rather standard gitlab setting, I own a project and want it to keep a linear history. I set the merge settings accordingly and everything works fine from the UI.…
choeger
  • 3,562
  • 20
  • 33
6
votes
2 answers

Fingerpints for SSH do not match with Gitlab.com

I added an ED25519 public key to my account on gitlab.com. I then set up my .ssh/config to use the private key for Host gitlab.com: Host gitlab.com gitlab.*.com User git IdentityFile ~/.ssh/gitlab_ed25519 When I do a git fetch, I am…
void.pointer
  • 24,859
  • 31
  • 132
  • 243
6
votes
1 answer

Trigger GitLab job when merge request is closed

I'm looking for a way to run a "cleanup" job/pipeline/etc when a GitLab merge request is closed (either merged or not). The issue is this - we create a feature deployment on our cluster anytime a merge request is opened. Currently, I have no…
Hamy
  • 20,662
  • 15
  • 74
  • 102
6
votes
5 answers

Cloning a private Repo from gitlab CI job using HTTPS without exposing my credentials into CLI

I have a gitlab ci job that does some work for me but it depends on another repo so I need to clone another repo inside this job. I can't use https cloning because gitlab will ask me for user name and password and the gitlab ci is non-interactive. …
Shalan93
  • 774
  • 1
  • 7
  • 20
6
votes
1 answer

bundler: Using a custom path while using system gems is unsupported

I am using GitLab-CI/CD to build my Rails application. I have noticed my builds are failing due to Using a custom path while using system gems is unsupported error, which were working perfectly fine before. Tried to check newer update releases but…
Aparichith
  • 1,452
  • 4
  • 20
  • 40