The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Questions tagged [gitlab]

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

Filter by
Sorted by
Tagged with
4
votes
1answer
263 views

How to implement GitLab Flow branching model for microservices?

Recently I’ve been looking into alternatives to the git flow branching model and since I’m already using GitLab, I stumbled upon their own branching model called GitLab flow. I’m currently trying to ...
0
votes
0answers
5 views

Set session max duration on gitlab.com - 2FA

I am using gitlab on gitlab.com website (not self-hosted). Since we are using laptops, I wanted to force the use of a 2FA token (Smartphone application or a Yubikey) to prevent our code-source to be ...
2
votes
1answer
14 views

Multiple Microservices in CI environment

hey we have a GitLab stage and inside that we need to start an environment with several containers we pull from a local registry. We use compose and a docker in docker solution for that at the moment....
1
vote
1answer
13 views

Serve an application built by the pipeline

In the company that I work, the frontend application is very complex, so one of our layers of testing includes building/serving the application and testing with integrations mocked (The application ...
2
votes
1answer
52 views

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 ...
0
votes
1answer
886 views

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 ...
0
votes
1answer
26 views

What package manager does the gitlab docker CI image use?

I'm trying to install additional software but apt-get is not available. So in my .gitlab-ci.yml file I have: image: docker:stable What is the image based off from?
2
votes
2answers
80 views

Cost-efficient hosting for CI/CD?

I'm paying over $300/month for Kubernetes to have CI/CD in GitLab. And it only covers web apps, Android apps and deployment to Google Cloud. Plus some staging environments, that do not require many ...
3
votes
1answer
1k views

Where to obtain the token to register a GitLab runner?

I have a GitLab repository. I want to add a runner to it. I was able to install it, with the instruction here without Docker (step 3). Now I have to register it according to the instructions here. In ...
1
vote
0answers
32 views

Trying to migrate CI/CD process from Jenkins to Gitlab Runner + Docker on Windows

I need to improve the CI process of my projects, which is basically composed of the following things: a Linux server, that contains a Jenkins master a VM with Windows 10, with a Jenkins slave, ...
2
votes
1answer
34 views

How to properly manage mupltiple environmental variables with Gitlab CI and Docker Swarm?

In our project we are using Docker and we have multiple services with a pile of environmental variables (mostly credentials to various dbs, mail, samba, 30+ entries in total). It all worked well with ...
0
votes
1answer
18 views

GitLab CI/CD: How do I generate a change log between pipeline runs?

I'm currently using Gitlab CI/CD combined with Fastlane on our build machine to perform nightly builds of an iOS app, and push those builds to TestFlight on completion. So far, so good. However, I've ...
0
votes
1answer
22 views

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 ...
0
votes
0answers
14 views

Gitlab CI: Curl to localhost slows down over time?

I've been trying to make a GitLab CI job work, but I am not allowed to change the basics (e.g. stages, starting image). The code is using Python/Flask API which accepts a POST request with CSV data, ...
1
vote
1answer
35 views

CI pipelines, concurrency and build results possibly overwriting each-other

I'm currently using gitlab-ci to generate docker images for some repositories, however i dont feel as though this solution is as reliable as it should be. I can forsee a issue with multiple builds ...
1
vote
1answer
3k views

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 ...
1
vote
1answer
26 views

Can I persist a Yarn install through different stages in a GitLab pipeline?

I was thinking about a pipeline with the following steps: Install image dependencies (such as java, node, yarn and openssl) Install node packages needed for the build Install PMD Do a code Analysis ...
0
votes
1answer
224 views

Gitlab CI\CD Error: Failed to create container volume for /builds/root Unable to load image

I've installed the Gitlab local server and also install the Gitlab-runner and everything needs to use the CI/CD tools. After that When I run the CI/CD tools to build and deploy the project, it makes ...
0
votes
2answers
50 views

How do I automate the process of pulling the latest code and restarting a service on git push?

I have an application (Logstash) running on a Linux VM and the settings for it are on a GitLab repo. What I want is for the VM to pull the latest version of the settings file and restart the service ...
1
vote
1answer
19 views

How to execute shell command or call URL on new gitlab issue?

I want to execute a shell command or call a URL when a user creates a new issue. The reason behind this is to synchronize our Gitlab issues with our CalDav calendar infrastructure. We are using Gitlab ...
0
votes
0answers
12 views

Docker machine would give up to generate new CloudStack machines in GitLab autoscaling context?

How comes that GitLab gives up on generating new runners? We use an autoscaler setup with: Docker machine 0.16.1 Apache CloudStack driver One autoscaler works fine. But in the other region the ...
0
votes
1answer
368 views

Jenkins poll scm issue- Multiple jobs configured in single repo

We configured multiple jobs in single repo and enabled poll scm. The build is not triggerring whenever checkins happened. Let me know is it possible that poll scm will work for multiple jobs in ...
0
votes
0answers
5 views

Manage build dependencies in GitLab but not through triggers

What I have found out so far in GitLab, there is a "push notification" method through a trigger. If A is done, it triggers B. But if B* is a class of jobs dependent on A, how to tell every B to "...
3
votes
1answer
456 views

Globally configuring Gitlab with Jenkins in docker container environment

I have Jenkins users authenticated by OpenLDAP and also gitlab CE instance authenticated by the same OpenLDAP. And all the three are running in three different docker containers in the same network. ...
0
votes
0answers
36 views

GitLab test reports are failing on xml parsing

We have configured generating test reports in our scala application, JUnit tests reports are generated on a pipeline in gitlab where we run our tests. However in some applications (some work, some don'...
1
vote
1answer
141 views

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 ...
0
votes
1answer
50 views

Gitlab CI/CD fails to build docker image

I have built a custom base image from alpine and use it as the base for ruby services that we develop. FROM ruby:2.4.2-alpine ... I use Gitlab and Gitlab's docker registry along with it. Each ...
0
votes
0answers
22 views

Persistent storageClass for GitLab on Kubernetes

Using the official helm chart and documentation, I want to deploy GitLab to Kubernetes. The storage guide shows how to store persistent data and also offers example Helm values. Sadly this doesn't ...
0
votes
0answers
28 views

Distributed git directory shared between directories, but with different branch on each directory

Is it possible to have a .git directory shared between multiple jobs in Jenkins, where each job is using a different branch? Reason for the question: The repository has 30 GB (all components in one) ...
0
votes
2answers
31 views

Equivalent of GitLab's “before_script” for Jenkins?

I'm looking for Jenkins' equivalent of the before_script keyword provided by GitLab. So far what I found is the input keyword that you can use before entering the steps part of the stage, but this ...
1
vote
2answers
56 views

Trigger a GitlabCI pipeline after it detects a change via a curl callback

I would like to trigger a GitlabCI pipeline that builds a Packer image, whenever there is a new version of a binary released in Github. How could I do that via the ci yaml configuration? Should I ...
0
votes
0answers
73 views

Gitlab + Kubernetes on GCE + DIND - how to get access to docker subsystem in the cluster?

Preliminaries I am using Gitlab Community Edition 12.0.3, in which I have standard project admin permissions but no more. The installation only has few and slow CI runners, so I went and created a ...
0
votes
1answer
68 views

Docker instance of Gitlab EE Initial Configuration will not start

My system is running Ubuntu 18.04.2 LTS and Docker version 18.09.5, build e8ff056, Gitlab version gitlab-ee=12.0.3-ee.0. I am trying to spin up a docker container with the following run command: ...
0
votes
0answers
11 views

How to get GitLab on the cloud to run command with alias specified in the Dockerfile?

I'm trying to build an image with PMD to use in a runner with a project. I was planning to have PMD run a code analysis before the build and test steps. For that, I tried to set an alias for PMD ...
-2
votes
2answers
1k views

Gitlab doesn't open Word files

I'm uploading docx file in Gitlab, however it doesn't preview it. It only downloads it. Is it fixable?
0
votes
0answers
87 views

Hook execution failed Net::ReadTimeout when trying to clone a repository

I've been using git hooks on GitLab and got error Hook execution failed Net::ReadTimeout when trying to clone a repository is git hook has limit ? I have 866 websites listed on Integration some ...
1
vote
1answer
133 views

Chef resource to register gitlab runner automatically

We would like to automate installation of gitlab runner using chef. we are successful with it. Now, the Issue is regarding registering gitlab runner with chef resource. we have gone through chef ...
0
votes
3answers
90 views

Auto Deploy after push to git

I have some Codeigniter projects on some domains (on the same server), and the project is already in git. How to ensure server gets the new update when I push the code to git? Can anyone explain ...
1
vote
1answer
77 views

GitLab CI/CD job without pulling LFS files?

When our GitLab CI/CD job runs, it first pulls a Docker image and then git clones the entire repo. Afterwards, the Build commands are executed in the Docker image, etc. Is it possible to only clone ...
1
vote
0answers
26 views

Set global repository access to GitLab via GitLab connections and Gitlab OAuth

I am trying to configure a secured Jenkins server in a company network where GitLab CE is already running. I have set the access control and the authorization system in Jenkins via the GitLab ...
2
votes
3answers
5k views

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). ...
2
votes
0answers
34 views

How to add status flags or manual steps to CI/CD process with GitLab Pipelines

I'm trying to set up a CI/CD GitLab Pipeline with feature branches with various stages of testing, both automated and manual, culminating with an automatic merge to master at the end. I'm struggling ...
1
vote
1answer
251 views

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 ...
0
votes
0answers
167 views

ASP.NET Core appsettings.json secrets values transformation per environment using Gitlab

We are using Gitlab in the new company I started and is something new for me, I am not a devops guy but before collaborating with devops and using Octopus Deploy I was able to setup secrets per ...
0
votes
1answer
39 views

How to run a build from a specific old tag in gitlab ci?

I can build from a specific old tag in teamity. Screenshot: How to run a build from a specific old tag in gitlab ci? variables: MAVEN_OPTS: "-Djava.awt.headless=true -Dmaven.repo.local=.m2/...
1
vote
1answer
49 views

Overview of Gitlab CI/CD process for multi-project SOA application. Releasing and Versioning

I have a SOA-application. Each service is a separate project in Gitlab with its own Dockerfile. So, in terms of structure it looks as follows \UserService Dockerfile \src \OrderService ...
2
votes
1answer
44 views

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
0answers
255 views

How to use shared runner (dind) for build stage and runner with shell executor on my server for deploy stage?

I want to do the build of my image on a shared runner and build it on gitlab registry. then I want to pull that image, on my server using the runner on my server using shell executor. but I face a ...
6
votes
2answers
108 views

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 ...
1
vote
0answers
792 views

Access denied when pulling private registry image using helm with gitlab runner helm chart and ci job

I have a kubernetes cluster with 1 master and 2 workers. All nodes have their IP address. Let's call them like this: master-0 worker-0 worker-1 The network pod policy and all my nodes communication ...