Questions tagged [gitlab-ci-runner]

GitLab Runner is the open source project that is used to run your jobs and send the results back to GitLab. It is used in conjunction with GitLab CI, the open-source continuous integration service included with GitLab that coordinates the jobs.

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

Register gitlab-runner through terraform after deploying the runner as a container

Context and code used Here is the code I produced to deploy any kind of container on Azure. (We are doing the same on AWS and facing the same kind of issues) resource "azurerm_container_group&...
Hybris95's user avatar
  • 103
-1 votes
0 answers
15 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
1 vote
2 answers
1k 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
  • 11
-1 votes
0 answers
150 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
-1 votes
0 answers
15 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
0 votes
0 answers
41 views

How to run pytorch on gitlab-runner via docker?

I am learning gitlab ci/cd with a AI/Deep learning application in mind. But I wasn't sure how pytorch could be used in a gitlab-runner. According to documentation: The following multi-platform Docker ...
tinlyx's user avatar
  • 109
1 vote
1 answer
864 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
1 vote
1 answer
1k 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
140 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
1 answer
110 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
2 votes
1 answer
9k 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
  • 2,069
0 votes
1 answer
1k 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
  • 2,069
0 votes
2 answers
900 views

Building a docker container in a gitlab ci job

I am trying to build a docker image as part of a gitlab ci job. I work on my own gitlab instance with a separate machine running ci jobs. I have tried and failed with many different configurations for ...
Henrik's user avatar
  • 3
0 votes
2 answers
6k views

gitlab-runner docker: command not found

I'm trying to build docker container using GitLab runner. (lead dev left company, and now I have no idea how to do it.) I'll share everything I can. Build output as I understand from output runner is ...
Andronik Nazaryan's user avatar
0 votes
1 answer
981 views

GitLab tag removal through the web interface does not actually remove the tag from Git

When I hit the delete button in the Tags interface I can verify the tag does not show, but when semantic-release tries to run, I still git tag on the runner I still get fatal: tag 'v5.2.3' already ...
Evan Carroll's user avatar
  • 2,069
0 votes
1 answer
4k views

gitlab project registry - docker push fails with invalid reference format error message

I have create a personal access token for my project. in my gitlab-ci.yml I'm trying to create a docker image and then save it in my project's repository. I'm able to login - I see an explicit ...
dot's user avatar
  • 115
3 votes
2 answers
6k views

What regex engine does GitLab use?

Let's say I have a rule like this, - if: '$CI_COMMIT_TITLE =~ /^(fix|feat|perf|docs|build|test|ci|refactor)\S*:/' It occurs to me that ^ does not match the start of any line in a multiline regex, ...
Evan Carroll's user avatar
  • 2,069
1 vote
1 answer
3k views

How to run a gitlab child pipeline only on changes in merge requests?

According to the documentation, parent-child pipelines should work well with rules - so i'm trying to setup a parent-child pipeline, where the child pipelines only run when something has actually ...
pulse00's user avatar
  • 123
0 votes
1 answer
505 views

Docker build from gitlab pipeline

I do have the following "shared.gitlab-ci.yml" variables: GIT_SUBMODULE_STRATEGY: recursive DOCKERFILE_BUILD: docker/build/Dockerfile DOCKERFILE_TEST: docker/test/Dockerfile ...
Pwnstar's user avatar
  • 103
1 vote
2 answers
1k views

Test reports for Gitlab CI when multiple modules exist

I am trying to setup build scripts for Gitlab CI for a Java/ project with Gradle. The project has three different modules A, B and C, with modules B and C being dependent on the module A. All three ...
Petre Popescu's user avatar
1 vote
1 answer
2k views

How to caching the docker images?

I try to improve the performance of my pipeline stages in gitlab cicd. The Gitlab is self hosted and the Runner runs as docker with docker executor. I recognized, that for both jobs in my stages (test,...
MaKaNu's user avatar
  • 111
2 votes
1 answer
93 views

CI pipeline including upload to pypi repo

How should a ci pipeline be set up that publishes a python wheel to a private pypi server? Say I have a publish job like this one: publish: image: $PYTHON_IMAGE stage: publish before_script: ...
plazmakeks's user avatar
3 votes
0 answers
2k views

Share cache between gitlab.com owned runner and self hosted runner

We are in the middle of migrating from Self Hosted GitLab to Gitlab.com (Cloud). This also means that we are shifting building through shell, to building through Docker (using Kaniko). A summary of ...
Jordi Kroon's user avatar
0 votes
1 answer
49 views

how to deploy same job on all my runners?

I have several VMs running gilab-runner, and I'm using gitlab-ci to deploy microservices into those VMs. Now I want to monitore those VMs with prometheus and grafana, but i need to setup node-exporter/...
Charles Bao's user avatar
1 vote
1 answer
247 views

Gitlab (self hosted gitlab) pipeline fail when trying to fetch repository

I've setup own gitlab server on AWS EC2 Instance based on this image - https://aws.amazon.com/marketplace/pp/prodview-w6ykryurkesjq?ref_=aws-mp-console-subscription-detail and assign Elastic IP for ...
Marcin Warzybok's user avatar
3 votes
1 answer
635 views

Do GitLab Runner worker nodes need to have network access to GitLab?

GitLab runner has an autoscale feature that allows the Runner Manager to dynamically spawn new worker nodes on demand. The documentation says that: "GitLab Runner is going to need to talk to your ...
Moritz's user avatar
  • 141
2 votes
0 answers
574 views

Pipeline could not pull repo in GitLab CI/CD

I have a the repo with test CI pipeline, which is the following: # .gitlab-ci.yml image: name: gcc build: stage: build script: - echo 123 And it fails: Running with gitlab-runner 14.3.1 (...
Ivan's user avatar
  • 121
2 votes
1 answer
1k views

GitLab CI/CD get CI_MERGE_REQUEST_LABELS after merge successfully

I know that the docs say, that the variable CI_MERGE_REQUEST_LABELS is available if pipeline is a merge request pipeline and the MR is open. My dream was it to label my MR's with patch, minor or major ...
Neneil's user avatar
  • 21
2 votes
1 answer
1k views

New Runners are locked and the checkbox to unlock them is disabled

I'm running the latest version of on-prem GitLab (version 14.1.0-ee). The last few new GitLab runners I've added show up as locked. I open the runners config in the WebUI and I see that the "Lock ...
James T Snell's user avatar
0 votes
3 answers
1k views

Do I have to include gitlab variables in my terraform code in order for my credentials to be recognized?

I am trying to set up a pipeline, which is supposed to deploy terraform code into an aws account. The code works fine locally, and I have setup and imported the state bucket and dynamodb table which ...
Lucky's user avatar
  • 141
2 votes
0 answers
2k views

How to use tags to use a specific gitlab-runner?

How to use tags to use a specific gitlab-runner? I wrote tag in .gitlab-ci.yml: appBuild: stage: build tags: - android I wrote "android" tag in runner config. But job is in pending ...
Epic555's user avatar
  • 121
10 votes
2 answers
24k views

Can I run multiple pipelines in a single GitLab repo using GitLab CI/CD?

I know that I can't have multiple gitlab-ci.yml files in one repo, but it still seems fairly limited. Say for example I have one set of tests I want to run whenever a change is pushed or on PRs, and ...
Christian Legge's user avatar
0 votes
1 answer
617 views

How can we prepare GitLab runners using Ansible deploys

Given We run an in-house GitLab server, with many projects (aka "repositories") We provision all servers using Ansible (and deploy projects using pip) We deploy to dev.project.example.com ...
jalanb's user avatar
  • 83
1 vote
1 answer
2k views

GitLab CI/CD and building on Mac Mini with M1 Processor - Provision Profile

I followed a guide to setup a simple GitLab runner on my 2020 mac Mini with an M1 processor. Everything builds great except for iOS. My error: Xcode build done. ...
beansbeans's user avatar
1 vote
1 answer
61 views

Howto run test on test computer instead of build computer, using gitlab

I'm learning gitlab and am asking for advice / best practice here. I want to install a program to a different machine than the build computer, and run some automatic tests on that machine. How is this ...
petke's user avatar
  • 121
1 vote
2 answers
1k views

Gitlab runner fails with connection timeout

I have gitlab runner with, docker as executor and docker:latest as default image. Runner is connected to the project and runs pipeline, but it stuck at Reinitialized existing Git repository in /...
Sachith Muhandiram's user avatar
0 votes
2 answers
301 views

What would be the best way to improve this Gitlab CI/CD (Gitlab.com) pipeline's efficiency and consistency?

This project has a pipeline that runs integration tests against a spun up instance of Gitlab. Each Job in the integration test stage has its own instance testing different build distributions (es, cjs,...
Justin Dalrymple's user avatar
3 votes
2 answers
760 views

How to get GitLab CI to rebuild on JIRA issue status change?

I would like to start builds in GitLab CI in response to issue transitions in JIRA. I have not found a direct way to do that from searching online. I have found ways to get GitLab to tell JIRA what to ...
jalanb's user avatar
  • 83
1 vote
1 answer
868 views

How do I SSH into an EC2 instance from AWS gitlab-runner?

I have setup my own gitlab-runner on AWS following GitLab's walkthrough (Autoscaling GitLab Runner on AWS EC2). One step in my deployment is to SSH into another EC2 instance. The SSH connection fails ...
bynary's user avatar
  • 113
1 vote
1 answer
96 views

gitlab kubernernetes integration: configuring the installed runner

I connected my existing kubernetes cluster to gitlab using the gitlab integration in myproject/operations/kubernetes on the left tab pane in the gitlab gui. After having installed helm + gitlab runner ...
NanoPish's user avatar
  • 115
3 votes
2 answers
18k views

This job is stuck because you don't have any active runners online

I try to use Gitlab-CI and create the runner, but when jobs start, the job with the needed runner doesn't start: But this runner exists in the list: How to use a runner? And an additional question: ...
Valentyn Hruzytskyi's user avatar
0 votes
1 answer
1k views

Trigger gitlab downstream pipeline from a upstream pipeline in a multi-project using trigger, rules and custom configuration variables

I have this scenario where I want to run the trigger in build stage only when $FLAG variable has been set by the .pre stage. However, the build stage never runs. How should I conditionally trigger a ...
sd1517's user avatar
  • 101
0 votes
1 answer
114 views

Gitlab CI - Deploy to an active docker container

I am running production code within an active docker container. I would like to use the Gitlab CI tool to auto deploy changes to the production environment WITHIN the docker container. I am having ...
Scott Summers's user avatar
-1 votes
1 answer
271 views

Is gitlab-runner suit for production use

Is the GitLab CI/CD tools suit/reliable for production use? As more details, I have more than two servers and they've gitlab-runner inside then connected as runners to my GitLab instance. In this case,...
M. Rostami's user avatar
0 votes
2 answers
1k views

Gitlab CI - Change branch dynamically

I have a nodeJS application which I deploy with Gitlab CI. When pushing to branch XYZ, the corresponding script runs, let's assume on stage 'dev'. That's working. So far so good. Is it possible to ...
pkberlin's user avatar
  • 101
1 vote
1 answer
365 views

GitLab pipeline stop at the stage of pulling an image from Docker hub

Description: I have created a test project to serve a simple HTML page with httpd:alpine image. The following are the parts of the repository: index.html: <html lang="en"> <head> ...
M. Rostami's user avatar
1 vote
1 answer
413 views

How to copy library source code from other Git repo to an Android Gradle application GitLab build process?

There is an Android application using Grandle for build. It uses a "library" stated in build.gradle file: dependencies { api project(path: ':specialproject.speciallibrary', configuration:...
Tom Smykowski's user avatar
1 vote
1 answer
140 views

Devops CICD run ReactJS application while testing with jest + puppeteer [closed]

Scenario I'm working on getting my end-to-end tests to work in a GitLab pipeline. Currently all the tests run locally but I'm having an issue getting them to run using GitLab's continuous integration ...
Jacksonkr's user avatar
  • 133
1 vote
2 answers
6k views

GitLab: Make commit in (shared) CI runner and push to repository/open merge request

I want to run a scheduled pipeline on the shared runners that is able to open a merge request on my repository. I want to run a script that checks if updates for my pinned packages exists and if yes ...
Greeneco's user avatar
  • 113