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
7 views

Error docker push to own gitlab server installed with omnibus on ubuntu vm with own domain

I set up my own gitlab server on ubuntu vm and I also bought domain from godaddy and link with a record. I can login into registry but cannot push image to gitlab default container registry. My vm ...
user avatar
0 votes
0 answers
19 views

Gitlab CI building dotnet core project with WPF reference

For a CI Project, I am using Gitlabs pipelines to build and create nuget packages. I am using the following docker image image: mcr.microsoft.com/dotnet/core/sdk:3.1 which works for most of my ...
user avatar
  • 101
0 votes
0 answers
51 views

Gitlab pipeline failing to checkout repository

I am running a gitlab CI pipeline with the following .yml file: image: buildtools2019 stages: - build build-job: stage: build script: - echo "Starting to build the project" - ...
user avatar
0 votes
1 answer
27 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 ...
user avatar
0 votes
1 answer
142 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 ...
user avatar
  • 115
1 vote
1 answer
54 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, ...
user avatar
0 votes
0 answers
117 views

Checking pipeline status stuck

I have installed gitlab-runner into a container, and made it register. I got a runner with the green light into my gitlab.private.com open but seems that the Checking pipeline status is stuck and ...
user avatar
1 vote
1 answer
306 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 ...
user avatar
  • 123
0 votes
0 answers
45 views

Gitlab runner on aws ec2 : Have one ec2 launching multiple concurrent jobs

I followed this tutorial : https://docs.gitlab.com/runner/configuration/runner_autoscale_aws/ And it works perfectly ! I put the runner in only one branch for testingBut in our pipeline with have like ...
user avatar
0 votes
1 answer
61 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 ...
user avatar
  • 103
0 votes
0 answers
141 views

python `subprocess.run()` returning unexpected empty stdout in gitlab-ci

I'm attempting to have my python blackbox test suite run through gitlab-ci. When running the test through pipenv run pytest on my personal machine everything executes correctly, but when running on ...
user avatar
  • 1
1 vote
1 answer
39 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 ...
user avatar
1 vote
1 answer
180 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,...
user avatar
  • 111
0 votes
0 answers
241 views

Resolving permissions for Gitlab CI/CD for files written from Docker containers

My Gitlab CI/CD pipelines works on the first build with a clean home/gitlab-runner/builds directory, but on subsequent builds I get "rm: cannot remove '/home/gitlab-runner/builds/somefile': ...
user avatar
2 votes
1 answer
36 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: ...
user avatar
0 votes
0 answers
190 views

Cant access gitlab ci variables from inside python script building with maven

I have a python project which I build using maven. In my .gitlab-ci.yaml file I set some global variables. variables: MAVEN_BASE_CLI_OPTS: "" MAVEN_CLI_OPTS: ${MAVEN_BASE_CLI_OPTS} ...
user avatar
0 votes
0 answers
27 views

What is the difference between `gitlab-runner start` and `gitlab-runner run`? What is the purpose of `run`?

What is the difference between gitlab-runner start and gitlab-runner run? The documentation is not very clear on this: gitlab-runner run This is main command that is executed when GitLab Runner is ...
user avatar
  • 101
2 votes
0 answers
427 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 ...
user avatar
0 votes
0 answers
75 views

Gitlab Parent-Child pipeline: using branches in the parent pipeline repository for new feature implementations

Environment: Parent-child pipeline branch off of main. Branch: testBranch Expected functioning config name: .scan.yml:refs/testBranch@url/scanPipeline Working config name (this uses the default master/...
user avatar
  • 101
0 votes
1 answer
24 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 monitoring those VMs with prometheus and grafana, but i need to setup node-...
user avatar
0 votes
0 answers
77 views

gitlab pipeline: cannot pass $CI_REPOSITORY_URL to downstream pipeline

I have a job in a cicd pipeline which needs to start a pipeline in a different project and reference the calling project. I have created a job like this: deploy: variables: PROJECTURL: $...
user avatar
  • 101
0 votes
0 answers
42 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 ...
user avatar
2 votes
1 answer
145 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 ...
user avatar
  • 121
2 votes
0 answers
274 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 (...
user avatar
  • 121
0 votes
0 answers
1k views

Gitlab runner fails with connection timeout , connectivity works fine

Same question was asked by myself before. But now I registered runner with sudo. Yet I get following error in pipeline Getting source from Git repository Fetching changes with git depth set to 50... ...
user avatar
1 vote
0 answers
260 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 ...
user avatar
  • 11
1 vote
0 answers
56 views

gitlab ci: How to share cache between fork and parent repository?

first please read the context of my inquiry. A project named teamspace/foo I maintain at work makes each teammate fork it. I have a scheduled pipeline that remakes cache each night. Now onto the ...
user avatar
1 vote
1 answer
453 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 ...
user avatar
0 votes
3 answers
507 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 ...
user avatar
  • 141
1 vote
0 answers
604 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 ...
user avatar
  • 11
3 votes
2 answers
6k 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 ...
user avatar
  • 133
0 votes
1 answer
324 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 ...
user avatar
  • 81
1 vote
1 answer
1k 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. ...
user avatar
1 vote
1 answer
38 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 ...
user avatar
  • 121
1 vote
2 answers
672 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 /...
user avatar
0 votes
2 answers
226 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,...
user avatar
3 votes
2 answers
346 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 ...
user avatar
  • 81
1 vote
1 answer
511 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 ...
user avatar
  • 113
1 vote
1 answer
74 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 ...
user avatar
  • 115
3 votes
2 answers
9k 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: ...
user avatar
0 votes
1 answer
842 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 ...
user avatar
  • 101
0 votes
1 answer
94 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 ...
user avatar
-1 votes
1 answer
95 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,...
user avatar
0 votes
2 answers
487 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 ...
user avatar
  • 101
1 vote
1 answer
184 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> ...
user avatar
1 vote
1 answer
133 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:...
user avatar
1 vote
1 answer
45 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 ...
user avatar
  • 133
0 votes
2 answers
4k 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 ...
user avatar
  • 103
0 votes
1 answer
341 views

Gitlab CI push to docker-registry fails

I have GitLab server and a separate docker-registry. I have created a testuser with a testpassword. My .gitlab-ci.yml image: docker:latest services: - docker:18.09.7-dind variables: ...
user avatar
2 votes
1 answer
246 views

How to specify 'os' for free gitlab runners ('runs-on' equivalent)

How can I specify the operating system in the .gitlab-ci file to indicate which underlying OS on which the gitlab-runner should be running when using the 2,000 minutes of free execution in with gitlab....
user avatar