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
14
votes
4 answers

Gitlab runner fails to start. This job is stuck because you don't have any active runners online with any of these tags assigned to them: ios

I have a remote runner: ci$ gitlab-runner --version Version: 12.2.0 The .gitlab-ci.yml : stages: - build - deploy variables: LANG: "en_US.UTF-8" LC_ALL: "en_US.UTF-8" build: tags: - ios stage: build script: - bundle…
Jkrist
  • 748
  • 1
  • 6
  • 24
14
votes
1 answer

How can I persist a docker image instance between stages of a GitLab pipeline?

In the last couple weeks I have been setting up my first pipeline using the public shared runners on GitLab.com for a php project in a private repository. The pipeline is pretty simple at this point, defining two stages: stages: - test -…
AdamsTips
  • 1,648
  • 17
  • 22
14
votes
2 answers

Gitlab-runner + Docker + Windows - Invalid volume specification

I'm trying to run my Gitlab CI locally using Gitlab-runner and docker before committing to make sure they work okay. But I'm having some strange issues! Unfortunately I have no choice but to use windows (I've had success in the past on Linux). Every…
Lewsmith
  • 755
  • 1
  • 6
  • 14
14
votes
1 answer

How to upgrade to a new installed gitlab runner version?

I try to update my single gitlab runner from 11.0 to 11.3.1 and followed the instruction on the gitlab doc. sudo apt-get install gitlab-runner will confirm that I have the new version installed: gitlab-runner is already the newest version…
Jan S.
  • 994
  • 1
  • 9
  • 21
14
votes
2 answers

Invert a test in .gitlab-ci.yml

I would like to prevent TODO comments (or other problematic strings) from being checked in with a gitlab CI test rule. I added the last line here: .job_template: &template_test image: python:3.6-stretch tags: - python # ... stages: -…
phihag
  • 278,196
  • 72
  • 453
  • 469
14
votes
4 answers

GitLab CI secret variables for Gradle publish

How to setup Gradle publish task user credentials with GitLab CI secret variables? I am using gradle maven publish plugin, and here is snippet from build.gradle repositories { maven { credentials { username artifactUser …
Ruwanka De Silva
  • 3,555
  • 6
  • 35
  • 51
14
votes
1 answer

Difference between projects and subgroups in GitLab

I want to understand the difference between projects and subgroups in GitLab. Please help me on understanding the above.
Santhosh Santhu
  • 153
  • 1
  • 1
  • 9
14
votes
2 answers

Gitlab CI runner job failed exit status 1 when changing directory

I am using my personal machine as a runner for an iOS project using Fastlane. This is mainly due to the fact that shared runners aren't setup for iOS as they don't have Xcode installed. My jobs fail immediately when changing directory. It's a shell…
nickjf89
  • 458
  • 1
  • 7
  • 18
14
votes
1 answer

gitlab-runner errors on local windows

I am trying to generate my work in progress hugo website locally. It works fine with gitlab CI. I installed docker and the gitlab runner service. Then using the guide here I figured that I am supposed to do gitlab-runner exec docker pages. But that…
Jan Stanstrup
  • 1,152
  • 11
  • 28
14
votes
3 answers

Can you set Gitlab CI stage so other stages don't wait for it to finish?

Let's say I have these stages defined in .gitlab-ci.yml: stages: - build - analysis - tests - deploy - post-deploy Since analysis takes a lot of time and I don't really care about the result (I also have allow_failure: true set)…
WellBloud
  • 927
  • 4
  • 13
  • 29
14
votes
2 answers

gitlab ci cache/keep golang packages between stages

I use gitlab-ci to test, compile and deploy a small golang application but the problem is that the stages take longer than necessary because they have to fetch all of the dependencies every time. How can I keep the golang dependencies between two…
irgendwr
  • 537
  • 5
  • 18
14
votes
2 answers

How to restrict runners to a specific branch and lock the .gitlab-ci.yml from changes?

Right now, anyone that creates a branch in my project and adds a .gitlab-ci.yml file to it, can execute commands on my server using the runner. How can I make it so that only masters or owners can upload CI config files and make changes to them? I'm…
14
votes
2 answers

Gitlab docker executor - cache image after before_script

In gitlab-ci there's an option in the .gitlab-ci.yml file to execute commands before any of the actual script runs, called before_script. .gitlab-ci.yml examples illustrate installing ancillary programs here. However, what I've noticed is that these…
Erik
  • 6,470
  • 5
  • 36
  • 37
13
votes
1 answer

How to use rule in gitlab-ci

I'm trying to build a job that can be conditionally executed depends on whether the files or subdirectories in WebClient is modified in develop branch, using rules. If there are changes found in the develop branch only, then a pipeline will be…
13
votes
3 answers

GitLab CI Read File from Other Repository

In the setup that I have, there are two repositories in GitLab, one of which has a version file that the other needs for naming the artifact produced by its CI/CD pipeline. Right now, I'm just cloning the entire other repository to access that…
m_callens
  • 6,100
  • 8
  • 32
  • 54