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
1 answer

How to download metadata.gz and job.log from GitLab API

I'm trying to script away downloading the three special files from our GitLab projects. Currently, I'm able to download artifacts.zip, and individual files from the zip, but not the other two special files: metadata.gz and job.log. Here's some stuff…
Josh
  • 700
  • 5
  • 14
6
votes
3 answers

Pipenv gets blocked while running with Docker in Gitlab

I created this simple project in Gitlab: https://gitlab.com/PequeX/deleteme With a Pipfile that installs only a couple of packages: [[source]] name = "pypi" url = "https://pypi.org/simple" verify_ssl = true [dev-packages] pytest =…
Peque
  • 13,638
  • 11
  • 69
  • 105
6
votes
4 answers

Get the `id` of gitlab project via gitlab api or gitlab-cli

Is there any way to get an id of the project via GitLab API . I created a project using GitLab API providing the project name - curl -kX POST --header "PRIVATE-TOKEN: "…
royki
  • 1,593
  • 3
  • 25
  • 45
6
votes
1 answer

How do i move a repository with LFS support to gitlab.com?

I have a repository on an old githost instance and i'm trying to migrate it over to gitlab.com. I'm using their instructions for migrating, but because this repository uses LFS, i am getting some errors that i cannot figure out how to resolve. Here…
Nicholas Tulach
  • 1,023
  • 3
  • 12
  • 35
6
votes
3 answers

gitlab ci cannot build windows container

I am trying to build windows container using https://gitlab.com, but I didnot find if this is supported or not. I made a test with a really simple Dockerfile: FROM mcr.microsoft.com/windows/servercore:ltsc2019 CMD echo "Hello World from…
mpromonet
  • 11,326
  • 43
  • 62
  • 91
6
votes
1 answer

Tomcat deploys older version of webapp

This might be a duplicate, cause I can't image that we're the first to encounter this, but I can't seem to find it. So, we are deploying WAR files to a tomcat 8.5 server with gitlab ci using maven. Issue is that tomcat messes up the versions when we…
Fussel
  • 1,740
  • 1
  • 8
  • 27
6
votes
1 answer

Gitlab CI: docker not found

I'm trying to build my project using gitlab ci feautures. According to this question I've done everything correcly. This is my .gitlab-ci.yml. .gitlab-ci.yml image: docker:latest services: - docker:dind stages: - build - release -…
6
votes
1 answer

Jekyll build breaks on GitLab, bundler issue

I have a Jekyll website hosted on GitLab. Since upgrading to the latest version, 3.8.5 my builds break and I get the following message $ bundle install --path vendor You must use Bundler 2 or greater with this lockfile. ERROR: Job failed: exit…
M5corn
  • 171
  • 5
6
votes
1 answer

Fetching private GitLab repo via HTTP

My plan is to use deploy tokens to access private repos (hosted GitLab). This one works fine: git clone https://my-gitlab-deploy-token-user:my-gitlab-deploy-token-pass@gitlab.com/username/projectname.git Accessing archive.tgz fails with…
ctp
  • 1,077
  • 1
  • 10
  • 28
6
votes
1 answer

Use Gradle to upload archives to GitLab Maven repository

I use Gradle and Gradle Maven plugin to upload archives to Maven Central. This works fine. I want to upload the same archives also to the GitLab Maven repository. Upload to this repo requires authentication with special HTTP header values. But I…
G. Fiedler
  • 664
  • 4
  • 12
6
votes
2 answers

Accidentally committed sensitive information - GitLab

I accidentally committed a file with sensitive data. I need to update that file by removing the sensitive data and ensure the older version doesn't show up in the history. I understand that those who have the repo cloned locally will still have…
DotnetDude
  • 11,617
  • 35
  • 100
  • 158
6
votes
2 answers

Gitlab artifacts and untracked

What is the use of artifacts:untracked in the artifacts? I see that untracked files e.g. binaries are part of the artifacts without setting untracked: true. So what is the use of it?
Jim
  • 3,845
  • 3
  • 22
  • 47
6
votes
2 answers

Docker build failed: tag invalid reference format (Gitlab CI)

I've created a repo in gitlab for a Dockerfile. In the .gitlab-ci.yml i defined two stages: build and push to the registry. This is the .gitlab-ci.yml file: image: docker stages: - build - push build: stage: build script: -…
Federico Taschin
  • 2,027
  • 3
  • 15
  • 28
6
votes
3 answers

conditional after_script in .gitlab-ci.yml

I have written few jobs in .gitlab-ci.yml and my question is similar to this one SO Question. However, the answers provided and accepted doesn't work for my scenario. The job has an after_script section which executes when the main task completes or…
rebelution
  • 389
  • 2
  • 13
6
votes
1 answer

Using a gitlab private repo as a golang dependancy in docker

I am mirroring a popular go library in my organizations gitlab's group (for redundancy). In my code I have: import ( "gitlab.com/org/group/library.git" ) I used this answer for guidance on using go get with a private repository. On my machine go get…
danielsmith1789
  • 1,056
  • 1
  • 12
  • 25