8,982 questions
Advice
0
votes
2
replies
32
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 ...
0
votes
0
answers
81
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 ...
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 ...
Advice
2
votes
0
replies
52
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 ...
0
votes
0
answers
37
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 ...
Best practices
1
vote
3
replies
73
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:
-...
1
vote
0
answers
36
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
48
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
35
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
...
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
35
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
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....
0
votes
3
answers
112
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 ...
0
votes
1
answer
75
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: ...
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 ...
5
votes
1
answer
243
views
Reducing duplication in GitLab CI with tags per multiple environments
I have a requirement to set tags for the selection of GitLab runners where tags differ per environment. Therefore, I need the tag to be set according to the value of $CI_COMMIT_BRANCH or $...
-1
votes
1
answer
64
views
GitLab CI YAML fails to validate. Why?
I write a GitLab CI YAML.
This:
test:
script:
- echo 'hello: world'
Fails with the error: "This GitLab CI configuration is invalid: jobs:test:script config should be a string or a nested ...
-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 ...
-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 ...
1
vote
1
answer
67
views
Fastlane CodeSign error with match "errSecInternalComponent"
I have a Codesign error from my iOS Cordova build which I sign and finish building with fastlane. We have multiple Projects with this setup now but for some reason this one project does not want to ...
0
votes
1
answer
82
views
How to avoid multiple gitlab pipeline to run same stage x at a time
I have below snippet from a gitlab ci yml file
install-gw:
stage: integration-test
resource_group: integration-test
tags:
- ag-test
script:
- chmod +x ./integration-tests/scripts/...
0
votes
1
answer
80
views
How to set up GitLab to run either full regression tests or subset based on meta tag and GitLab variable
I have been struggling to filter my GitLab so that it runs either a full regression or a subset of smoke tests depending on the TestCafe meta tag.
Info on the meta tag can be seen here.
So I have ...
0
votes
1
answer
206
views
How to cache docker images in gitlab with dind or dood
On your own machine Docker downloads images once and uses them again and again. But on Gitlab CI, things look a little different. Usually you use a docker-in-docker Container called dind which ...
0
votes
1
answer
116
views
How can I cache npm packages (from frontend-maven-plugin) in gitlab-ci?
I have a gitlab-runner with docker executor.
There is a pipeline that builds a maven multi module project.
One of the modules uses frontend-maven-plugin , that:
installs node and npm
cd into ...