Questions tagged [gitlab]

For questions about GitLab, an open source Git repository manager with issue tracking, wiki and continuous integration facilities.

Filter by
Sorted by
Tagged with
0 votes
0 answers
8 views

How can I make a build of an app that requires macos?

We are using Gitlab CI, how do we do a build of an application within it that requires it to be build on macos? I'm talking about the Electon JS application. I have successfully built the windows and ...
Vladimir Fomin's user avatar
0 votes
1 answer
17 views

How can I delete Terraform assets and statefiles created in a pipeline using the remote GitLab backend?

Currently I have a detached pipeline which uses the Terraform with the remote Gitlab backend. How can I after the pipeline has run delete BOTH the assets created and the statefile?
Evan Carroll's user avatar
  • 1,794
0 votes
0 answers
36 views

MicroK8s does not authenticate with gitlab private registry

I have an instance of MicroK8s, I am currently migrating my applications. But I can't authenticate to Gitlab's private registry. About my environment: MicroK8s Gitlab (with registry working securely) ...
Hiago Souza's user avatar
0 votes
0 answers
27 views

Gitlab ci variables disappearing in pipeline run

We have a large, fairly complex set of yaml files that defines pipeline configurations for multiple apps using gitlab ci. A single pipeline consists of a dozen or more separate yaml configs that use ...
Sabien's user avatar
  • 1
0 votes
1 answer
81 views

What is the URL I provide to docker or podman to pull down a GitLab registry image?

When I am at a repo's container registry, I can see this, However it's not clear ohw that URL works, the URL provided is gitlab-org/gitlab-runner/alpine-no-root But I can't run podman pull gitlab-...
Evan Carroll's user avatar
  • 1,794
0 votes
1 answer
263 views

GitLab CI: How to properly push file to a repo using ci file?

I'm trying to setup a GitLab CI pipeline which runs a script (convert-inventory-format.sh) that update a yaml file. I would then like to commit that file to a Git repository and push it. However, the ...
DiklaS's user avatar
  • 1
1 vote
0 answers
22 views

Do Gitlab Personal Access Tokens grant permissions on repos you own, or all repos you have access to?

In Gitlab I can create a Personal Access Token for read_repository and write_repository permissions. Does this token grant access to just my projects in my namespace, or all projects that I have ...
Evan Carroll's user avatar
  • 1,794
0 votes
0 answers
53 views

Why i cant include a .yml in CI/CD, using rules with mine variables?

Why my pipeline doesn't work? I just want include this .yml if "NATIVE_COMPILE" is "true". variables: NATIVE_COMPILE : "true" include: - project: 'pipelines/cicd' ...
Alan Michel's user avatar
0 votes
0 answers
73 views

gitlab runner shell executor docker cache seems to be cleared after restarting systemd gitlab-runner unit

I am using docker with the shell executor (https://docs.gitlab.com/runner/executors/shell.html) in order to more effectively cache docker images being built. I ran into an issue where after cancelling ...
Chris Stryczynski's user avatar
0 votes
0 answers
7 views

how to reuse merge request pipeline coverage to be used in default branch pipeline by not collecting coverage again on default branch after mergingPR?

I have to run the code coverage pipeline again after merging the PR because, in the merge request, it shows diff code coverage from the default branch and I do not want to run the code coverage ...
ironman3245's user avatar
0 votes
1 answer
599 views

How to wait for gitlab downstream pipelines to finish before going to next stage?

I'm not sure this is the way to proceed, but I'm starting using downstream pipelines. I have 3 projects : Project A : web-frontend-1 Project B : web-frontend-2 Project C : global-e2e-testing I'm ...
Lionep's user avatar
  • 113
0 votes
1 answer
520 views

Gitlab runner tons of errors when trying to use shell executor

I installed the runners using the docker executor, but then later realized I actually needed the shell executor for layer caching... However now I just keep running into so many errors trying to get ...
Chris Stryczynski's user avatar
0 votes
3 answers
75 views

Estimate storage space for a git server

How to estimate the space a git repository will take on a source version control server? For example, given k commits every day, with x kB of code per commit, my repository will take n GB of server ...
user2315856's user avatar
0 votes
0 answers
424 views

Need to run a GitLab pipeline job if a prior job succeeds

I have a project in GitLab that has jobs in the pipeline to build the image, run unit tests and push the built image to a repository. I would like to set it up with the following conditions: The push ...
Joseph Gagnon's user avatar
0 votes
0 answers
32 views

Selfhosted GitLab and Docker Swarm: How does Docker Swarm update images automatically?

I'm using Docker Swarm for container orchestration on a unbuntu server and for the past few months I have been running into a weird problem. To preface: I didn't set up the system, just took it over. ...
duhrstig's user avatar
1 vote
1 answer
571 views

Gitlab Runner setup issues on Mac Mini with M2 processor

I have a pair of Mac Minis with M2 processors that I am trying to setup as runners on a locally hosted gitlab setup. For a variety of other systems I simply followed the instructions on the runners ...
Sqeaky's user avatar
  • 121
0 votes
0 answers
433 views

Unsecure container registry declaration in Gitlab CI/CD

I have the following .gitlab-ci.yml file : stages: - publish - deploy variables: TAG_LATEST: $CI_REGISTRY_IMAGE/$CI_COMMIT_REF_NAME:latest TAG_COMMIT: $CI_REGISTRY_IMAGE/$CI_COMMIT_REF_NAME:$...
baks's user avatar
  • 1
1 vote
1 answer
109 views

What is the point of starting pipeline when MR creating?

Can you explain what the point of starting pipeline for source branch again when I do MR in default branch? I mean, when I did git push before in my feature branch which I want to merge with master, ...
VladF's user avatar
  • 35
0 votes
0 answers
58 views

Is it possible to declare variables in a YAML file and to recover those variables in the .gitlab-ci.yml and use them in a matrix job?

I am configuring a Gitlab C/I that will trigger several child pipelines in another project. Each one of the child projects and pipelines needs two variables (foo and bar) and I want to trigger them in ...
Admineral's user avatar
0 votes
0 answers
10 views

Can mirroring at import time be controlled on a group by group basis?

I have multiple groups under which I am importing applications from a separate bitbucket/stash. When I import, there is a checkbox for mirroring. When I check the checkbox, I expect mirroring to take ...
JoshDM's user avatar
  • 101
0 votes
0 answers
70 views

Error registering container in Gitlab

I'm trying to register a container in a project, I thought it was a passing problem, but it persisted. I created a new project still holds. I never got around to using Gitlab's registry for containers....
edd1's user avatar
  • 1
0 votes
0 answers
56 views

Why Maven ignore logging options?

Can you explain why maven ignores log options and output info log level instead of warning? $ mvn ${MAVEN_CLI_OPTS} clean install test -Drevision=${MAVEN_REVISION} -Dchangelist=${MAVEN_CHANGELIST} -...
VladF's user avatar
  • 35
0 votes
0 answers
220 views

How to edit a GitLab managed Terraform state file?

I seem to have encountered a long-standing Terraform issue, where I have attempted to create an AWS RDS Cluster without having specified skip_final_snapshot = true, however any attempt to extricate ...
David Buck's user avatar
0 votes
0 answers
25 views

How to configure Gitlab/Docker/AWS?

I have a Gitlab project, hosted in my company's Gitlab account. I have written an .gitlab-ci.yaml file which gather the image image: python:3.10.9-bullseye, install the python dependencies and run the ...
user39946's user avatar
0 votes
0 answers
20 views

How to trigger pipeline if any 1 of x repos is merged to main branch

I am using a locally hosted version of GitLab Omnibus, and I stay up to date with the most current versions. Here's an example of what I'm trying to do. I have five repositories. They are not in the ...
trueCamelType's user avatar
0 votes
2 answers
429 views

GitLab file variable with a dot or period `.` in its name?

I have a file called .auto.tfvars that I want to use to set some Terraform variables in an CI run, however when I try to add it, I get a popup called, Variables key can contain only letters, digits ...
Evan Carroll's user avatar
  • 1,794
0 votes
1 answer
190 views

Can you use the Secure File API if the container doesn't have bash? Like Alpine?

GitLab offers a Project-level Secure Files, the API has you add this to your .gitlab-ci.yml, test: variables: SECURE_FILES_DOWNLOAD_PATH: './where/files/should/go/' script: - curl --silent ...
Evan Carroll's user avatar
  • 1,794
0 votes
1 answer
36 views

Are webhooks needed in Gitlab for triggering a build on tags push

I would like to trigger a Build on Gitlab when a Git Tag is pushed to the repository. At the same time I would like to increment the version number on a file located on the repository before building ...
Claudio Ferraro's user avatar
0 votes
0 answers
104 views

How to deploy a Docker image from DockerHub to AWS Beanstalk using Gitlab CI/CD?

I am not very familiar with Gitlab CI/CD, Docker (Hub) and AWS but I am trying to deploy a Docker image from Docker Hub to an AWS Beanstalk environment (so basically as a new version to a running ...
user007's user avatar
0 votes
1 answer
112 views

How does GitLab handle stranded (orphaned) artifacts in Object Store?

If I have a two minio clusters, one running in production and, one running as a hot-backup streaming with mc mirror, And, if I have a point-in-time-backup running gitaly-backup. What happens if new ...
Evan Carroll's user avatar
  • 1,794
2 votes
0 answers
145 views

What is the Manifest Digest in GitLab and how do I find out more information about the manifest?

GitLab provides for a "Manifest Digest", What exactly is the Manifest Digest, a digest of, and how do I get access to this manifest to see how it's different from other images.. this ...
Evan Carroll's user avatar
  • 1,794
2 votes
2 answers
626 views

What is the GitLab "Digest" on the container registry next to the images, why is different for two duplicated images

The GitLab container registry has a bunch of Digests, you can see them here, Normally, I would expect them to represent the image's own digest, however, they don't, when I look at them here locally ...
Evan Carroll's user avatar
  • 1,794
1 vote
0 answers
66 views

Why is my Gitlab shell executor only returning "0 0"?

All the sudden my self-hosted runner set to use the shell executor started returning "0 0" which is causing the pipeline to incorrectly "succeed" at every step without executing ...
kriipke's user avatar
  • 11
0 votes
1 answer
145 views

In Gitlab is there a way to automatically change a tag on a ticket when an MR is created and/or when a deployment is completed

In Gitlab we have a flow where our tickets go from "In Progress" to "Code Review" when an MR is created and from "Code Review" to "Ready for Testing" when a ...
Agreene's user avatar
  • 51
0 votes
0 answers
72 views

Retry modified GitLab pipeline without actually modifying it (replay pipeline in Jenkins)

Is there a way to retry modified GitLab pipeline without actually modifying it (making commits) similar to replaying Jenkins pipelines? It's useful for debugging main branch pipelines. My goal is to ...
rok's user avatar
  • 256
2 votes
1 answer
3k views

Run GitLab job only if variable is provided

I have two jobs in my gitlab ci pipeline 'job a' and 'job b'. I want only 'job a' to run if variable x is provided and run 'job b' if variable b isn't provided. Something like this. job a: rule: ...
Alan's user avatar
  • 23
0 votes
0 answers
149 views

Gitlab - Don't allow merge of MR on pipeline job fail

Working on some code analysis tests that run on create of merge request in Gitlab. .gitlab-ci.yml test:drupal-deprecations: rules: # Only run when a merge request is made - if: '$...
jackrabbithanna's user avatar
3 votes
1 answer
2k views

How to change value of pre-defined variable in GitLab to all lowercase

My environment requires the use of the predefined variable CI_PROJECT_NAMESPACE in .gitlab-ci.yml; however, this variable is in all caps, which makes my build job fail. I've tried several ways to ...
wwillfred's user avatar
0 votes
0 answers
96 views

Cron job to run every three weeks on a Monday - for a GitLab CI Job schedule

I need to stagger the running of three separate scripts using cron. I want them to run every three weeks on Monday at noon. So I need three cron statements to assign to each of the three scripts. (yes ...
ErnieAndBert's user avatar
0 votes
0 answers
284 views

When pipelines with retries on `retry:when` `api_failure` condition are rerun?

What api failures are caught by retry:when api_failure in below pipeline? test: script: some api call retry: max: 2 when: api_failure Does gitlab detect any api call failure inside ...
rok's user avatar
  • 256
2 votes
1 answer
6k views

GitLab CI runner: remote: You are not allowed to download code from this project

Inside of one of my runner's logs, when I try to replay it, I'm getting the following error, Reinitialized existing Git repository in /builds/users/repo/.git/ remote: You are not allowed to download ...
Evan Carroll's user avatar
  • 1,794
0 votes
1 answer
634 views

When running terraform from Gitlab CI, terraform asks me for the "The address of the REST endpoint"

When I run terraform apply using the Terraform files in my GitLab CI Pipeline (I didn't write them) I get the following, Initializing the backend... address The address of the REST endpoint Can ...
Evan Carroll's user avatar
  • 1,794
0 votes
0 answers
700 views

gitlab runner storage full

I've my own gitlab runners with docker executors. After a month Ive found that the storage is almost full on all runners due to runner cache. Mostly docker volumes taking all space. I've tried ...
Alan's user avatar
  • 23
0 votes
0 answers
50 views

Base image for GitLab Kubernetes executor

I'd like to use Kubernetes executor for GitLab Runner. What is the recommended base image for such an executor's image? I'd expect this GitLab Kubernetes executor's container to connect to GitLab ...
rok's user avatar
  • 256
-1 votes
1 answer
31 views

What is `file_store` in the `ci_job_artifacts`?

Where is this field defined and what does it mean? I can't find any information about it.
Evan Carroll's user avatar
  • 1,794
0 votes
1 answer
50 views

How can I create a path into GitLab Object Storage from the ci_job_artifacts table?

Gitlab has an internal PostgreSQL database. There is a client wrapper for psql called gitlab-psql that I connect to it with. This allows me to query job artifacts through the table ci_job_artifacts. ...
Evan Carroll's user avatar
  • 1,794
0 votes
1 answer
21 views

What is the GitLab proj_id_hash for the bucket structure in the object store?

In this document covering the Feature Bucket, it says, the Bucket Structure for the Job Artifacts is /artifacts/<proj_id_hash>/<date>/<job_id>/<artifact_id> In the above, what ...
Evan Carroll's user avatar
  • 1,794
0 votes
1 answer
94 views

What is a GitLab locked artifact?

In the table ci_job_artifacts there is a column called locked. What does this column do? It's not documented in the Job Artifacts API? It's currently a smallint and it has 3 possible values: 0, 1, 2. ...
Evan Carroll's user avatar
  • 1,794
0 votes
1 answer
116 views

Does GitLab support searching logs across jobs for specific strings?

I need to find all jobs that failed in a specific fashion, a few methods are viable One method that would be viable is finding where GitLab stores its log files, and searching them with something ...
Evan Carroll's user avatar
  • 1,794
0 votes
1 answer
49 views

Where does GitLab omnibus store ci log files?

When viewing a raw CI log file, such as this one https://acmeco.net/acmeco/acmeco/angular-ui/-/jobs/334040/raw I can see content such as net/http: request canceled (Client.Timeout exceeded while ...
Evan Carroll's user avatar
  • 1,794

1
2 3 4 5 6