Skip to main content
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 ...
jerome2710's user avatar
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 ...
jonashackt's user avatar
  • 14.8k
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> ...
Irina's user avatar
  • 1,395
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 ...
Aaron's user avatar
  • 859
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/...
der papa's user avatar
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 ...
Dumcore's user avatar
  • 11
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....
Yogesh's user avatar
  • 313
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 ...
user149408's user avatar
  • 6,269
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 ...
cboittin's user avatar
  • 419
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: ...
A Simple Programmer's user avatar
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: ...
user2416984's user avatar
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....
Erik's user avatar
  • 197
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 ...
Wayne Werner's user avatar
  • 52.3k
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 ...
Keyur Chavda-kc1994's user avatar
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 $...
Alex Harvey's user avatar
  • 15.6k

15 30 50 per page
1
2 3 4 5
599