GitLab Collective

GitLab is the open DevOps platform, delivered as a single application. Our open source collaboration is a great place to share and learn information about version control, CI/CD, DevSecOps, and all-remote workflows.
GitLab is the open DevOps platform, delivered as a single application. Our open source collaboration is a great place to share and learn information about version control, CI/CD, DevSecOps, and all-remote workflows.

Questions

Browse questions with relevant GitLab tags

16,705 questions

0
votes
0answers
5 views

How to indicate progress of huge rsync, restic processes in a Gitlab job?

I'm using rsync and restic to backup lots of directories and files from some servers and these processes are defined in Gitlab jobs. I've tried using different flags to make their output smaller but ...
0
votes
0answers
8 views

why am I receiving "Empty reply from server" when trying to pull from gitlab in VS code?

i'm trying to pull from gitlab in VS code but keep receiving this error.
0
votes
1answer
15 views

Retrieving a CI variable from Gitlab project and use it within Dockerfile

I have a CI variable that I would like to use within my docker file. I have tried to include it such as ENV TESTING_UNIT=$TESTING_ID
0
votes
0answers
13 views

disable future commits to a specific file [duplicate]

I am trying to figure out a way to keep a file in a repository and just not track future changes to it. Gitignore not working and https://git-scm.com/docs/gitignore lead me to believe that this is not ...
0
votes
0answers
8 views

How can I set a minimum unit test coverage with GitLab CI?

I have a project hosted on GitLab that already has working CI configuration. I would like to add the notion of "minimal code coverage". What I would love is to force a positive delta (the ...
-1
votes
0answers
8 views

Command: git hist ERROR. fatal: option '--graph' must come before non-option arguments

I am trying to run git hist cmd on GitBash, Windows but I am getting the following errror, "fatal: option '--graph' must come before non-option arguments". On window power shell, I entered, &...
0
votes
0answers
29 views

Gitlab not picking up jobs from .gitlab-ci.yml on new projects

Gitlab not picking up jobs from .gitlab-ci.yml on new projects There seems to be a problem with my CI/CD pipelines as they don’t appear to be picking up jobs/stages from the configuration. I’m using ...
0
votes
1answer
16 views

gitlab: Any REST API to retrieve languages used in a repo

https://docs.gitlab.com/ee/user/analytics/repository_analytics.html#repository-analytics-for-projects Is there a REST API in gitlab to retrieve the analytics for the languages used in a repository? I ...
1
vote
1answer
19 views

gitlab: Setting the server hook causes the protection branch to fail

When I set up a pre-recevie server hook for gitlab project, it can work normally, but anyone and any role can directly push the code to this project protection branch (similar to master). When this ...
0
votes
1answer
17 views

Gitlab CI not displaying complete output in terminal

I have created a pipeline which performs ansible-lint on $CI_PROJECT_DIR. The problem is the complete output is not shown in UI as compared to running on my local machine. You can notice the ...
0
votes
0answers
14 views

GitLab CI: MERGE_REQUEST_EVENT not triggered by update?

I'm testing GitLab CI pipelines. I have created a merge request named "TEST" that have its gitlab-ci.yml with a rule like below: if '$CI_PIPELINE_SOURCE == "merge_request_event" &...
-1
votes
0answers
11 views

postgresql pod not able to connect to glusterfs on gitlab

I tried to create gitlab using gitlab helm chart from https://docs.gitlab.com/charts/. It worked for a while but after few hours I could access it any more. Upon checking I've found out that the ...
0
votes
1answer
9 views

CI pipeline for AWS ECS from gitlab repository

I want to create a pipeline for ECS deployment. So my .gitlab-ci.yml file is like that: stages: - build - test - review - deploy - production - cleanup variables: ...
0
votes
0answers
33 views

How can you use a private gitlab container registry to pull an image in kubernetes?

I have a private docker registry hosted on gitlab and I would like to use this repository to pull images for my local kubernetes cluster: NAME TYPE CLUSTER-IP EXTERNAL-IP ...
0
votes
0answers
28 views

Gitlab CI/CD - the connection to the server localhost:8080 was refused - did you specify the right host or port?

I build a spring boot project and I want to deploy it to minikube using GitLab CI/CD. I'm able to deploy the application by directly accessing the deployment.yml from local machine. But I'm getting ...
0
votes
0answers
12 views

cannot be cast to class org.glassfish.jersey.internal.spi.AutoDiscoverable

We are encountering this error, in the jenkins MultiBranch Pipeline job, while running "Checkout SCM" from the jenkinsfile to checkout gitlab.. Note: zero knowledge on java.. org.glassfish....
1
vote
1answer
22 views

Unable to connect to gitlab, Connection timed out

I have created ssh keys on unbuntu under id_company and id_company.pub, and updated config as: Host gitlab.company.com Hostname gitlab.company.com #PreferredAuthentications publickey ...
0
votes
1answer
30 views

yarn install takes too much time inside a docker image (GitLab CI)

I am using GitLab CI to dockerize a NextJS application (in an nx workspace). I am using GitLab CI's dind (Docker in Docker) service to build the image and then push it to a container registry. However ...
0
votes
1answer
33 views

Gitlab: Make the CI/CD failed when git pull failed in a bash script on server

My deploy script is an extremely simple Git pull. I have a bash script that does git pull that’s part of my source code. The issue is that if the git pull fails for any reason, it’s still showing a ...
0
votes
0answers
18 views

How to fix "RPC pipe not configured" in Docker gradle attempting to clone gitlab repo

I have a Docker container for a gitlab repo that needs another gitlab repo to build. We are using Gradle scripts to do our CD/CI. I am trying to write a step in the Gradle script to clone the ...
-1
votes
1answer
43 views

Gitlab: You are not allowed to push code to this project

I am very new in Gitlab. For playing a little bit and start learning I have created a project and cloned in my local machine. I have done a change and I have committed it without problems. Now I am ...
0
votes
1answer
11 views

How resolve the error "Comand failed" thread execution, when executing gitlab .yml

I am trying to implement a cicd process with gitlab and firebase and react but I get an error when running yarn build within gitlab, this is the .yml file. image: node:latest stages: - build - ...
2
votes
3answers
40 views

In Git, what is the value of including <start-point>, when creating a new branch?

The documentation says that, at the simplest level, I can run either of the following 2 commands to create a new branch (deliberately ignoring the "checkout" command, for this question): $ ...
1
vote
1answer
23 views

Shared Libraries/Shared Projects in Visual Studio. What is the best way to implement in Gitlab?

I have considered using GitLab shared modules (one for each library) but that doesn't work because Visual Studio doesn't generate an assembly for each shared module. If I create a separate repository ...
1
vote
1answer
26 views

error when connecting local mysql to gitlab ci/cdpipeline

I have a spring-boot application with mysql database connection and junit test classes. That's working fine in local machine. But when I pushed the code to Gitlab to build a CI/CD pipeline, the build ...
0
votes
1answer
20 views

`Could not find Project` error with multiple gitlab and github accounts setup using config file

I have two gitlab (Work and University) and one github (personal) accounts. So, I have three different ssh keys, work_id_rsa, uni_id_rsa and personal_id_rsa respectively. I followed the instructions ...
0
votes
0answers
12 views

Get a count of MRs created by X and assigned to Y via Gitlab API

That's already available by the UI filters on GitLab; after applying author and assignee you'll get the totals right next to the Open/Merged/Closed/All tabs. But how can I get these counts via the API?...
2
votes
1answer
20 views

How to test in gitlab CI some code that is packaged in a Docker image, and that uses the Docker Python SDK?

I have a Python program that uses the Docker Python SDK to run a container for a third-party docker image. Something like that in my code: import docker docker.from_env().containers.run(image="&...
0
votes
1answer
21 views

Why Gitlab runner throws "Is the docker daemon running?"

I was hoping to get some assistance with Gitlab runner instance which throws "Cannot connect to the Docker daemon at tcp://localhost:2375. Is the docker daemon running?" my gitlab-ci.yml: ...
1
vote
2answers
51 views
+100

Can not push code to the project - error 403

I'm facing a problem when I try to push my code to the project. Git shows error message: Push failed Remote: You are not allowed to push code to this project. unable to access 'https://gitlab.name.com/...
1
vote
2answers
32 views

How to remove the file from github and ignore/untrack while you add next time?

I have just come across a situation where I have added all the files to git hub with git add . command. However there are few files like I do not want to add to git hub like .gitignore which has ....
0
votes
1answer
26 views

Can I change gitlab-ci.yml file mid execution?

This is our simplified gitlab-ci.yml stages: - build - deploy # fetch home repo that'll run the pipeline processes before_script: - git clone git@git.org:home_repo/home_repo.git - cd ...
0
votes
0answers
16 views

Gitlab webhook trigger the jenkins job, but the mr pipeline status always be Checking pipeline status

Jenkins job is running, but the mr status is checking.
0
votes
0answers
20 views

Autostart of gitlab jobs at a certain commit and manual start in other cases

How in gitlab to make the job run automatically if there is a commit with sending a message, and so that the same job is run manually in all other cases? I try: rules: - if: '$CI_COMMIT_MESSAGE == &...
1
vote
0answers
28 views

Gitlab coverage badge with dynamic pipeline name

I have a project on gitlab.org with the following settings: Default branch is master, MRs are set to fast-forward only. A merge request (with a source branch different from master) triggers a ...
0
votes
0answers
15 views

GitLab Kubernetes Runners auto scale with number of Jobs

I was trying to implement the auto-scaled GitLab runners for the number of jobs available in the GitLab server. But the hpa is giving the following error. Type Status Reason ...
2
votes
1answer
22 views

Gitlab pipeline error With CD/CI for AWS ec2 debian instance: This job is stuck because you don't have any active runners online

I want to create a CI/CD pipeline between gitlab and aws ec2 deployment. My repository is nodejs/express web server project. And I created a gitlab-ci.yaml image: node:latest cache: paths: - ...
0
votes
1answer
30 views

Exporting the variables in Gitlab to properties file

I am using a Spring boot based application and a pipeline on gitlab. I need to export the tag and version to my variables in the properties file in the repo. In before-script i need to take the value ...
1
vote
1answer
16 views

Gitlab api for gitlab.cee

Does GitLab API work on GitLab host gitlab.cee? I would like to send such API: https://docs.gitlab.com/ee/api/notes.html not to gitlab.com but to gitlab.cee. However, it doesn't seem to work? Is there ...
0
votes
0answers
10 views

Error starting nuxt when deploying through GitLab runner

I'm trying to use GitLab CI/CD on my Nuxt website. My environment: Debian 10 server. Installed nodejs 16.x using NodeSource PPA as root. Installed GitLab runner deb from here. Created gitlab-runner ...
-1
votes
0answers
20 views

Not able to push existing laravel project to the gitlab because of ssl/tls secure channel

The steps i followed: git init git add . git commit -m "new progress" git remote add origin https://gitlab.com/user/project.git git branch -M main git push -uf origin main All is working fine except ...
0
votes
0answers
12 views

Chrome not reachable on gitlab CI with docker executor in WSL2

We recently changed our gitlab runner setup from docker desktop in windows to docker in WSL2. When I run cucumber tests in CI pipeline with the new setup, I see the following error for chromedriver: [...
1
vote
1answer
44 views
+100

Class import is not working on gitlabci with cypress

in my cypress script i'm importing files as i'm doing page object models like this import { LoginPage } from '../../page-objects/admin/login-page/LoginPage' import {Common} from '../../page-objects/...
0
votes
1answer
14 views

Gitlab CI: How to fail a pipeline while still running subsequent stages/jobs

I am trying to run some jobs in a "test" stage followed by one job in a "monitor" stage. The trouble is if the unit tests fail in the test stage, the entire pipeline fails and it ...
0
votes
1answer
19 views

Get gitlab file archive for most recent release

This will let me get an archive from a repo: GET /projects/:id/repository/archive.tar.gz Is there any way to pass a parameter such that I get an archive for the latest release rather than just the ...
0
votes
1answer
25 views

Semantic release not accepting GITLAB_TOKEN on gitlab private repository

Here is the error log message: [3:40:55 PM] [semantic-release] › ✖ The command "git push --dry-run --no-verify https://gitlab-ci-token:[secure]@[repository-url].git HEAD:main" failed with ...
1
vote
1answer
33 views

Getting "git: command not found" in a Docker container that has git installed

I'm running the following in a Docker container (in a Gitlab CI/CD pipeline) with the python:3 image. I installed git using the following command: apt-get update apt-get install -y git Based on the ...
0
votes
1answer
21 views

AWS ECS images in two task definitions using gitlab pipelines

I have come pretty far in case of setting up everything necessary for building, deploying and running an docker image to AWS ECS. So far I have acheived: docker image is built and pushed to my ...
1
vote
1answer
37 views

Avoiding .git folder in composer's vendor when installing from a custom Gitlab domain

I have a Symfony bundle on a git repository managed by GitLab. The bundle is added to Symfony using composer and pointing to the gitlab as an additionnal repository. Everything works fine, the ...
1
vote
1answer
31 views

How to migrate repositories from GitLab to GitHub

One of my team member has migrated the repositories from GitLab to GitHub but it's not migrated properly later my PM assigned me to do that task. It contains some large files.I am not able to push the ...

15 30 50 per page
1
2 3 4 5
335