Questions tagged [gitlab]
GitLab is an open source Git repository manager with issue tracking and wiki as well as continuous integration features. Use this tag for programming questions related to GitLab API.
gitlab
18,317 questions
0
votes
0
answers
32
views
Using GitLab to track non-deliverable requests like "take training" [closed]
I'm a relatively new project manager working with a data-heavy group. I am trying to get my team to adopt GitLab because we do have a lot of collaborative code projects. I get the issue ticket and ...
0
votes
1
answer
40
views
GitLab CI: Unable to download job artifact from another project – CI_JOB_TOKEN returns 404, private token returns 401
I’m facing an issue while trying to download a job artifact from one GitLab project into another using GitLab CI/CD.
What I’m trying to achieve
In the project A, I want to improve CI testing by:
...
-2
votes
1
answer
52
views
SVN Git migration [duplicate]
I'm trying to migrate a SVN repository to GitLab where the SVN trunk becomes the Git master branch and a specific SVN branch becomes a Git branch.
I'm using ...
Advice
0
votes
1
replies
40
views
Reduce gitlab repository size
I am relatively new in using git, so apologies if this is a stupid question. I am a developer of a certain git repository and I have been working on my own branch. I accidentally committed large data ...
Advice
0
votes
0
replies
14
views
Disable GitLab rule "Change requests must be approved by the requesting user."
Is there a setting to remove rule "Change requests must be approved by the requesting user" on merge requests? I know I can bypass it, but it's redundant with checks "Open threads must ...
Best practices
0
votes
0
replies
26
views
How to use backstage to push to a gitlab repository with a user specifif identity based on the template feature
I have a question and hopefully someone is able to help me. My plan is to use backstage to push some Kubernetes yaml files to gitlab and every logged in user should be able to do this with its own ...
0
votes
1
answer
39
views
GitLab Job Token Access
I am testing a requests-based library, and having the file I'm downloading in GitLab is convenient (the packages in particular), as a test case, this works with a personal access token but appears to ...
0
votes
0
answers
17
views
API endpoint to grab a file drag-and-dropped into description of a GitLab Snippet
So I created a snippet in self-hosted Gitlab, and within the Description field, I drag-and-dropped a tarball.
The ultimate link after saving the Snippet looks something like this (obfuscated):
...
Advice
0
votes
2
replies
21
views
How to properly use GitLab for automated crash reporting?
Suppose I am using GitLab to make a desktop app. I want my app to report crashes and issues to GitLab. Naturally, my app needs to use GitLab API to create issues. And if my app wants to use GitLab API ...
0
votes
0
answers
47
views
Gitlab linking to external issue tracker does not work, but test connection is successfull
I am following gitlabs instructions for integrating with an external tracker that are posted here
I have an issue tracker of the form: ...
0
votes
0
answers
53
views
'PKIX path building failed' error occurs when publishing Gradle package to GitLab using pipeline
I'm trying to publish a Gradle package to the GitLab package registry using a pipeline. I'm very new to Gradle. The Gradle build job runs fine but when the Gradle publish job runs I get this error:
<...
Advice
2
votes
17
replies
114
views
Is there a way to implement smart rebase when using squash merge
When doing git rebase git will drop commits already on upstream, fx:
A---B---C topic
/
D---E---A'---F main
...
1
vote
1
answer
76
views
Push notifications no longer appear in IntelliJ
IntelliJ IDEA no longer shows push status notifications. No balloon, no item in the notification panel. Commit notifications are still listed in the panel. It's inconvenient since I have to manually ...
Tooling
0
votes
0
replies
18
views
Gitlab Issues list with descriptions
I'm transitioning from JIRA to gitlab issues and trying to find the best way to examine all issues for a project.
I'd like my browser to display all the open issues for a project, but with more detail ...
1
vote
0
answers
230
views
Gitlab Issue: You can only push commits if the committer email is one of your own verified emails?
So I have the following repo setup in Gitlab:
Template Repo A
Project Repo B, based on Template Repo A
Project Repo C, also based on Template Repo A
Whenever some of the core files (of the Template ...
0
votes
0
answers
100
views
Why is go build trying to download local code, but only in gitlab
We have a project with 3 git repositories, let's call them backend, ui and library, hosted at gitlab.com/mycompany. These build quite happily.
I am trying to move the three repos into one, so we now ...
0
votes
1
answer
107
views
gitlab+XCode: Unable to find a device matching the provided destination specifier
Gitlab runner on M4 Mac Mini 2024, XCode 26.2, supported platforms: iOS, native UIKit swift project. Cocoapods.
Trying to run tests via fastlane:
...
0
votes
1
answer
118
views
How to specify multiple pipeline sources for a gitlab-ci.yml build
I'm working on a CI script for a gitlab project. The build runs in two stages. The first compiles and packages the code. The second deploys the packaged code to two different remote servers (it's a ...
Advice
0
votes
4
replies
64
views
How can I suppress false positives in the Gitlab code quality report?
The Gitlab code quality tool is producing a lot of false positives for our team due to a third-party library we use. We're unable to replace the third-party library, since its use has been mandated by ...
1
vote
0
answers
60
views
Installing GitLab dependency without username/token
I can install my-package from the shell without providing a token, using pip install is OK:
...
0
votes
0
answers
51
views
Gitlab CI: Rules based on array parameter
Is there a solution to create a rule that check if an array parameter contains a given element?
Below example is not a valid one.
...
Advice
0
votes
1
replies
19
views
Merging base branches while ignoring a specific file
I know this has been asked a few times, and I know what I'm asking about is not the Gitlab way, but I have a very specific use-case.
I have 3 branches, DEV, STAGE and MAIN. Each of these branches is ...
0
votes
1
answer
70
views
Create gitlab merge request for project A while in project B
Let's say you have the following setup in gitlab:
Gitlab Group Developments, of which there is a Subgroup Subgroup, which in ...
Best practices
0
votes
0
replies
50
views
Gitlab show result from multiple pipelines on Merge Request page
We aare developing new features for our code which we use merge requests in Gitlab to a release branch where all features are collected. When doing the actual release we do a MR from release branch to ...
1
vote
1
answer
364
views
Running a tool with uvx from a private repo using an access token
I want to frequently test a Python application I'm developing with uv, which I publish to a private repository on a GitLab instance. I've generated an access token with read access to the repo and I ...
1
vote
0
answers
58
views
Merge conflict with GitLab Web IDE
I'm editing a file in a merge request in GitLab's Web IDE. While I'm working, someone else commits changes to the same file, which creates a merge conflict. When I'm ready to commit my changes, GitLab ...
0
votes
0
answers
75
views
Accessing to two or more Gitlab Projects in the same Jenkins pipeline file
We have the following Jenkins pipeline script.
...
Advice
0
votes
2
replies
55
views
How to replicate locally automated API tests within gitlab CI
Let's say you have a repository in gitlab. For facilitated distribution of the application and according development throughout a team, you convert the app into a Docker Container, which can be ...
Advice
1
vote
3
replies
107
views
How to make `git branch --show-current` work on GitLab?
There are several questions on stack overflow asking how to get the current branch name on GitLab. The interwebz are full of countless variations of that same question. The answer that is always ...
Best practices
1
vote
3
replies
96
views
How to update git submodule with latest commit automatically in remote
I have a project named sample which have 2 submodules sampleA and sampleB. I also have another git repo named Example which also refers to same submodule sampleA and sampleB. When I change something ...
Best practices
1
vote
1
replies
57
views
Fast and auto scalable gitlab runner
i've a question. We were using Gitlab's Instance runners but for security reasons, we wanna move it to private runner. I tried using ec2 as runner but it can't scale and is so slow for concurrent runs....
0
votes
0
answers
83
views
How to map user contributions after move from GitLab to GitHub?
I just successfully moved a project from GitLab to GitHub. Our entire team have accounts on both platforms and everyone has read/write access to the new GitHub project.
For some contributors, GitHub ...
0
votes
0
answers
27
views
Modify extended job variable on the fly through script
I have the following jobs:
...
0
votes
0
answers
109
views
Git clone failed on Windows but works fine on Mac
I am trying to git clone a GitLab repository using HTTPS on my Windows Laptop. HTTPS is the only protocol supported. It failed with the following error:
...
1
vote
2
answers
119
views
Permission denied when pushing to a forked repository (403 error on GitHub)
I forked a GitHub repository from my friend’s account, but when I try to push my commits, I get this error:
remote: Permission to Fatima-Ennouari/test.git denied to Ridafadli.
fatal: unable to access ...
0
votes
1
answer
54
views
GitLab Docker component usage
I'm trying to build a GitLab pipeline that calls a Docker component and does the Docker build, scan, and push automatically.
My pipeline structure is as below.
...
0
votes
0
answers
43
views
Make gitlab pipeline conditional on being the pipeline before the merge train one
I have a Gitlab pipeline that has a number of (expensive) steps, which I normally want to be manual and allowed-to-fail, but I want them to run and to succeed when the branch is actually being merged. ...
0
votes
1
answer
256
views
ArgoCD “ssh: handshake failed... connection reset by peer” when connecting to GitLab via SSH
I’m trying to connect ArgoCD to a private GitLab repository using SSH.
I created a key pair and added the public key to GitLab.
Then I configured the private key and repository URL ([email protected]....
0
votes
0
answers
39
views
GitLab CE self hosted is changing my group users
I have a self hosted GitLab CE for a project management team.
I have created a Group with 1 owner and 2 maintainers, and this group is linked to 3 different projects. So the group should be:
owner (...
0
votes
0
answers
46
views
GitLab CI/CD pipeline Salesforce code coverage test
I'm currently building a CI/CD pipeline in GitLab, and I'm running into trouble with integrating a code coverage check.
What I’ve Got So Far:
A working GitLab Runner (on Windows).
An Apex class and a ...
2
votes
1
answer
183
views
GitLab input values based on branch, like variables
My GitLab 18 instance is suggesting me to use inputs instead of variables;
Using inputs to control pipeline behavior offers improved security and flexibility. Consider updating your pipelines to use ...
0
votes
0
answers
39
views
GitLab on Ubuntu: Browser always redirects http://git.brian.dev to https://git.brian.dev
I’m configuring a self-hosted GitLab server on my laptop (Ubuntu).
My Wi-Fi IP is 192.168.x.x.
I added this line in /etc/hosts:
192.168.x.x git.brian.dev
In GitLab ...
0
votes
1
answer
127
views
Cloud Native Buildpacks unprivileged lifecycle with bellsoft-liberica buildpack BP_JVM_TYPE JDK builds JRE-configured run image instead of JDK
In our GitLab Pipeline we use Cloud Native Buildpacks (CNB) with the Kubernetes executor & unprivileged Runners (without pack CLI & docker) as discribed in this so answer.
Additionally to the ...
1
vote
1
answer
217
views
How to pull images from AWS ECR via pull through cache in .gitlab-ci
I'm using a gitlab pipeline, where its base image repo is in AWS ECR. I've configured AWS ECR pull through cache where my upstream registry is docker hub.
In my runners, I've added this
...
1
vote
1
answer
39
views
Hugo site on GitLab Pages – sitemap.xml shows gitlab.io domain instead of custom domain
The site works fine on my custom domain (e.g. https://www.example.com/), but in the generated sitemap.xml (and also in RSS feeds)...
1
vote
1
answer
53
views
Weird things when executing multiple ssh command in gitlab CI script
I have a gitlab CI pipeline defined in .gitlab-ci.yml. One job is to deploy and start a spring boot application to 2 different machines. I do it by invoking a bash script twice with different machine ...
1
vote
1
answer
87
views
GitLab cache not found in second job
According to the documentation, "Subsequent jobs in the same pipeline can use the cache, if the dependencies are identical." I have the following in my ...
0
votes
1
answer
446
views
Unable to create masked variable because: The value must have 8 characters
I want to set up a Git_CI_USER. I get the message “Unable to create masked variable because: The value must have 8 characters.” My GIT_CI_USER only has 7 characters. Perhaps the problem can be solved ...
0
votes
0
answers
19
views
switch external .gitlab-ci.yml for a single branch
In project P we use an external "CI/CD configuration file" set to ".gitlab-ci.yml@library".
for a feature branch of P ("my_feature_p") I would like to test some changes ...
0
votes
0
answers
153
views
How to overwrite or delete an existing package version in GitLab Package Registry from CI/CD?
I have a GitLab CI/CD pipeline that builds and deploys a package into the GitLab Package Registry.
For a specific (and temporary) use case, I need the pipeline to delete the package from the registry ...