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

17,614 questions

0votes
0answers
11views

Git Workflow for Code without any regression test

So I have a project which does not have any regression test or automated unit tests.We release every week. We use forking git flow which is basically everyone forks repo and pushes their changes in ...
0votes
0answers
47views

Python way of doing git remote add origin

Is there a way to this in Python? git remote add origin https://gitlab.com/xxxx/aaa/bbb/feature2.git git branch -M main git push -uf origin main Things I have tried: I tried to do from git import ...
  • 1,061
1vote
0answers
14views

Cache in gitlab ci while building docker images

I am building CI/CD pipline with GitLab using GCP cloud build docker image but the build is taking longer time to complete can anyone help me regarding this why build is taking longer time? How we can ...
0votes
0answers
7views

No coverage files located, please try use `-f`, or change the project root with `-R`

I have files in the folder: coverage/lcov.info and I will upload the file using codecov uploader version 0.2.4 in CI Gitlab (using flutter) but got error There was an error running the uploader: No ...
0votes
0answers
15views

gitlab ci cache extends

I want to include multiple caches into job from shared repository of my yaml scripts. This is my yaml: .node_modules-cache: cache: key: files: - yarn.lock paths: - ...
0votes
0answers
19views

gitlab central repository for all maven artifacts?

We are using gitlab and so far we are only missing one feature and we yet could not find out how to achieve that - or if it is even possible. Currently, if some of our artifacts are dependend on other ...
  • 8,837
1vote
1answer
17views

exception 'Drush\User\UserListException' with message Unable to find a matching user for admin

I am using the drupal7 I have been executed this command in git bash -./prepare_db_for_dev.example.sh In below, it give error. Reset admin password to "admin". Drush\User\UserListException: ...
0votes
0answers
21views

How to share cache on gitlab-runner when concurrent jobs

I have a code that I test using gitlab-ci. Previously, I was using a shared gitlab-runner, and everything was fine. I recently migrated to a gitlab-runner hosted by my company, and the exact same code ...
  • 679
0votes
0answers
19views

Issue "TypeError: external_defu_ is not a function" running generate on gitlab

every time I try to launch the generate for my nuxt project on gitlab, I get back for every page generated a strange error, [error] /Dashboard TypeError: external_defu_ is not a function at ...
0votes
0answers
13views

What is the reason for getting "Error: not supported" when trying to run chai mocha tests in GitLab Ci/Cd pipeline?

I am trying to run a very simple mocha test in a GitLab Ci/Cd pipeline. My application uses nodejs, express and typescript. The directory structure looks like this: - root - backend - ...
0votes
0answers
14views

docker in gitlab pipeline cant access compose file on host machine

Im using the following .gitlab-ci.yml : stages: - build docker-build: # Use the official docker image. image: name: docker:latest entrypoint: [""] stage: build services: ...
-1votes
0answers
15views

OSX DotNet Publish with DotNet-Bundle - App Damaged Message After CI Artifact Download

I have a rather odd situation going on I'd like to understand. I have an Avalonia application going through a GitLab build process. The runner is on an M1 mac-mini. In order to build the MyApp.app ...
  • 9,540
1vote
1answer
24views

ssh git clone ask for password

I'am trying to clone from our gitlab server using ssh I've set ssh public key and when I try to clone [email protected]:root/voice_authentication_webui.git it ask me password why is that ? also I get ...
0votes
1answer
33views

gcloud: command not found

error failed pipeline on run pipeline gitlab The deployment of this job to Production did not succeed. Running with gitlab-runner 15.1.0 (76984217) on ci 3wNvyH89 Preparing the "shell" executor ...
0votes
1answer
30views

Why am I getting an error message when I try to deploy my Gatsby website?

I have a Gatsby app. When I build it locally, it works fine, but when I try to deploy it to Netlify or Gitlab, I get the below error message: Netlify error message: 8:44:20 PM: npm WARN config tmp ...
0votes
0answers
20views

semantic-release does not detect old tags/releases performed before semrel integration

We were using GitLab release job to create releases whenever a tag is manually created, and we have already few tags/releases created that way, now we are moving to semantic-release to create releases ...
1vote
0answers
16views

GitLab CI runner not finding file

My scripts can't be found even though echoing the path and files in the runner show it is indeed there. Anything else I can try? At a loss here. Thanks.
  • 352
0votes
0answers
23views

GitLab CI/CD Maven SpringBoot upload *jar error: No such file or directory

I am trying to setup a Springboot monorepo GitLab Pipeline, but the artifacts couldn#t be found. mvn job maven-package: stage: package inherit: default: true variables: true script: -...
0votes
0answers
19views

gitlab plugin test connection issue on jenkins

Im having issue with gitlab plugin test connection on jenkins. it gives error when I hit the "test connection" button with the given values. GitLab user is maintainer and has full access on ...
1vote
1answer
26views

Getting fatal error in object: unshallow <SHA> in gitlab pipeline

I am trying to push a change to gitlab, but my gitlab pipeline is failing due to below error. fatal error in object: unshallow <commit-hash> I dont have access to the gitlab build pipeline, so ...
1vote
2answers
32views

Docker completely remove container and image

Reinstalling gitlab docker issue So today I messed up accidentally typed docker-compose down instead of stop and since my dockerfile has "latest" tag it tried to update it and it failed now ...
0votes
1answer
24views

How to resolve 404 on gitlab nuget packages url?

We are using: GitLab Enterprise Edition 11.1.4-ee On GitLab docs, it says: nuget source Add -Name "GitLab" -Source "https://myprivateurl/api/v4/projects/myprojectid/packages/nuget/index....
1vote
0answers
8views

gitlab-runner: Segmentation Fault? How to solve this?

I have been trying to figure out what's the problem with gitlab-runner,I have installed gitlab-runner on unix. it suddenly shows an error "Segmentation fault (core dump)". I tried to ...
-1votes
0answers
22views

Open excel file to view contents in gitlab

TL/DR trying to figure out a way to open a uploaded Microsoft excel file in an iframe or some other window on GitLab using an embedded virtual desktop possible? Long version I have a GitLab page that ...
0votes
0answers
20views

Git submodules migration to another location

I need to change submodules location on my Gitlab. I updated the submodule URL in my submodules (updating url in .gitmodules file), then I used commit and push to my working branch (no master branch). ...
0votes
0answers
21views

Job is running even allow_failure not set, how to fix that?

I have two jobs. I kept conditions in such a way to not continue if the previous job fails. But it seems, it is working a differently, please find the details below. First one build-rpm, as below. ...
0votes
0answers
12views

Move repository from phab to gitlab

I want to move the repository on the phabricator side to my gitlab server, how can I do it? When I try I can only move tasks. best regards
1vote
1answer
21views

Apply a git patch directly from GUI and commit to a branch?

I currently have a patch (generated using git diff) that I want to apply to a repo. But due to certain limitations, I am unable to pull the repo locally. But I have full access of the repo via the ...
0votes
0answers
30views

How to deploy react application on heroku using .gitlab-ci.yml

I have created a React app and used webpack to bundle it. Now I am trying to deploy the app on Heroku. The build is successful but when I try to open the link I get "Application Error". This ...
0votes
0answers
26views

Terraform Module Project Setup

We are currently using Terraform open source and I was wondering if anyone knows how to solve this use case. We are executing Terraform, using Gitlab pipelines. We have a project for Terraform modules ...
  • 3,078
1vote
1answer
24views

Gitlab private token permission

Is it possible to check the scope / permissions of the private token that we connect to gitlab? In the bash script I would like to check if I can create a branch with the token that I authorize. This ...
1vote
1answer
28views

I cannot find Gitlab's test coverage parsing setting in my CI/CD settings

I would like to set the regular expression for my test coverage results. According to Gitlab's documentation, I should be able to do that in the test coverage parsing setting in my project settings, ...
0votes
0answers
11views

This GitLab CI configuration is invalid: jobs build the car config should implement a script: or a trigger: keyword

I created this .gitlab-ci.yml file with the following content build the car: scripts: -mkdir build -cd build -touch car.txt -echo "chassis" > car.txt ...
0votes
0answers
17views

Building docker image with dependency proxy results in 401 Unauthorized

I am trying to use Gitlab's dependency proxy like so: .build: stage: build image: $CI_DEPENDENCY_PROXY_GROUP_IMAGE_PREFIX/docker:latest variables: DOCKER_HOST: tcp://docker:2376 ...
  • 37.4k
1vote
1answer
38views

How to move files from one to second directories on branch during Pipeline run? Gitlab

I have created Docs folder and it should contain report files. I'm trying to move content from temporary created Allure folder to Docs folder and then copy everything from Docs to public folder to get ...
0votes
0answers
36views

Dockerfile ENTRYPOINT script doesn't run when the container starts if docker compose is ran from Gitlab pipelines

My container has a shell script that runs after the container starts. It was working before but when I push it to Gitlab and ran it with a pipeline it doesn't start. Here's my Dockerfile. Dockerfile # ...
0votes
1answer
21views

gitlab runner and testcontainers with docker socket binding

I am using testcontainers to start a Postgresql DB for my junit test. Locally everything works fine. This is my small test project: https://gitlab.com/janning/tpj-testcontainer I can run the test ...
  • 8,033
0votes
0answers
21views

Is there a way to add QoS to Gitlab Jobs that share hardware resources?

The scenario is: I have one piece of hardware to test, but multiple jobs that run within various, unrelated projects, all requiring that same hardware. The hardware has input settings that would not ...
0votes
1answer
25views

Gitlab Rules operator - can we use number operator like >= to 1?

i have only seen == and =~ but can gitlab use >= 1 ? is there any example? - if: '$CI_COMMIT_BRANCH =="main" && $NUMBER >= 1' when: always This did not work for me
0votes
0answers
28views

Export runnable jar file using command line in gitlab pipeline

I have an eclipse project. I usually export the jar binary file by clicking on the project->export->runnable jar file. Can I do this process through a script in the command line? my ultimate ...
0votes
1answer
19views

gitlab-ci includes a file from another project that executes a script file

I have two different projects. project1 and project2. Inside project1, I have file_project1 file: apply: stage: apply script: - bash folder/scripts/automation.sh rules: - if: $...
  • 2,070
0votes
0answers
37views

Modifying a remote repository A, pushing the changes to another remote B, and working with a merged version AB locally?

I have an example remote repository: repoA/ ├─ node_modules/ ├─ public/ │ ├─ favicon.ico │ ├─ index.html │ ├─ robots.txt ├─ src/ │ ├─ index.css │ ├─ index.js ├─ .gitignore ├─ package.json ├─ ...
0votes
0answers
24views

Sync a single file between two git repo

I have two remote repos on gitlab, let's say repoA and repoB I work locally on repoA, but in this repoA I need to work also with a single file from repoB, let's say file_from_repoB.h. I'm not ...
  • 167
0votes
1answer
22views

Gitlab CI/CD - One task at the same time

i want each task to run one at a time after the previous one finishes. I have; deploy_1: script: - scp -r $CI_PROJECT_DIR/script.sh [email protected]:/root/script.sh stage: deploy ...
0votes
1answer
13views

GitLab Runner cannot find parent POM in GitLab Registry

I want a GitLab Runner to build a Java/Maven project. My problem is that Maven can't find the parent POM in the GitLab Registry inside the GitLab Runner, but locally it can. Running ./mwn install ...
0votes
1answer
42views

I am not able to clone repository from GitLab

When I am trying to clone the repo from GitLab, I am getting the below issue : Cloning into 'path'... fatal: unable to access 'https://gitlab.com/shared/<my repo>.git/': The requested URL ...
1vote
0answers
15views

How do I configure AWS MFA for Gitlab Terraform Pipeline?

I would like to run a GitLab pipeline that manages AWS infrastructure via Terraform. In order to Authenticate to AWS I need to use Multi Factor Authentication (MFA). But GitLab does not support any on ...
0votes
1answer
15views

Run script according to rules matched gitlab ci

Can I run the script according to the If conditions matched. ex: I need to run a script only when the rules matches with 1st IF, for the 2nd IF condition run someother script. Is that possible? tor: ...
-1votes
0answers
8views

Is there a way to send test reports from Testlink to GitLab?

I want to run manual tests in Testlink and then add test report to Gitlab.
0votes
1answer
18views

How to set a job to manual based on previous stage failure?

I have a pipeline, after the stages. At the end of last two stages as you see below. Teardown will delete the application from kubernetes and destroy will be delete the kubenretes cluster and other ...


153050per page