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

GitLab pipeline Docker build gets stuck on apk

Trying to make a simple GitLab pipeline that builds a Docker image for Alpine Linux + Openshift CLI. This is the code: FROM frolvlad/alpine-glibc:latest MAINTAINER Daniel Widerin ENV OC_VERSION=v3.11.0 \ …
robliv
  • 1,351
  • 3
  • 15
  • 30
10
votes
3 answers

How to pass values to a Gitlab CI Job

I have a GitLab ci job to download and build few files and then publish to another server. I have done a POC and was successful. The problem is that I would like to customize the job when triggered manually or via API. How can i pass the dynamic…
abhi88
  • 303
  • 2
  • 4
  • 15
10
votes
1 answer

How to unlock a runner?

Context I am the (beginner) admin of my company GitLab server and I have a shared runner that is locked for an unknown reason. I couldn't find any information about what it means to be locked (and the difference with "paused") or how a runner can…
SteeveDroz
  • 6,006
  • 6
  • 33
  • 65
10
votes
1 answer

GitLab CI/CD pipeline, deploy to Windows Server

Using GitLab Runner I have on Linux, I am trying to connect to a Windows Server and run some basic commands there such as git pull. Does GitLab runner provide any capabilities for accessing windows server? What other options are there to get such…
Benjamin
  • 3,499
  • 8
  • 44
  • 77
10
votes
1 answer

GitLab Runner not picking up jobs automatically after reboot

So our GitLab Runner was running fine for a few weeks now. I had to do some upgrades that required a reboot on the machine where it is installed. After rebooting it no longer picks up jobs automatically. All my pipelines say they're stuck because…
dokgu
  • 4,957
  • 3
  • 39
  • 77
10
votes
4 answers

Running gitlab-ci pipeline jobs as non-root user

I have a mvn project which must be build as an non-root user but by default gitlab-ci allows runners to run as root user. I'm using gitlab.com runners by setting up gitlab-ci.yml file. I tried creating a user and switching to it like this: $…
graylog dev
  • 111
  • 1
  • 1
  • 6
10
votes
2 answers

Using redis with Gitlab CI

I am currently using serverless framework and setting up gitlab ci using shared runner. Following is my gitlab-ci.yml: image: node:latest services: - redis cache: paths: - node_modules/ - java/ stages: - build - test - review …
10
votes
1 answer

Host static website with GitLab pages

I need to host a static website with gitlab pages. My repo is a private repository (or project) and the .gitlab-ci.yml that I tried to use looks like this: image: gpecchio:BeCall pages: stage: deploy script: - echo 'Nothing to do...' …
GPecchio
  • 303
  • 1
  • 5
  • 16
10
votes
2 answers

How to stop robocopy from exiting the build?

I'm using Gitlab 8.15.4 and the latest runner for that build. Because of our firewall I can't run npm install so I'm copying the node-modules from another location into the build folder. The runner is on a Windows 7 machine. My first…
Maleki
  • 4,038
  • 1
  • 15
  • 17
10
votes
1 answer

How to fail task if there are no artifacts

I have a step in my .gitlab-ci.yml to run a script that generates some artifacts. Under normal circumstances, the directory contains artifacts and they are are picked up as such by gitlab-ci. But, I'm trying to set things up so that the task fails…
Stealth Rabbi
  • 10,156
  • 22
  • 100
  • 176
10
votes
3 answers

GitlabCi deploy on multiple servers

I use Gitlab runner and works fine for a single server. The gitlab-ci.yml is simple: stages: - test - deploy test: stage: test image: php tags: - docker script: - echo "Run tests..." deploy: stage: deploy tags: …
Nick Doulgeridis
  • 583
  • 1
  • 16
  • 31
9
votes
1 answer

Run GitLab CI for a subdirectory in the same project

I have three subprojects (Angular and Node.js) in the same GitLab project. Now I want to create the gitlab-ci.yml file for building and deploying one of this subprojects. Can I create three different gitlab-ci.yml files and run them inside…
9
votes
5 answers

GitLab Runner - ERROR: Failed to remove network for build

Here is my gitlab-ci.yml: image: vibraniumcore/gcc-cmake-boost-mysqlcon #image: gitlab/dind stages: - test - build Run Tests: stage: test tags: - c++ script: - mkdir build - cd build - cmake .. - cmake --build .…
Venelin
  • 2,905
  • 7
  • 53
  • 117
9
votes
1 answer

How to trigger a GitLab CI/CD Pipeline when cutting a new Release?

I'm in the process of migrating my projects from GitHub.com to a self-hosted GitLab CE instance. I had previously set up a GitHub Actions pipeline to publish the application when a new release was cut from a tag. That is, when I went to…
ilyakam
  • 547
  • 4
  • 11
9
votes
2 answers

Failed to install gitlab-runner: Init already exists

I installed gitlab-runner via sudo apt install gitlab-runner, configured it according to the tutorial and it worked well. Now I want to change the user of the gitlab-runner. So I stop the service with service gitlab-runner stop and try to change…
Markus Weber
  • 1,059
  • 1
  • 11
  • 24