Questions tagged [gitlab-ci-runner]

This is GitLab Runner repository, this application run tests and sends the results to GitLab CI. GitLab CI is the open-source continuous integration server that coordinates the testing.

For Documentation see docs.gitlab.com/runner/

3028 questions
42
votes
3 answers

GitLab-Runner "listen_address not defined" error

I'm running a Laravel api on my server, and I wanted to use Gitlab-runner for CD. The first two runs were good, but then I started to see this problem listen_address not defined, session endpoints disabled builds=0 I'm running a linux server on a…
Arnaldo Perez
  • 581
  • 1
  • 4
  • 10
42
votes
3 answers

How can I let the gitlab-ci-runner DinD image cache intermediate images?

I have a Dockerfile that starts with installing the texlive-full package, which is huge and takes a long time. If I docker build it locally, the intermedate image created after installation is cached, and subsequent builds are fast. However, if I…
Roel Harbers
  • 1,014
  • 1
  • 9
  • 18
41
votes
6 answers

Gitlab-CI runner: ignore self-signed certificate

gitlab-ci-multi-runner register gave me couldn't execute POST against https://xxxx/ci/api/v1/runners/register.json: Post https://xxxx/ci/api/v1/runners/register.json: x509: cannot validate certificate for xxxx because it doesn't contain any IP…
Etienne Gautier
  • 2,901
  • 4
  • 26
  • 35
41
votes
2 answers

Artifacts for failed builds in Gitlab

I would like to know how to generate artifacts for failed builds in gitlab continuous integration, to view the html report generated by the build. I tried like this: artifacts: when: on_failure paths: - SmokeTestResults/ -…
Jerzy Gruszka
  • 1,629
  • 4
  • 15
  • 20
41
votes
7 answers

GitLab CI builds remains pending

We recently started to use GitLab-CI on the gitlab.com free service. At first everything went fine, but now, seems like we can't build our project anymore. The builds are shown as pending and doesn't do anything. Here's what we have in our builds…
Pascal Boutin
  • 1,220
  • 2
  • 9
  • 22
40
votes
5 answers

Cannot connect to the Docker daemon at tcp://localhost:2375/. Is the docker daemon running. On GitLab

I'm trying to build the CI pipeline in GitLab. I'd like to ask about making the docker work in GitLab CI. From this issue: https://gitlab.com/gitlab-org/gitlab-runner/issues/4501#note_195033385 I'm follow the instruction for both ways. With TLS and…
zzob
  • 993
  • 3
  • 9
  • 19
38
votes
3 answers

exec: "pwsh": executable file not found in %PATH%

I've been trying to initiate my pipeline on gitlab CI/CD for a demo project. I've installed gitlab-runner in my windows local machine and gave the executor type as "Shell". And I've successfully integrated the gitlab-runner with my gitlab project.…
Aravind S
  • 381
  • 1
  • 3
  • 5
38
votes
7 answers

How to avoid reinstalling dependencies for each job in Gitlab CI

I'm using Gitlab CI 8.0 with gitlab-ci-multi-runner 0.6.0. I have a .gitlab-ci.yml file similar to the following: before_script: - npm install server_tests: script: mocha client_tests: script: karma start karma.conf.js This works but it…
Tamlyn
  • 22,122
  • 12
  • 111
  • 127
37
votes
9 answers

How do I delete/unregister a GitLab runner

I have registered a personal GitLab runner several months ago, which I no longer use. How do I completely delete it so that it does not show up on my GitLab CI/CD settings page?
ostrokach
  • 17,993
  • 11
  • 78
  • 90
37
votes
12 answers

gitlab: Runner is offline, last contact was about some hours ago

recently my runners have been stopped and I don't know why? I've just upgraded nodejs on the server and it did happen. after this problem, I've tried to update gitlab to the latest version and check the runner status but the problem still persists…
Majid Parvin
  • 4,499
  • 5
  • 29
  • 47
35
votes
4 answers

Gitlab CI/CD: New runner has not been connected yet

I am very new to Gitlab CI/CD and I have read its documentation very carefully about creating a new CI/CD process using .gitlab-ci.yml file. As I have found out in order to have Continuous Deployment (also known as CD), it is needed to register a…
35
votes
8 answers

gitlab runner doesn`t work on a specific project

I registered 11 projects of GitLab runner. Runners of each project work fine except 1 project. First time I registered runner of this project, it works. But after I commit/push some changes, an error occurs and failed job. I saw some solutions that…
Sungmin Park
  • 459
  • 1
  • 4
  • 7
35
votes
1 answer

Configure runner to run multiple jobs at the same time

When having one gitlab runner serving multiple projects, it can only run one CI pipeline while the other project pipelines have to queue. Is it possible to make a gitlab runner run pipelines from all projects in parallel? I don't seem to find…
Roderick Jonsson
  • 1,111
  • 1
  • 10
  • 16
33
votes
7 answers

Why am I getting "Pipeline failed due to the user not being verified" & "Detached merge request pipeline" on a Gitlab merge request?

When a non-owner dev pushes a branch to our Gitlab repo, it returns a "pipeline failed" message, with the detail "Pipeline failed due to the user not being verified". On the dev's account, he's getting a prompt to add a credit card to verify him to…
33
votes
3 answers

Clearing the pipeline cache with Gitlab CI

Is is possible to invalidate or clear a pipeline cache with Gitlab CI after a pipeline completes? My .gitlab-ci.yml file has the following global cache definition cache: key: "%CI_PIPELINE_ID%" paths: - './msvc/Project1`/bin/Debug' -…
Dan
  • 1,805
  • 2
  • 18
  • 21