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

GitLab: Make commit in (shared) CI runner and push to repository/open merge request

I want to run a scheduled pipeline on the shared runners that is able to open a merge request on my repository. I want to run a script that checks if updates for my pinned packages exists and if yes ...
0
votes
0answers
24 views

Gitlab CI push to docker-registry fails

I have GitLab server and a separate docker-registry. I have created a testuser with a testpassword. My .gitlab-ci.yml image: docker:latest services: - docker:18.09.7-dind variables: ...
0
votes
0answers
5 views

Gitlab Runner on PhotonOS using Docker-Executor

How can I run Gitlab-Runner on PhotonOS using the Docker-Executor? Using Gitlab-Runner requires mounting the docker-socket as a volume which is not possible in PhotonOS, so how can I go about ...
0
votes
0answers
17 views

Can a gitlab CI job exit okay but not update gitlab pages?

I have a gitlab repository with a scheduled regular CI job on a gitlab runner that grabs a data file from the internet, does some analysis, and then writes the results to its artifacts so that it ...
1
vote
0answers
13 views

Pipeline gitlab showned as “running” even though it isn't

I'm using gitlab CI/CD and I have a pipeline which does the following things : code verification build some test deploy in a test environment (manual) Some more tests If we don't do the deploy, ...
2
votes
0answers
20 views

Gitlab: Always having the possibility to launch a manual job (even if something failed before)

I'm using gitlab-ci. I have a pipeline that has the following steps : code-verification some tests deploy (manual) some more tests rollback (manual) Both the deploy and the rollback job have to ...
0
votes
0answers
10 views

Uploading package to GitLab Maven Repository trough Sbt

I'm working with a fresh trial of GitLab 13.0.6-ee installed via docker-compose. I would like to investigate the usage of GitLab Package Registry in our projects. Especially the support for Maven ...
0
votes
0answers
19 views

Gitlab AutoDevops: Integrate pipeline with EKS and ECR registry

I'm new to GitLab auto devOps and I'm trying to publish a NodeJs project (Gitlab example). I've an EKS Kubernetes cluster, correctly integrated in my Gitlab instance, and an ECR as container registry. ...
2
votes
1answer
29 views

How to specify 'os' for free gitlab runners ('runs-on' equivalent)

How can I specify the operating system in the .gitlab-ci file to indicate which underlying OS on which the gitlab-runner should be running when using the 2,000 minutes of free execution in with gitlab....
0
votes
0answers
13 views

How to run a schedule job on a specific tag

According to this picture, I can schedule a pipeline for a specific tag. However, I don't understand how to do that. I know how to schedule the run of a pipeline for a specific branch (I have already ...
2
votes
1answer
23 views

GitLab CI/CD page listing many gitlab runners that no longer exist

I am running GitLab Runner using a Helm chart as described on the GitLab Runner Helm Chart page. Everything seems to be working, but after about two months of running I see on my GitLab group that ...
0
votes
1answer
38 views

How comes a GitLab CI/CD job cant' find its artifacts?

In the Open Source ventilator project, we aim to provide those who focus on testing with a ready-to-go flash file for the Arduino controller board. While the binaries seem to be there, for some ...
2
votes
2answers
207 views

Build Docker images with DinD and BuildKit

I use GitLab's pipelines to describe the deployment process. And, as part of it, I build Docker images. For that purpose, I use Docker-in-Docker to build those images (i.e. download the Docker-in-...
1
vote
1answer
235 views

Set job start timeout in Gitlab CI

My pipeline consists of very long jobs that build docker images by compiling a set of packages; all of them require ~ 3 hours on my runner. I set up my CI so that only one job can run at a time, in ...
1
vote
2answers
227 views

Using Jenkins gitlab token to make an API call

From inside a Jenkins pipeline, I want to create a merge request on gitlab def toJson = { input -> groovy.json.JsonOutput.toJson(input) } def body = [ private_token: "...", ...
1
vote
0answers
17 views

“Create from template” function for Gatsby results in error on GitLab Pages

I am trying to create a new Gatsby project using the “Create from template” tab at https://gitlab.com/projects/new, but every time that I try, I get an error saying: The repository could not be ...
3
votes
1answer
51 views

Necessity of mirroring git repos for small team considering switching to Azure

Question: Are there any benefits to mirroring our git repos outside of Azure devops for a small (~7) team of developers who all work in the same office? Background Information I'm a developer ...
1
vote
1answer
206 views

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

Problem on gitlab-runner: cannot lock ref […] Another git process seems to be running in this repository

I got a problem on a gitlab-runner after pushing several commits: Running with gitlab-runner 11.4.0 (8af42251) on GITLAB-RUNNER 58c31dfa Using Docker executor with image registry.git.rwth-aachen....
1
vote
1answer
39 views

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

Spinnaker vs GitLab CI

Does Spinnaker have any features that make it worth using on top of GitLab CI (assuming a Gold GitLab plan with all features available)? GitLab seems to support canary deploys, review apps, manual ...
1
vote
2answers
608 views

Error from server (Forbidden): error when retrieving current configuration of: Resource: “apps/v1, Resource=deployments”,

I integrate the existing kubernetes cluster to the gitlab instance (omnibus). I get the below error in the deployment stage of CI/CD pipeline: Error from server (Forbidden): error when retrieving ...
0
votes
1answer
86 views

Containerized (official) GitLab CE starts and ends up in a boot loop with LDAP configuration

I have been working on deployment of a GitLab container with Ansible. At one point the whole thing broke with a terribly unspecific error message. After that point the container kept rebooting about ...
1
vote
2answers
34 views

GUI over GitLab CI Environment Deployments With Multiple Instances?

Let's say I have a SaaS style project (similar to Databricks). We may make release 2.0.0 of this project, have automated testing and deployment to dev, automated promotion to nonprod, etc. In ...
3
votes
1answer
172 views

Is GitLab flow (or GitHub flow, etc) anti build-once deploy-everywhere?

Historically, especially in the Java world, build-once, deploy everywhere has been a very big thing for deployments. Artifacts should be built exactly one time when a release is made and stored ...
1
vote
0answers
10 views

Are keys directly under `only` section treated as a union or intersection (or/and)?

From the GitLab CI/CD documentation on only/except it is suggested that the keys directly under the only section of a yaml CI pipeline specification are logically joined by an AND. Regarding only: ...
1
vote
1answer
31 views

Building Jenkins pipeline with GitLab info

I am new to DevOps world and desperately looking for your help. We have multiple API depositors in GitLab subgroup, I am trying to establish a CI/CD pipeline, which will connect to GitLab subgroup, ...
1
vote
1answer
659 views

Internal Server Error while running docker-compose to install Gitlab

I'm installing Gitlab on my server using docker-compose based on Docker Docs. My SSH port is not the default one (22) and I have changed it to something else like 2228. So the YML file became like ...
1
vote
1answer
71 views

How to automate installing an ISO in a VM?

We're trying to develop CI/CD processes to automate testing and installing our builds. Ya know, as one does in DevOps. The end result of our build process are ISOs that use Red Hat Kickstart to ...
3
votes
1answer
119 views

Combining CD and GitFlow

Firstly, I apologize if the title is not descriptive enough or does not describe my problem well enough. I'm struggling to figure out how to describe my issue in brief! It really seems like this ...
1
vote
1answer
15 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
27 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....
2
votes
2answers
89 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 ...
5
votes
1answer
3k 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 ...
2
votes
1answer
83 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
69 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
85 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 ...
1
vote
1answer
22 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 ...
1
vote
1answer
90 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
0answers
21 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 ...
1
vote
1answer
123 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
966 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 ...
1
vote
1answer
257 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 ...
1
vote
0answers
63 views

Persistent storageClass for GitLab on Kubernetes [closed]

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 ...
1
vote
1answer
1k 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 ...
1
vote
2answers
150 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
1answer
148 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
2answers
57 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
1answer
195 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
46 views

Set global repository access to GitLab via GitLab connections and Gitlab OAuth [closed]

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 ...