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

Is there any other approach for tagging git branch using pipeline without credentials in pipeline code?

I was trying to tag a git branch using Gitlab CI. With the help of this answer from this community, How to tag source code using gitlabCI I can successfully tag a git branch from Gitlab CI pipeline. ...
1
vote
0answers
12 views

Can Gitlab Auto DevOps provide an aws/dynamodb-local service without being customised?

I'm using an aws/dynamodb-local Docker container for use during local testing of my Node application and I'd like to integrate it with my Gitlab CI test job. I have made a rudimentary extension to ...
0
votes
2answers
25 views

Gitlab CI - Change branch dynamically

I have a nodeJS application which I deploy with Gitlab CI. When pushing to branch XYZ, the corresponding script runs, let's assume on stage 'dev'. That's working. So far so good. Is it possible to ...
1
vote
1answer
31 views

GitLab pipeline stop at the stage of pulling an image from Docker hub

Description: I have created a test project to serve a simple HTML page with httpd:alpine image. The following are the parts of the repository: index.html: <html lang="en"> <head> ...
1
vote
2answers
46 views

gitlab CI job fails after manual ftp deploy (lftp) command completes successfully

Scenario I'm using LFTP to deploy files via sftp. The transfer completes successfully and all files get to the destination but for some reason the job fails. Question How can I find out what is ...
1
vote
1answer
10 views

How to render assets when building a static website with GitLab Pages and Jekyll

I'm using Jekyll to build a static site and deploy it with GitLab Pages. This site is compounded of posts (contained in the site/_posts folder) and refer to other HTML and Markdown documents that I ...
1
vote
1answer
9 views

How to copy library source code from other Git repo to an Android Gradle application GitLab build process?

There is an Android application using Grandle for build. It uses a "library" stated in build.gradle file: dependencies { api project(path: ':specialproject.speciallibrary', configuration:...
0
votes
0answers
11 views

Is there a repository size limit on gitlab community edition self-hosted?

I'm trying to get more git LFS space per repository by spinning a self-hosted version of Gitlab community edition on Azure (gitlab ce). Gitlab.com has a storage size limit of 10 Gb per repo. But what ...
1
vote
1answer
25 views

Devops CICD run ReactJS application while testing with jest + puppeteer [closed]

Scenario I'm working on getting my end-to-end tests to work in a GitLab pipeline. Currently all the tests run locally but I'm having an issue getting them to run using GitLab's continuous integration ...
0
votes
0answers
27 views

Tool to manage Yaml files

Scenario : need to deploy 30+ mulesoft runtime using gitlab. gitlab takes one .yaml file per application. each .yaml file is 50+ lines and configurations in yaml files are dependent on the other yaml. ...
1
vote
1answer
29 views

GitLab keeps loading and finally fails when deploying a dockerized node.js app

GitLab Job Log [0KRunning with gitlab-runner 13.2.0-rc2 (45f2b4ec) [0;m[0K on docker-auto-scale fa6cab46 [0;msection_start:1595233272:prepare_executor [0K[0K[36;1mPreparing the "docker+machine&...
0
votes
1answer
108 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
1answer
60 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
18 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
14 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
21 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
31 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
29 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
33 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
15 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
32 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
42 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
346 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
405 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
497 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
27 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
66 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
477 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
131 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
48 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
112 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 ...
2
votes
2answers
970 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
124 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
41 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
228 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
11 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
34 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, ...
3
votes
1answer
897 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
76 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
199 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
28 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
91 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 ...
6
votes
1answer
4k 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
97 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
75 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
102 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
101 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 ...
1
vote
1answer
129 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 ...