8,978 questions
2
votes
1
answer
35
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
51
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
23
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
86
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
82
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
34
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
34
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
53
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
87
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
91
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
70
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
1
answer
134
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
54
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 ...
1
vote
0
answers
62
views
Run GitLab pipeline on protected branch only [closed]
I have code on GitLab and having CI/CD setup to run pipeline for different branches.
I have to run my main .gitlab.yml pipeline only on protected branches, not for non-protected branches.
Currently I ...
5
votes
1
answer
234
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 $...