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
32
votes
7 answers

gitlab runner The requested URL returned error: 403

I'm currently using gitlab.com (not local installation) with their multi-runner for CI integration. This works great on one of my projects but fails for another. I'm using 2012R2 for my host with MSBuild version 14.0.23107.0. I know the error…
Todd S
  • 891
  • 1
  • 7
  • 8
31
votes
2 answers

What is gitlab runner

I think I'm fundamentally missing something. I'm new to CI/CD and trying to set up my first pipeline ever with gitlab. The project is a pre-existing PHP project. I don't want to clean it up just yet, at the moment I've pushed the whole thing into a…
clse
  • 648
  • 1
  • 7
  • 10
31
votes
5 answers

GitLab CI runner can't connect to unix:///var/run/docker.sock in kubernetes

GitLab's running in kubernetes cluster. Runner can't build docker image with build artifacts. I've already tried several approaches to fix this, but no luck. Here are some configs snippets: .gitlab-ci.yml image: docker:latest services: -…
d.ansimov
  • 2,131
  • 2
  • 31
  • 54
31
votes
5 answers

Push files to gitlab-ci via CI runner

I am using gitlab CI runner to test my code and generating some files. I just want to push the generated files to gitlab repository via CI runner. Is there any way to do that ?
Venkat
  • 603
  • 1
  • 8
  • 17
31
votes
3 answers

What is the special gitlab-ci-token user?

The docs for gitlab's container registry (https://gitlab.com/help/container_registry/README.md) provide a config example with this instruction: - docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN registry.example.com and this explanation: You have…
user1447137
  • 401
  • 1
  • 6
  • 6
30
votes
3 answers

gitlab ci cache no matching files

I try to build apk with gitlab runner When I build apk, I don't want download all build pacakage everytime so i try to caching .gradle/caches and .gradle/wrappers following is my gitlab-ci.yml sdk_build_job image: myimage:latest stage:…
fuzes
  • 1,777
  • 4
  • 20
  • 40
30
votes
3 answers

how to change gitlab-ci runner build path

How to change the gitlab multi runner build path. in my server it have /home/gitlab-runner/builds. I want to change this path to my secondary HDD that is mounted in the same server.
Prem Anand
  • 451
  • 1
  • 4
  • 10
30
votes
3 answers

GitLab CI Start job manually (deployment)

Is it possible to mark gitlab ci jobs to start manually? I need it for deploying application but I want to decide if it's going to be deployed
30
votes
3 answers

Gitlab CI gradle dependency cache

I'm building android on Gitlab CI and downloading dependencies each time is annoying. I tried caching: $HOME/.gradle/ $HOME/.gradle/caches/ $GRADLE_HOME/caches/ $HOME/.m2/ .gradle/ build/ app/build/ The 26594th iteration of my .gitlab-ci.yml is…
DariusL
  • 4,007
  • 5
  • 32
  • 44
30
votes
6 answers

How to run multiple gitlab-ci-runners?

Well, very basic question but I just didn't find (good) documentation; here we go: Can I setup/run several runners on the same server? What means runner? Is this the (omnibus) installation or the processes I start with e.g.…
h2459jl
  • 405
  • 1
  • 5
  • 8
29
votes
2 answers

How the gitlab-ci cache is working on docker runner? what is /cache directory? what is cache_dir?

How the gitlab-ci cache is working on docker runner? What is /cache directory? What is cache_dir? Where and how files matching the "paths" in "cache" gitlab-ci.yml are stored?
srghma
  • 4,770
  • 2
  • 38
  • 54
28
votes
3 answers

gitlab-runner: prepare environment failed to start process pwsh in windows

On a new WIN10 machine after installing gitlab-runner with shell executor(i.e powershell) and starting a CI build throws following error: Preparing environment ERROR: Job failed (system failure): prepare environment: failed to start process: exec:…
harish
  • 1,836
  • 3
  • 21
  • 26
28
votes
7 answers

gitlab runner throws "Cleaning up file based variables 00:01 ERROR: Job failed: exit code 1" at the end

Even though all my steps pass successfully , Gitlab CI shows this - "Cleaning up file based variables 00:01 ERROR: Job failed: exit code 1" and fails the job at the very end . Also interestingly , this only happens for my master branch . It runs…
ssbb191
  • 1,486
  • 3
  • 12
  • 23
28
votes
6 answers

Gitlab DOCKER_AUTH_CONFIG not working

The following are in my .gitlab-ci.yml stages: - build variables: DOCKER_HOST: tcp://docker:2375/ DOCKER_DRIVER: overlay2 services: - docker:dind build-image: image: docker:stable stage: build script: - docker build --no-cache…
Tin Ng
  • 937
  • 2
  • 11
  • 25
28
votes
6 answers

Gitlab CI Build failed gitlab-runner-prebuilt.tar.xz: no such file or directory

I just installed Gitlab Runner on my dev machine (Ubuntu 17.10) for testing. When I run the runner I got: $: sudo gitlab-runner exec docker test Running with gitlab-ci-multi-runner dev (1.4.2) Using Docker executor with image php:5.6…
vpedrosa
  • 811
  • 1
  • 6
  • 17