8,964 questions
0
votes
1
answer
37
views
How to enable color support for the view detail page for the test summary on GitLab?
In a self-hosted GitLab Community Edition v18.10.1, I execute some jobs that produce color output in their log. (The debian slim docker container that produces the log uses TERM="xterm-256color&...
0
votes
0
answers
61
views
Downstream pipeline not created to call custom component
I use a GitLab CI/CD pipeline and I develop a new job to include a custom component developped by another team in my company.
Inside the .gitlab-ci.yml file, there is an include of the same file 3 ...
-1
votes
1
answer
43
views
GitLab CI is not running certain jobs during merge request pipeline but all of them run during main pipeline
I am using GitLab Community Edition v18.9.1. I created a pipeline that builds Docker images and runs specific tasks for the main branch and for merge requests.
My .gitlab-ci.yml looks like:
---
...
1
vote
2
answers
97
views
Django tests in GitLab CI always use PostgreSQL instead of SQLite despite APP_ENV override
I am running Django tests inside GitLab CI and trying to switch between SQLite (for local/test) and PostgreSQL (for production).
My settings structure looks like this:
settings/_init_.py:
import os
...
-1
votes
0
answers
76
views
Using curl to fetch files from another repo during GitLab CI pipeline not working
I have a GitLab CI pipeline, running in repository 'A' where I need to fetch some files from another repository 'B'. Here is some of my .gitlab-ci.yml file:
variables:
BUILD_CONTAINER: ... # my ...
1
vote
0
answers
83
views
SSL handshake error for Node.js on GitLab CI pipeline
I am trying to set up a CI pipeline in GitLab, for a Spring Boot project with Maven, which also installs npm.
I have tried using docker exec locally to check if doing mvn install would work, and it is ...
0
votes
0
answers
59
views
MlflowClient.list_artifacts() fails with ValueError when using GitLab MLflow tracking (mlflow==3.10.0)
I’m using GitLab’s MLflow experiment tracking integration as my tracking server and mlflow==3.10.0.
I can successfully log (push) artifacts to a run, but when I try to list them using MlflowClient....
1
vote
1
answer
68
views
Why can't GitLab CI/CD access LFS objects from another repository?
I see the following error in GitLab CI/CD (see pages (#13309443054) · Jobs):
batch response: Repository or object not found: https://gitlab-ci-token:[MASKED]@gitlab.com/davidvandebunte/public.git/info/...
Advice
0
votes
0
replies
74
views
HowTo: Executing Powershell Scripts from Gitlab via Linux Runners
Goal
Let Powershell Scripts run on existing Linux Runners (Container based, Gitlab), which connect via SSH to Windows Server and execute the powershell scripts. Basically I wanted to replace Scheduled ...
0
votes
0
answers
35
views
Job flow control with conditionals Gitlab CI
I'm writing my very first Gitlab CI pipeline for a hacking game aka CTF. The game progresses each level at a time without the possibility of skipping levels without having previous levels flags. Flags ...
Best practices
0
votes
1
replies
44
views
GitLab CI for Flutter project
I try to setup CI on Gitlab for Flutter project. The idea is generate APK when I push some code to Gitlab. But the key point here is that I need the generated APK to be named in the proper way ("...
0
votes
1
answer
116
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
64
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:
...
1
vote
1
answer
101
views
Seeding database in GitLab CI
I'm currently working on the GitLab CI pipeline for my Node.js web app.
In my current GitLab CI setup I follow the same steps for a couple of CI jobs:
Use the Node image
Spin up services: Postgres, ...
0
votes
1
answer
149
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 ...
0
votes
1
answer
89
views
GitLab CI runs even when `changes:` field doesn't match any files
I want my GitLab CI job to run only when one of my doc files at docs/**/*.md or docs/**/*.mdx changes. When I put these patterns in the rules:changes: field, the job always seems to run, even when ...
2
votes
1
answer
174
views
Unable to publish private npm packages with Lerna on GitLab CI (403 error after npm changes)
Since the recent changes on npm regarding authentication and token permissions, we are no longer able to publish private packages in our monorepo using Lerna in our CI/CD pipeline on a self-hosted ...
Best practices
1
vote
1
replies
60
views
Multi repository synchronisation for deployment
For a crew project I have 2 gitlab repositories (backend and front-end) and I'd like to improve my CICD. As of now, when I merge a PR, it deploys on a ""development environment"" ...
0
votes
3
answers
212
views
Example .gitlab-ci.yml for Laravel 12 with MariaDB that seeds database before running php artisan test
I'm setting up a GitLab Runner for a Laravel 12 project and I want my CI pipeline to do the following:
Spin up a MariaDB service for the tests
Run php artisan migrate:fresh --seed to seed the ...
0
votes
0
answers
76
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.
spec:
inputs:
ARRAY:
type: array
...
Best practices
0
votes
0
replies
82
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 ...
Advice
0
votes
2
replies
66
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 ...
Best practices
0
votes
0
replies
44
views
screenshot unreal app in windows ci pipeline
Is there a best practice to capture screenshots of an unreal app when performing a test in a gitlab ci pipeline? gemini suggest using movie render queue w a vnc session or NICE DCV to stimulate a user ...
0
votes
0
answers
176
views
Failing healthcheck of GitLab CI PostgreSQL service
I get this error in my pipelines:
Health check container logs:
2025-11-18T09:45:19.064500182Z FATAL: No HOST or PORT found
Service container logs:
2025-11-18T09:45:19.061855973Z ...
3
votes
1
answer
275
views
Testcontainers Oracle XE works locally but fails with ORA-12514 on GitLab CI using Podman service
I'm running integration tests using Testcontainers with Oracle XE.
Locally, everything works fine.
On GitLab CI, using a Kubernetes executor with Podman as a Docker service, the tests fail with:
java....
Advice
1
vote
3
replies
144
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 ...
0
votes
1
answer
93
views
DevSecOps pipeline — scans run on test branch, but devs keep pushing to dev/preprod/prod, how to ensure new code is scanned before production?
I’m an intern working in DevSecOps. Our repo uses branches: test, dev, preprod, prod. I’ve set up scans (SAST, container scan , DAST ) triggered from the test branch.
But the dev team often pushes ...
Advice
2
votes
0
replies
72
views
Is it allowed to put anything in a hidden GitLab job
GitLab seem to accept jobs containing anything, including keywords that aren't normally allowed in a job. I've not tested, but this question even suggest that one could even make the hidden job a ...
Best practices
0
votes
3
replies
89
views
How to archive text-files as artifacts without "building"?
Our project is a mixture of C++ and Python code (and some SQL queries). The former needs to be built and the existing script clause invokes gmake in the right subdirectory.
But the Python code - along ...
0
votes
0
answers
51
views
Trigger stage when file deleted or added to a directory
I want to add to my gitlab-ci a stage that is triggered based on two factors:
If a particular stage "a" was also triggered.
If a file was added or removed in a directory (not changed).
I ...
0
votes
1
answer
72
views
When can CI_PIPELINE_TRIGGERED be "false" or null?
I had trouble with the CI/CD configuration, using CI_PIPELINE_TRIGGERED instead of CI_PIPELINE_SOURCE. Now, I don't understand the purpose of CI_PIPELINE_TRIGGERED as it feels that it is always "...
Best practices
1
vote
3
replies
85
views
How to build on different operating systems?
Our C++ project's existing .gitlab-ci.yml reads simply:
executable:
stage: build
tags:
- C++
- Boost
script:
- gmake -C src -j11
artifacts:
name: the executable
paths:
-...
0
votes
0
answers
77
views
GitLab CI Allure Report Shows Garbled Characters in Console Output
I'm experiencing intermittent issues with Allure reports in GitLab CI where the console log occasionally displays garbled/corrupted characters instead of readable output.
This doesn't happen ...
1
vote
0
answers
44
views
Display GitLab CI Pipeline on CI_COMMIT_TAG
I have a quite complex GitLab CI config structure which is distributed via multiple files.
.
├── .gitlab-ci.yml
└── .gitlab-ci.d
├── main.yml
└── release_main.yml
The gitlab-ci.yml looks like ...
0
votes
0
answers
30
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=${...
0
votes
0
answers
86
views
iOS archive failed in GitLab CI/CD: “SWIFT_OPTIMIZATION_LEVEL=-O expected -Onone (React-jsitracing)”
I’m trying to build and archive my React Native iOS app using GitLab CI/CD, but the build fails during the archive step. Below is the error message I get:
note: Disabling previews because ...
0
votes
1
answer
152
views
Pull the docker image in GitLab registry from pipeline
I made a Kernel project (v5.15.15) in my GitLab account and setting up build pipeline.
Did some search and made a following .gitlab-ci.yml file.
stages: # List of stages for jobs, and their ...
0
votes
1
answer
71
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.
default:
tags:
- eks-lnx-prd
...
0
votes
0
answers
56
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. ...
3
votes
1
answer
292
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
161
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 ...
0
votes
1
answer
87
views
How to get **all failed** jobs logs for the certain gitlab pipeline number?
Given a pipeline with number #123 for the server.
How to choose logs for the all the failed jobs in pipeline via cli?
I presume that it could be something like this:
job_ids = glab ci <get jobs> ...
0
votes
1
answer
561
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 ...
1
vote
0
answers
100
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
51
views
Docker-in-Docker - Unable to connect payara server to postgres docker instance on GitLab CI/CD Pipeline
In order to improve the testing process for my Java application I want to introduce postgres as the database for integration tests.
In my current approach I am utilizing the maven-docker-plugin to ...
0
votes
0
answers
64
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....
0
votes
0
answers
174
views
Gitlab CI: Import GPG key and get reprepro to sign with it
I have a GitLab pipeline in which I need to import a GPG key from a variable and sign with it. Signing fails because the key is not trusted.
YAML attached. Some remarks:
Masking variables does not ...
0
votes
3
answers
214
views
In gitlab CI, how to branch and merge stages or jobs so that the pipeline can complete in different ways?
I have a CI script on my gitlab repositories to publish plugins for my application.
My plugins can either be published in debug or release. The steps for doing them are slightly different, so i have 3 ...
1
vote
0
answers
469
views
GitLab Inputs not being imported into pipelines when put in a template
I have a .gitlab-ci.yml template that looks something like so
# .base.yml
spec:
inputs:
RUNNER_TAG:
default: "one"
options: ["one", "two"]
type: ...
0
votes
1
answer
92
views
Accessing SharedMemory in a Gitlab runner
I'm writing a pytest that should communicate to Docker containers through shared memory. Locally, that's pretty easy to achieve using something like this:
# Create a shared memory block
shm: ...