18,392 questions
0
votes
0
answers
58
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 ...
0
votes
0
answers
20
views
Accessing to two or more Gitlab Projects in the same Jenkins pipeline file
We have the following Jenkins pipeline script.
pipeline {
agent any
stages {
stage('Run in Sandbox'){
steps {
dir('Pot') {
checkout ...
Advice
1
vote
2
replies
73
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
1
replies
45
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
24
views
Modify extended job variable on the fly through script
I have the following jobs:
.build-image:
extends: .build-docker-image
stage: build
variables:
COMPOSER_HOME_DIR: /kaniko/.composer
BUILD_ARGS: >
COMPOSER_HOME=${...
1
vote
2
answers
88
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
0
answers
36
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
0
answers
29
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 (...
2
votes
1
answer
89
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
1
answer
74
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
22
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) the URLs still point to the GitLab Pages default URL (https://project-...
1
vote
1
answer
67
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 gitlab-ci.yml file:
slowcompile:
...
0
votes
0
answers
13
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
90
views
Why am I pointing to the wrong Repository?
Log:
client.go:14:2: reading gitlab.ts.gitlab.aws.de/ds/l2/clients/go.mod at revision clients/v1.0.1: git ls-remote -q origin in /go/pkg/mod/cache/vcs/...
0
votes
0
answers
48
views
Disable re-run option for successful GitLab pipeline jobs
Problem to solve
How to prevent Developer/ Maintainer to manually re-run any GitLab jobs of the successful pipeline.
Steps to reproduce
Create a new pipeline which will executed on merge_request only....
-1
votes
2
answers
136
views
Partially squash commits
I have a branch in GitLab with 18 commits, with a lot of back and forth trying the right way to escape something.
Ideally, the branch should have three commits, changing three different parts of the ...
-2
votes
1
answer
61
views
How do I block jars but allow gradle-wapper.jar in GitLab?
Obviously I don't want binary files like jar or exe in my git repo so GitLab is configured to block commits that contain jars, exe files, msi files etc.
However, I do need gradle-wrapper.jar in there.
...
0
votes
1
answer
241
views
How to pass parallel matrix to a GitLab component?
We have an existing GitLab CI Template using parallel matrix to run a job in parallel with different variables.
include:
- project: 'ci-templates'
ref: main
file:
- Container/Container....
0
votes
0
answers
72
views
Is it possible to run a GitLab pipeline every time a branch is deleted and only when a branch is deleted?
There are answers such as Run pipeline on gitlab when branch is deleted and even documentation on GitLab's site like https://docs.gitlab.com/ci/environments/#stopping-an-environment that make some ...
-3
votes
2
answers
100
views
Maven dependency from source [closed]
Is it's possible to use source repo as dependency instead of jar? I got few legacy projects in my selfhosted gitlab:
core(child)
api(parent)
web(parent)
The "core" project is dependency ...
0
votes
0
answers
74
views
Gitlab runner cannot access git repository SSL: CERTIFICATE_VERIFY_FAILED
I tried using a Docker image called "CodiumAI PR-Agent," which can perform code reviews using AI.
To set this up, I installed GitLab Runner on a new server and created a .yml file according ...
0
votes
1
answer
150
views
How to create new GitLab token with scopes
When I try to create new token with GitLab API like this:
curl --request POST --header "PRIVATE-TOKEN: glpat-" --data "name=test-token-short-ttl" --data "scopes[]=...
-1
votes
2
answers
412
views
What's the purpose of $CI_COMMIT_BRANCH && $CI_OPEN_MERGE_REQUESTS
rules:
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
- if: $CI_COMMIT_BRANCH && $CI_OPEN_MERGE_REQUESTS
when: never
- if: $CI_COMMIT_BRANCH
I've seen this ...
2
votes
2
answers
126
views
semantic-release fails in GitLab CI: Commit rejected due to non-whitelisted author email
I'm using semantic-release in a GitLab CI pipeline. The release fails at the @semantic-release/git plugin step due to this error:
remote: ERROR: New commit has non-whitelisted author email: [semantic-...
-1
votes
1
answer
34
views
What is the proper way to execute compose scripts on local network via GitLab?
I currently have a docker compose script that brings up a few containers and runs them against some hardware that is installed on a local network. The software in these containers requires that ...