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
20
votes
1 answer

Is it possible to debug a Gitlab CI build interactively?

I have a build in Gitlab CI that takes a long time (10mins+) to run, and it's very annoying to wait for the entire process every time I need to experiment / make changes. It seems like surely there's a way to access some sort of shell during the…
jamesfacts
  • 371
  • 2
  • 14
20
votes
2 answers

Windows GitLab CI Runner using Bash

I'm trying to use bash as the shell on Windows for a GitLab CI Runner. concurrent = 1 check_interval = 0 [[runners]] name = "DESKTOP-RQTQ13S" url = "https://example.org/ci" token = "fooooooooooooooooooobaaaaaaaar" executor = "shell" shell…
Niklas R
  • 16,299
  • 28
  • 108
  • 203
20
votes
6 answers

Using a private Docker Image from Gitlab Registry as the base image for CI

How should I authenticate if I want to use an image from the Gitlab Registry as a base image of another CI build? According to…
Martin Sadowski
  • 203
  • 1
  • 2
  • 5
19
votes
3 answers

"ChromeHeadless have not captured in 60000 ms, killing." occuring only in Gitlab hosted CI/CD pipeline

When running a CI/CD pipeline on Gitlab, my Karma tests are timing out with the error: ℹ 「wdm」: Compiled successfully. 05 08 2019 22:25:31.483:INFO [karma-server]: Karma v4.2.0 server started at http://0.0.0.0:9222/ 05 08 2019 22:25:31.485:INFO…
nevardreik
  • 188
  • 1
  • 1
  • 7
19
votes
1 answer

gitlab-runner x509: certificate signed by unknown authority

I'm trying to register a new runner on gitlab following these steps : https://docs.gitlab.com/runner/register/index.html But when I enter the url, token and tags, an error message pops-up saying: ERROR: Registering runner... failed …
Abhishek Rane
  • 202
  • 1
  • 3
  • 8
19
votes
4 answers

How to make GitLab Runner in Docker see a custom CA Root certificate

I have installed and configured: an on-premises GitLab Omnibus on ServerA running on HTTPS an on-premises GitLab-Runner installed as Docker Service in ServerB ServerA certificate is generated by a custom CA Root The Configuration I've have put…
Andrea Ligios
  • 49,480
  • 26
  • 114
  • 243
19
votes
3 answers

dynamically setting artifact path/folder structure on gitlab-ci.yml

I have the following gitlab-ci.yml file that reads the package.json using the jq processor to dynamically set the variable name of the artifact folder, something along the lines of image: node:latest stages: - build before_script: ## steps…
Jaya
  • 3,721
  • 4
  • 32
  • 48
19
votes
3 answers

How to run docker-compose inside docker in docker which runs inside gitlab-runner container?

I have a gitlab runner inside a docker container, runs fine if I run an image like nginx. But now I tried to run docker in docker (dind) inside the gitlab runner and I want to run docker-compose inside the dind. Docker info runs fine, but if I try…
CordlessWool
  • 1,388
  • 4
  • 17
  • 35
19
votes
3 answers

Trigger jobs in gitlab-ci on merge request

It's posible run a job from gitlab-ci only on merge request? Now, we have a big monolitic project with heavy tests, but we only want to run the test before merging to the branch master.
Philippe Thiers
  • 303
  • 1
  • 3
  • 6
19
votes
4 answers

[Gitlab]Where can I find Gitlab Pages hosted on my private Gitlab instance?

I tried to set up Gitlab Pages, until now I finished uploading my static website files Uploading artifacts... coverage/lcov-report: found 77 matching files Uploading artifacts to coordinator... ok id=1038 responseStatus=201 Created…
Kim
  • 5,045
  • 6
  • 38
  • 60
18
votes
5 answers

GitLab Runner suddenly fails to run jobs using Docker Machine and AWS Autoscaling

I use GitLab Runner for running CI jobs on AWS EC2 spot instances, using its autoscaling feature with Docker Machine. All of a sudden, today GitLab CI failed to run jobs and shows me the following job output for all jobs that I want to…
18
votes
1 answer

Gitlab CI - $CI_COMMIT_TAG is empty

I need the tag value of my last pushed git commit in my gitlab-ci.yml when building. In the build process I build a docker image and after the build I want to push this images tagged with the same tag as my git commit. So far my understanding is…
Darius Mann
  • 637
  • 1
  • 5
  • 14
18
votes
5 answers

The Runner of type Shell don't work: Job failed (system failure): preparing environment:

1- Environment: Gitlab-CE GitLab 13.2.1 (b55baf593e6) GitLab Shell 13.3.0 GitLab Workhorse v8.37.0 GitLab API v4 Ruby 2.6.6p146 Rails 6.0.3.1 PostgreSQL 11.7 Debian GNU / Linux 10 server (buster) 2- .gitlab-ci.yml file: before_script: - echo…
Arthu Santiago
  • 851
  • 1
  • 7
  • 10
18
votes
1 answer

Gitlab: There has been a runner system failure

I use Gitlab for doing Continuous Integration and Development and all of a sudden I get this error message "There has been a runner system failure, please try again" There's no real error message or error code. I've tried restarting the gitlab…
CAMD_3441
  • 2,514
  • 2
  • 23
  • 38
18
votes
3 answers

How to trigger a specific job in gitlab

I want to run a specific job in a pipeline , I thought assigning a tag for the job and then specifying this tag again in the post method will fulfill my needs .The problem is when I trigger using the api(post) , all the jobs in the pipeline are…
Kiblawi_Rabee
  • 264
  • 1
  • 3
  • 5