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
28
votes
6 answers

How do I enable cloning over SSH for a Gitlab runner?

I am having some trouble cloning large repositories over HTTP on my Windows Gitlab runner. I've tried several methods to do shallow clones or disable clone compression. Still no luck. Cloning the same repository over SSH works great as a temporary…
28
votes
4 answers

gitlab 8.2.1, How to use cache in .gitlab-ci.yml

I'm trying to use 'cache' in .gitlab-ci.yml (http://doc.gitlab.com/ce/ci/yaml/README.html#cache). My gitlab version is 8.2.1 and my Runner is: $ docker exec -it gitlab-runner gitlab-runner -v gitlab-runner version 0.7.2 (998cf5d) So according to…
delanne
  • 420
  • 1
  • 4
  • 12
27
votes
5 answers

How to solve the "remote: You are not allowed to upload code." error on GitLab CI/CD job?

I am currently trying to use GitLab to run a CI/CD job that runs a Python file that makes changes to a particular repository and then commits and pushes those changes to master. I also have a role of Master in the repository. It appears that all git…
Chloe Bennett
  • 901
  • 2
  • 10
  • 23
27
votes
1 answer

Gitlab-Ci: How could I share data between jobs

I want to share a file between two jobs and modify it if there are changed files. The python script compare the cache.json file with changes and modify the cahce file sometimes. .gitlab-ci.yaml: image: ubuntu stages: - test cache: key:…
test42
  • 271
  • 1
  • 3
  • 5
27
votes
9 answers

Gitlab runner docker Could not resolve host

Im using 2 containers on my Ubuntu OS: Gitlab-ce and gitlab-runner Containers names are: gitlab_gitlab_1 and gitlab_gitlab-runner_1 I access to my gitlab app via gitlab.localhost.com:801 I register successfully a runner with this command: docker…
fliim
  • 2,059
  • 4
  • 18
  • 31
27
votes
3 answers

Build .NET solution using GitLab CI Pipeline

I have a solution with several .NET projects in it. I use GitLab, not self-hosted, for version control and would like to start using their CI tools as well. I have added the following .gitlab-ci.yml file to my root: stages: - build -…
Will Custode
  • 4,576
  • 3
  • 26
  • 51
27
votes
2 answers

Use GitLab API from a GitLabCI build script

I have a GitLab CI build script like this: create release: stage: deploy tags: - basic only: - tags script: - GITLOG=$(echo "# Changes Log"; git log `git tag | tail -2 | head -1`..${CI_BUILD_TAG} --pretty=format:" - %s") -…
ETL
  • 9,281
  • 3
  • 29
  • 28
26
votes
2 answers

Gitlab ci artifacts not found

. Hello, can someone tell me, why gitlab cannot find my artifacts? Logfile: $ ls -la /build/Project*.zip -rw-r--r-- 1 root root 1641 Nov 25 21:18 /build/Project-1.0.zip Uploading artifacts... WARNING: /build/Project*.zip: no matching files CI…
K. Frank
  • 1,325
  • 1
  • 10
  • 19
26
votes
2 answers

How are Gitlab CI service ports exposed?

I have a .gitlab-ci.yml file: integration_test: services: - name: registry.gitlab.com/group/project/testmailserver:1.1 alias: "mail.email" stage: test script: - ./gradlew -g /cache/.gradle --stacktrace --info integrationTest The…
SLOBY
  • 1,007
  • 2
  • 10
  • 24
26
votes
2 answers

Deploy every build to a server using Gitlab CI

I've set up my own Gitlab server with one project and a Gitlab runner configured for it. I'm new to continuous integration server and therefore don't know how to accomplish the following. Every time I commit to the master branch of my project I…
Hedge
  • 16,142
  • 42
  • 141
  • 246
25
votes
4 answers

Gitlab run a pipeline job when a merge request is merged

I have a gitlab pipeline where there are two stages, one is build and the other one is deploy. The build stage is run when a commit is made. I want a way to run the deploy job when the merge request is merged to master. I tried several things but no…
Eats
  • 477
  • 1
  • 6
  • 13
25
votes
2 answers

GitLab CI: Two independent scheduled jobs

Consider the following gilab-ci.yml script: stages: - build_for_ui_automation - independent_job variables: LC_ALL: "en_US.UTF-8" LANG: "en_US.UTF-8" before_script: - gem install bundler - bundle install build_for_ui_automation: …
Richard Topchii
  • 7,075
  • 8
  • 48
  • 115
24
votes
2 answers

Is there an AND option on the rules condition in .gitlab-ci.yml?

I want to create some nested conditions: i need this pipeline to work when it is a merge or merge request and with certain name start "feature". So, is there an AND condition in the 'only' option for jobs?
Claudio Torres
  • 355
  • 1
  • 2
  • 6
24
votes
5 answers

Un-register gitlab-runner on Ubuntu not working

I'm trying to unregister gitlab-runner on EC2 instance (Ubuntu machine) with the following command: sudo gitlab-runner --debug unregister --token [RUNNER-TOKEN] --url [RUNNER-URL] and I'm getting following error: Runtime platform …
ImFarhad
  • 2,669
  • 2
  • 18
  • 30
24
votes
4 answers

How to solve a stuck Gitlab CI pipeline?

We've been using Gitlab CI for some months, and in the last 1 week, we've been using the specific runner installed on a VPS. Currently, we are using "shell" as the executor. Today our pipeline got stuck out of sudden, when we looked into the server…
Budianto IP
  • 1,118
  • 1
  • 13
  • 27