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
1 answer
22 views

How do I stop all users from creating branches on GitLab and force Merge Requests?

My company wants to create a policy where only one person can create a new branch, and not every developer on a project. The only method of contribution that they want is merge-requests. How can we ...
Evan Carroll's user avatar
  • 1,970
0 votes
2 answers
65 views

How do you get to to the admin area of GitLab?

Ever since Gitlab changed their UI, I can never find out how to get to the admin area? How do you do it?
Evan Carroll's user avatar
  • 1,970
0 votes
0 answers
123 views

Download the latest artifact from the last successful pipeline that produced the artifact?

GitLab provides a mechanism to download a single artifact file from specific tag or branch. The has the very nice feature of, Download a single artifact file for a specific job of the latest ...
Evan Carroll's user avatar
  • 1,970
0 votes
0 answers
9 views

Gitlab - Pipeline Icon Showing After Pipeline Was Disabled

I have a self hosted Gitlab instance. When I create a new repository, the CI/CD Auto DevOps feature is enabled by default. If I do not disable it before the initial commit, it triggers the default ...
Neo's user avatar
  • 1
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
23 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,970
0 votes
0 answers
69 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
44 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
245 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,970
0 votes
2 answers
952 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
49 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,970
1 vote
0 answers
86 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
127 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
11 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
1k 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
1 vote
1 answer
698 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
129 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
681 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
44 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
848 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
574 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
163 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
103 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
11 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
85 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
82 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
282 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
30 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
28 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
625 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,970
1 vote
1 answer
231 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,970
0 votes
1 answer
109 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
118 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
158 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,970
2 votes
0 answers
175 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,970
2 votes
2 answers
848 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,970
1 vote
0 answers
72 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
194 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
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
3 votes
1 answer
3k 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
2 votes
1 answer
8k 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,970
0 votes
1 answer
897 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,970
0 votes
0 answers
908 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
-1 votes
1 answer
45 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,970
0 votes
1 answer
64 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,970
0 votes
1 answer
22 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,970
0 votes
1 answer
122 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,970
0 votes
1 answer
150 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,970
0 votes
1 answer
66 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,970
0 votes
2 answers
618 views

Install gitlab on baremetal cluster using helm chart

I'm trying to install gitlab using helm on my kubernetes cluster running on vbox. I have already installed traeffik, metallb and argocd. I have tried to install gitlab using helm with this command: ...
Rabah DevOps's user avatar

1
2 3 4 5