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

Best pracs for location build agent [closed]

Where is place for build agent ? Can be location for build agent in the same place where deployed Application or need other server for deploy? Agent for deploying Application location is in the same ...
0
votes
0answers
9 views

Managing multiple “staging” branches in a git workflow

We're creating a migration workflow to move from SVN to Git, and we've hit a particular snag that is increasing the complexity of the proposed workflow. Some basic base for what we do in our current ...
-1
votes
1answer
26 views

invalid base hashes in `extends` with 'include' — gitlab-ci

I have a huge .gitlab-ci.yml file that I am trying to turn into the "main" ci file by moving some parts to another files which will then be called with the use of the "include" ...
0
votes
1answer
20 views

Trigger gitlab downstream pipeline from a upstream pipeline in a multi-project using trigger, rules and custom configuration variables

I have this scenario where I want to run the trigger in build stage only when $FLAG variable has been set by the .pre stage. However, the build stage never runs. How should I conditionally trigger a ...
0
votes
0answers
9 views

GitLab repo when pushing to deploy branch automatically build and deploy to multiple Heroku apps

We are trying to move from GitHub to GitLab. Our app is a monolith built on the MEAN stack. Currently, we have > 50 Heroku apps tied to the "deploy" branch of our Github repo. When we ...
0
votes
0answers
14 views

GitLab mirror error/glitch

Got an email from gitlab stating that repository mirroring (github) paused due an error: Fetching remote upstream failed: fatal: Unable to create '/var/opt/gitlab/git-data/repositories/@hashed/4a/5c/...
1
vote
1answer
25 views

Host credential manager and Docker runners

Imagine you have a GitLab Docker runner which you would like to pass credentials from a credential store. That is the CI/CD variable just designates the credentials profile name. Is there a way to ...
0
votes
1answer
27 views

Gitlab CI - Deploy to an active docker container

I am running production code within an active docker container. I would like to use the Gitlab CI tool to auto deploy changes to the production environment WITHIN the docker container. I am having ...
0
votes
1answer
33 views

Is gitlab-runner suit for production use

Is the GitLab CI/CD tools suit/reliable for production use? As more details, I have more than two servers and they've gitlab-runner inside then connected as runners to my GitLab instance. In this case,...
0
votes
1answer
37 views

Reset Gitlab Project to Repository Content

I had some unwanted files in a repo which is going open-source soon. I removed the files using git-filter-branch. I noticed the project size in Gitlab growing with every such removal. Some research ...
1
vote
1answer
27 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
17 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
32 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
43 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
73 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
13 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
12 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
18 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
27 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
29 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
44 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
223 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
77 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
19 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
23 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
60 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
44 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
38 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
16 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
73 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
46 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 ...
3
votes
2answers
533 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
562 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
800 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
32 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
87 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
883 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
180 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
53 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
142 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
1k 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
172 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
58 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
294 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
35 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
1k 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
81 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
314 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 ...