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

Is it possible to deploy GItLab Pages without CI/CD?

We have a locally deployed instance of Gitlab, where at the time we cannot afford to have a GitLab Runner to run CI/CD pipelines. Is it possible to use GitLab Pages without CI/CD? E.g. is it possible to manually prepare the HTML-content, put it in…
roskoN
  • 333
  • 4
  • 12
11
votes
6 answers

gitlab-runner:Pipeling is pending infinitely

I install a Specific Runners,and the status is actived. my .gitlab-ci.ymi file code: stages: - build build_maven: stage: build only: - master script: - echo "hello CI/CD" tags: - vue-dev-pub when I push the master branch,the…
Perhaps
  • 155
  • 1
  • 1
  • 7
11
votes
2 answers

GitLab runner can not resolve host when running pipeline

I have a dockerized GitLab and GitLab Runner installation, with following docker-compose.yml: version: "3" services: gitlab: image: gitlab/gitlab-ee:latest container_name: gitlab restart: always hostname: gitlab ports: -…
blueFast
  • 41,341
  • 63
  • 198
  • 344
11
votes
1 answer

Changing GitLab CI Multirunner executor after initial configuration

I am reading through GitLab CI Multirunner documentation where it walks one through how to set up a GitLab CI Multirunner executor, but I can't seem to find anything about changing the executor once initially set, either in the docs or searching…
Tomáš Hübelbauer
  • 9,179
  • 14
  • 63
  • 125
11
votes
7 answers

Global environment variables for gitlab CI runner

I am working to set up a gitlab runner for multiple projects, and we want to be able to set up environment variables for all of the projects. I tried to set global variables in the .bashrc for both the gitlab-runner and root users but it did not…
TristanV
  • 111
  • 1
  • 1
  • 4
11
votes
2 answers

How to use Cake.net with Gitlab CI?

I have an ASP.NET MVC application. I am trying to implement CI and CD using Gitlab and Cake.net. In order to test more easily, I installed Gitlab CI multi runner on my machine. I registered it with 'shell' as executor. I am trying to execute the…
Marius Stănescu
  • 3,603
  • 2
  • 35
  • 49
11
votes
4 answers

Gitlab CI runner configuration with cache on docker

I can't seem to get the cache or the artifacts to carry over between jobs in gitlab CI. I suspect it's something to do with my configuration, but I'm not sure what. I'm running gitlab and gitlab-ci-multirunner, both in docker, using the following…
aquavitae
  • 17,414
  • 11
  • 63
  • 106
11
votes
1 answer

Running docker-compose on a docker gitlab-ci-multi-runner

I have a project running on Docker with docker-compose for dev environment. I want to get it running on GitLabCI with a gitlab-ci-multi-runner "Docker mode" instance. Here is my .gitlab-ci.yml file: image: soullivaneuh/docker-bash before_script: …
Soullivaneuh
  • 3,553
  • 3
  • 37
  • 71
11
votes
5 answers

GitLab runner unable to clone repository via http

I have the latest docker image of GitLab running in a test environment and I'm running into an issue with the GitLab runner. It's unable to clone via the HTTP link, yielding the following message: Running on runner-bd27e50b-project-1-concurrent-0…
Anthony
  • 2,256
  • 2
  • 20
  • 36
10
votes
1 answer

gitlab runners artifacts: subfolders and files without parent folder in zip

I have a folder named "public" containing subfolders (with subfolders and files, and so on) and files like: └ public └ folder1 └ file1.txt └ folder2 p_file1.txt p_file2.txt These folders and files should be returned as artifact from…
AnnetteC
  • 490
  • 2
  • 5
  • 20
10
votes
3 answers

GitLab CI/CD: This job does not have a trace. & No job log

I am new to GitLab CI/CD's and I wonder what my pipeline is doing. The syntax is correct but the job keeps failing, but I don't know why and would like to check the trace. When viewing the job trace it says 'This job does not have a trace'. The same…
4ces
  • 185
  • 1
  • 12
10
votes
1 answer

GitLab CI - Reuse rules with !reference tag

According to GitLab's CI documentation about !reference tag, it says: Use the !reference custom YAML tag to select keyword configuration from other job sections and reuse it in the current section. Unlike YAML anchors, you can use !reference tags…
psergiocf
  • 1,493
  • 2
  • 20
  • 27
10
votes
1 answer

Gitlab CI :- How to create the Shared Runner in Gitlab which does not depend on the any system?

I have study about the Gitlab Runner which are two types one is Custom Runner and another one is Shared Runner. I have used the Custom Runner like docker in the Gitlab for creating the apk of the Android. And It works fine and create the build which…
Ravindra Kushwaha
  • 7,846
  • 14
  • 53
  • 103
10
votes
1 answer

Gitlab CI pipeline to run jobs parallel in same stage and invoke/trigger other jobs of same stage

I am trying to create a automation pipeline for data load. I have a scenario as explained below: stages - stage1 - stage2 job1: stage: stage1 script: - echo "stage 1 job 1" job2: stage: stage1 script: - echo "stage 1 job…
10
votes
2 answers

Convenient way to cache Node.js dependencies in GitLab CI/CD

I'm using npm to install Node.js dependencies in my project. I want to cache Node.js packages (node_modules) globally to speed up jobs in pipelines when deploying to Heroku. An example from the official docs of GitLab: cache: key:…
N'Bayramberdiyev
  • 5,936
  • 7
  • 27
  • 47