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,831 questions

0votes
1answer
17views

How to rewrite JSON file in gitlab from python

I have a JSON file in git repo, then I upload it into the python variable, do some manipulations with this variable. How can I update JSON in gitlab using this variable import gitlab import json ...
user avatar
0votes
1answer
21views

python-gitlab raise 500 when getting all private MR's

i have the follwoing : gl = gitlab.Gitlab(url='https://gitlab.com/',private_token='xxx',api_version=4, session=session) when am trying to do this : mrs = gl.mergerequests.list(scope='all',state='...
user avatar
  • 103
0votes
0answers
14views

GitLab CI pipeline with failed job shows as "waiting for manual action" instead of "failed"

On commit 6daa4065 there are two jobs, build binaries and build manual binaries. The first job runs for the main branch and tags. The second branch runs for all other refs but is manual. The status of ...
user avatar
  • 1,964
0votes
1answer
17views

Automate gitlab project creation and push to repository

Since I have more than 100 projects to be created in Gitlab, is there a way that creation till push to repository can be automated. Create project->Clone the repo.->Push modified files. This ...
user avatar
  • 75
0votes
0answers
10views

Gitlab pipeline running in VM and not in Gitlab server

I have a Gitlab server from the company where the project and the pipeline are configured. By default, every time a commit is done, the pipeline starts to execute in the Gitlab server. I have my ...
user avatar
  • 697
0votes
1answer
12views

How get : merge_request_iid if know CI_BUILD_ID and CI_PROJECT_ID?

I want to create Job trigged by MERGE_REQUEST and exist force_remove_source_branch in true. Get info about force_remove_source_branch from api curl --header "PRIVATE-TOKEN: ${API_ACCESS_TOKEN}&...
user avatar
0votes
0answers
16views

GITLAB API post complex message to tag

i wanted to use the gitlab api to create a tag, but i have issues with a complex release message: following https://docs.gitlab.com/ee/api/tags.html#create-a-new-tag i have the changelog as artifact ...
user avatar
  • 23
0votes
0answers
16views

Gitlab-ci rules don't trigger the pipeline again when I create the MR, but get source pipeline sonar results on MR page

I have some feature(side) branche. When I trigger the feature branch pipeline my pipeline running some multi stage (build, tests, sonar-scan). After all those development I would like to create MR to ...
user avatar
2votes
2answers
22views

how to chose between two tasks in ansible using tags

I'd like to use tags to select specific set of tasks in the case of an installation or another in the an upgrade: so the scenario let's say: I have a task A and a task B I'd like to use tags to select ...
user avatar
  • 127
1vote
1answer
15views

gitlabe cicd : get to know if branch or tag

I'm aware of for instance -only that let us running jobs on specific branch or tag. I'm just wondering whether one can do similar thing with predefined environment variables only. Well, it's just a ...
user avatar
  • 275
0votes
0answers
14views

Gitlab CI in docker. Disable cleaning directory before stage starts

I decided to build my pipeline on this plan: Build stage: Run only if the branch is the main one or one of my build files has been modified. It inherits docker:latest, and builds a test-ready ...
user avatar
  • 35
0votes
0answers
7views

Gitlab and GitOps - Synchronisation

I'm using Gitlab and GitOps, and aside from the limitation of needing repo's to be public we've got it working well for our use-case. What I'm stuck with is my understanding; does the agent only ...
user avatar
  • 127
-1votes
0answers
21views

Microk8s on Raspberry: Private registery with self-signed certificates - Error x509: certificate signed by unknown authority

Problem: Within my microk8s cluster I want to run a registry which sole purpose is to provide containers to the rest of the cluster. Unfortunately, the self signed certs are not correctly recognoized ...
user avatar
  • 9
0votes
0answers
24views

GitLab PyTest just won't discover my modules

I'm trying to run PyTests on a GitLab CI/CD instance, but even though everything runs just fine locally, no matter what I do, I can't seem to make GitLab discover my modules. How can I make sure my ...
user avatar
  • 6,184
0votes
1answer
20views

Gitlab ip address in pipeline execution

I need to set a static gitlab ip address while execution of a pipeline. From guide I see that gitlab use random ip address in the range : 34.74. 90.64 - 34.74. 226.0. But is not true, in my ...
user avatar
  • 950
0votes
0answers
19views

GitLab CI\CD compile-package missing file of .OUT extension

I added a file to my project that has the .OUT extension, and i use this file as a template for some operations. When i execute the project locally it works just fine, but on gitlab when ci\cd compile-...
user avatar
  • 25
0votes
0answers
10views

Gitlab Cluster Management elastic-stack url

Hopefully this is easy. I have a working Cluster Management project in Gitlab. When I enable the elastic-stack everything seems to be running in the cluster (all pods are in running status). What I ...
user avatar
  • 1,234
0votes
2answers
14views

gitlab api equivalent to git log (compare branch with tag) and list commit message json

i need some equivalent command to the following command: git log --pretty="* %s%n%b" BRANCH2...TAGNAME1 i tried already the compare feature of the api but sadly without the result i ...
user avatar
  • 23
0votes
0answers
20views

GitLab pipeline fails but CI lint and configuration is valid

I'm struggling to understand deployment using a runner between gitlab and DigitalOcean's new Apps Platform. I've gone through the DO App set-up steps. On running the linter syntax is valid, GitLab CI ...
user avatar
  • 647
0votes
1answer
28views

How to get immediate output from a job run within gitlab-runner?

The command gitlab-runner lets you "test" a gitlab job locally. However, the local run of a job seems to have the same problem as a gitlab job run in gitlab CI: The output is not immediate! ...
user avatar
  • 38k
0votes
0answers
12views

How to update the version of gitlab-runner on Ubuntu?

I know there has been an answer pointing to here, but this does not seem to work. I downloaded the package gitlab-runner_i386.deb from HERE, and then following the instructions I ran sudo dpkg -i ...
user avatar
  • 38k
0votes
0answers
16views

Unable to push or pull images to/from private docker registry

I have recently migrated my application from one aws account to another account. During which I have changed docker registry url from docker.app.prod.aws.abc.com to docker-hd.app.prod.aws.abc.com. We ...
user avatar
0votes
0answers
9views

Gitlab automatically stops environment after merge

In our team we have multiple static environments. There is always dev and test and for certain customers where our infrastructure is allowed to deploy also staging and prod. We want to migrate our CI/...
user avatar
-2votes
0answers
21views

Pipeline failed

I am trying to run cypress test scripts on Gitlab CICD Pipeline but this error occured enter image description here Here is my code on gitlab-ci.yml file image: docker:18.09 stages: - test test: ...
user avatar
1vote
1answer
22views

Download a specific folder from on-prem GitLab

I have an on-prem GitLab with a huge repository with many folders. I'm trying to create a freestyle Jenkins job that would only retrieve the folder from the repository. (I have a read-permitted API ...
user avatar
0votes
1answer
22views

ng lint Could not find custom rule directory: codelyzer with Angular CLI on gitlab CI

ng lint fails on Gitlab CI with the error message An unhandled exception occurred: Failed to load /builds/trade-up/trade-up/common/projects/trade-up-common/tslint.json: Could not find custom rule ...
user avatar
  • 1
1vote
0answers
14views

Irregular TIMEOUTs in Docker Operations between GCP GKE and AWS ECR

In my company, we have a GitLab CI/CD pipeline running on the GitLab Runner on Kubernetes (GKE). In that process, we push Docker images to a private repository in AWS ECR. The processes access the ...
user avatar
0votes
0answers
12views

How to delete Environments with missing Stop Button

In Gitlab under Deployments -> Environments we have lots of old feature environments which miss the stop button: I tried to stop and delete them via the api but both requests return a 403 although ...
user avatar
  • 1,919
0votes
0answers
18views

Docker image is not sent to remote server

I have built a docker image in local server and I want it to deploy in remote server. I have tried SSH authentication before script in stage:deploy . I have attached the before script below. now i ...
user avatar
0votes
0answers
13views

Gitlab CI got error selenium.common.exceptions.WebDriverException: Message: 'chromedriver' executable needs to be in PATH when I running my simple pro

I'm just learning selenium using python in gitlab CI, i wanna try to run my simple project, but i got error "Message: 'chromedriver' executable needs to be in PATH". this is my python script ...
user avatar
  • 1
0votes
1answer
30views

Jenkins fails to post build status to gitlab,Pipelines shows up pending status.This is a multibranch pipeline

I tried all the possible solutions available online. Changed my token with all permissions. Changed the gitlab connection with latest token. Still pipelines in gitlab shows the pending status. These ...
user avatar
0votes
1answer
28views

Stop detach pipelines from getting created

I had a gitlab job defined as follows. test-1: stage: test only: variables: - $RUN_TEST except: - tags and then I changed that job to run based on gitlab rules. test-1: stage: test ...
user avatar
  • 951
-1votes
1answer
38views

How to pass variable from GitLab CI Linux job with artifacts to a job which, is executed with shell-windows-runner

I have two jobs on a GitLab pipeline: In the first one I save a value into a txt file in order to share this value through an artifact to the next job. The second one is a dotnet job and I would like ...
user avatar
  • 954
0votes
0answers
16views

Uploading a file using Gitlab Api with a postAsync request in .net 6

I'm trying to upload a file through Gitlab Api using a postasync request, It works with Postman like this: I understand that I need to cenvert the file to a filestream and to a byte[] then send it ...
user avatar
0votes
0answers
21views

Make commits as Gitlab user

Sorry if its stupid question, i am just learning now. I have name and email set in git like name and email in Gitlab, but in commits it doesnt show my Gitlab account and just sent me to other mail ...
user avatar
0votes
0answers
31views

Gitlab CI - flutter test running very slow

I've been managing a project for the last couple of months using Flutter and TDD on Gitlab and using the Gitlab CI for monitoring code quality and tests. With the end of the project tin sight we now ...
user avatar
0votes
0answers
12views

Keep getting "Could not fetch toggles" with Unleash java sdk

I'm using unleash to implement feature toggles in my Spring Boot project and even though it works, I keep getting lots of WARN messages: io.getunleash.UnleashException: Could not fetch toggles at ...
user avatar
  • 139
0votes
1answer
19views

How to use GitLab / Github pages with a monorepo?

Is there a way to use Github / Gitlab pages with a monorepo? I have 1 Gitlab repo that have 3 projects: Angular app - admin. Angular app - users. Backend. I will be using a paid Heroku dyno to ...
user avatar
0votes
1answer
33views

Trigger Jenkins Pipeline job on merge event for gitlab MR

this should be fairly basic, but when I research I come to things like gerrit triggrs and whatnot, which seem way too complicated for doing something simple like this. I would like to do something ...
user avatar
  • 1,271
1vote
0answers
17views

Flutter Gitlab CI CD implementation for iOS build profile not found error

Currently i am trying to implement CI for generate iOS and Android builds. for me Android Build generated successfully but when starts build iOS build it gives following error : Running Xcode build......
user avatar
1vote
1answer
57views

Utilizing custom docker-image causes build pipeline failure

I am trying to create a build pipeline for a small project I do on my free time. For this, I utilize Spring-Boot and Angular. Locally I build it with ./gradlew clean build. This works perfectly fine ...
user avatar
  • 539
2votes
1answer
84views

Gitlab CI prepare environment: Error response from daemon: hcsshim::CreateComputeSystem

I have created a windows image that I pushed to a custom registry. The image builds without any error. It also runs perfectly fine on any machine using the command docker run. I use a gitlab runner ...
user avatar
  • 893
0votes
1answer
22views

Gitlab: Allow tag creation from specific branch only

Is there a way or setting in gitlab by which I can allow users to create tags from pre-approved branches?? In other words, if I try to create a new tag on Gitlab, I get specific list of Git revisions ...
user avatar
  • 951
1vote
1answer
18views

Gitlab: Removing specific scheduled jobs from scheduled pipelines

I have following jobs and stages and with this yml configuration the test stage runs on schedule and regular pipelines when I set $RUN_JOB variable to true in my schedule and in my project's CI/CD ...
user avatar
  • 951
1vote
1answer
44views

Stop the gitlab pipeline if previous stages failed

I have a gitlab pipeline which consiste of multiple stages[checkout->build->test->Deploy->cleanup->validation->terminate ec2].I have 3 requirement. if any stage before the deploy ...
user avatar
1vote
1answer
43views

Google App Script throw BAD request , Postman and Curl OK, even browser callback

I am trying to run the below code over the Google App Script for Gitlab which is in VPN. The VPN is connected and I can get responses on Curl Command, Browser, and Postman but the Google App script is ...
user avatar
  • 1,008
0votes
1answer
43views

Testing with pytest: import that works on GitLab doesn't work in VS Code (and vice versa)

TL;DR: How can I set up my GitLab test pipeline so that the tests also run locally on VS Code? I'm very new to GitLab pipelines, so please forgive me if the question is amateurish. I have a GitLab ...
user avatar
  • 6,184
0votes
1answer
17views

Maven project use multiple GitLab Package Registry

I am trying to setup 2 GitLab projects (project a & project b) as the remote maven repository for my other project (project c) using GitLab Maven Package Registry. Now I have 2 GitLab Maven ...
user avatar
1vote
0answers
18views

xcodebuild command fails in Gitlab Runner

I am setting up Gitlab CI in my project, xcodebuild command fails in gitlab-runner. However, the following command to clean Xcode Project works perfectly in terminal xcodebuild clean -workspace ~/...
user avatar
0votes
0answers
36views

Removing single quotes from variable when executing a command on a remote server

The following job causes some issues: publish: stage: deployment variables: SERVICE_NAME: 'data_cleaner' script: - CONTAINER_ID=$(ssh $USER@$TARGET_SERVER 'docker container ps --filter &...
user avatar
  • 1,252


15 30 50 per page
1
2 3 4 5
337