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
241 questions
57
votes
1 answer

Is there a [ci skip] option in GitLab CI?

I'm debugging the use of a report creator. I forgot a line and would like to edit the code without triggering the build pipeline. I know that it's possible to write [ci skip] in the commit pipeline to pass the pipeline execution in Jenkins CI, but…
avazula
  • 959
  • 2
  • 7
  • 15
33
votes
5 answers

How to tag source code using gitlabCI

We got gitlab new to our environment and trying to create some CI CD pipelines using gitlab CI. I have got some better progress with running some maven goals, creating pipelines and archiving artifacts using my .gitlab-ci.yml as below. I tried to…
pandey
  • 949
  • 2
  • 9
  • 18
21
votes
3 answers

Is it possible to have multiple gitlab-ci files in a single repo?

I have a single repo handling integration tests for 4 different software projects. As those projects share common resources, I'd like to create a generic file in which all those common features are set properly for preparing the CI/CD job. The…
avazula
  • 959
  • 2
  • 7
  • 15
13
votes
2 answers

Gitlab CI error during connect: Get http://docker:2375/v1.40/containers/json?all=1: dial tcp: lookup docker on xx.xx.xx.x:xx: no such host

I've recently created a new repository in gitlab.com, started a new Ubuntu instance in digitalocean, installed docker and gitlab-runner in the ubuntu instance. Also, did gitlab-runner register and passed the correct host and token from gitlab.com…
punkbit
  • 349
  • 1
  • 2
  • 10
10
votes
2 answers

Can I run multiple pipelines in a single GitLab repo using GitLab CI/CD?

I know that I can't have multiple gitlab-ci.yml files in one repo, but it still seems fairly limited. Say for example I have one set of tests I want to run whenever a change is pushed or on PRs, and another set I want to run every 24 hours. Is there…
9
votes
4 answers

Trigger Jenkins job from Gitlab CI with parameters

There is supposed to be a way to trigger a Jenkins job via GitlabCi, using the respective plugin. My question is whether there is a way: a) to trigger a parameterized Jenkins job b) to pass parameters when triggering the job
pkaramol
  • 1,007
  • 2
  • 8
  • 13
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
  • 1
  • 2
  • 5
7
votes
2 answers

How should CI/CD deploy to production environment - copy artifacts or git pull from the server?

We have an internal CI/CD server running private GitLab. It has the source code of our NodeJS project. We would like to run CI/CD and have it deploys to our on-premises production server. (Let's assume we are using the master branch). Here are two…
7
votes
1 answer

CI/CD for microservices in monorepo on Gitlab

I'm working on a project that consists of several different services in different languages (a React webapp, a Scala backend, some Python stuff etc). I currently have each of these services in separate repositories on Github, and build them…
7
votes
1 answer

How to configure gitlab-runner to run in the same docker host as gitlab?

I have a gitlab instance running in a docker container. Now I would like to setup gitlab-runner on the same host. Both are running: docker container ls CONTAINER ID IMAGE COMMAND CREATED …
tgr
  • 448
  • 6
  • 14
7
votes
3 answers

Jenkins shows the job as failed if there is nothing to commit to gitlab

I have been using one Jenkins job, that will pull repository from gitlab. Then it will modify the files and push it into gitlab (only if any user added any new files/modify contents in gitlab). Otherwise, it simply does empty commit. When empty…
Buvanesh Kumar
  • 467
  • 3
  • 5
  • 13
7
votes
2 answers

fatal: ambiguous argument 'master': unknown revision or path not in the working tree

when I modified one of my cookbook that I tried to add a cookbook dependency in berks file cookbook name, '=0.1.0', git: 'ssh://url:xxx/cookbook', tag: '0.0.1' and then tried to converge it which throws an error 'fatal: ambiguous argument…
pandey
  • 949
  • 2
  • 9
  • 18
6
votes
2 answers

Trigger cicd pipeline after merge request accept on master, Gitlab

Trying to run some task after merge request get accept (only on master branch). I am aware of only: - master -merge_requests config options, but want to specifically run pipeline only when code get merged in master.
Randeep tomar
  • 61
  • 1
  • 2
1
2 3
16 17