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
1
vote
0 answers

Get list of changed files between two branches

My requirement is: Create a feature branch (fA) by cloning a branch (A). Change contents of some static files (JSON data) in fA and commit them (Let's say the files are fa1.json, fa2.json, fa3.json). Raise a merge request to merge fA with A. Run a…
1
vote
1 answer

Gitlab runner: cannot reclaim Docker space on Ubuntu - no space left on device

I am running a private Gitlab Group runner on EC2 (Ubuntu 18.04). It's recently and frequently started failing build jobs at various stages, but all with the same root cause: no space left on device. On logging in to the EC2 instance, I can see …
duncanhall
  • 11,035
  • 5
  • 54
  • 86
1
vote
1 answer

How to stop GitLab from evaluating $ inside variable value?

I am passing GitLab variable while running CI/CD pipeline as below. type - variable key - password value - {"a": "abc$def@pqr"} I am reading it in some GitLab pipeline stage as below. echo $password It is showing as below. {"a":"abc@pqr"} But I…
SmiP
  • 155
  • 2
  • 2
  • 16
1
vote
2 answers

How to add available shared runners to GitLab project?

Only one gitlab runner is available in my project. However, in the runner page I have multiple other runners listed. How do I add these runners to the project such that a runner will be randomly selected to execute the build? The runners are running…
Dylan Kapoor
  • 113
  • 1
  • 7
1
vote
2 answers

Disable a given manual job for previous pipelines

I have this proof-of-concept (just displaying the relevant parts) in a GitLab CI pipeline: deploy:development: stage: deploy rules: - if: $CI_COMMIT_BRANCH == "master" script: do_deploy variables: ANSIBLE_INVENTORY:…
x80486
  • 6,627
  • 5
  • 52
  • 111
1
vote
1 answer

Error deploying a cloud function ERROR: (gcloud.functions.deploy) ResponseError: status=[403], code=[Forbidden]

I'm trying to implement the deployment of a cloud function from a repository in GitLab to Google Cloud functions via Gitlab CI/CD. I'm getting the error in the title and below. ERROR: (gcloud.functions.deploy) ResponseError: status=[403],…
1
vote
1 answer

Git lab CI Running nose tests with SqlAlchemy. ERROR: Failure: TypeError (can't apply this __setattr__ to DefaultMeta object)

I am working on a Flask Application with a Postgres database. When I run nose tests locally everything works fine, but when I upload the code to GitLab this happens in my pipeline. I am using gitlab-ci. Any suggestions on how to solve this issue are…
1
vote
0 answers

How to install docker-compose along with openjdk in gitlab-ci file?

I have a spring boot application I want to test via .gitlab-ci.yml. It's set up already like this: image: openjdk:12 # services: # - docker:dind stages: - build before_script: # - apk add --update python py-pip python-dev && pip install…
notacorn
  • 3,526
  • 4
  • 30
  • 60
1
vote
1 answer

Gitlab CI: Make pipeline report as passed if more than 90% of tests pass?

I'm new to gitlab CI after years of using Jenkins. I'm trying to convert my old project over to use Gitlab CI but I'm wondering if this is possible? In Jenkins I have code that gets the number of tests and works out the percentage that passed, if…
Doctor Who
  • 1,287
  • 5
  • 25
  • 46
1
vote
0 answers

Gitlab CI - runner - how to config multiple docker executors on the same server

I'm trying to setup on the same server (D.O. cloud) two different envs based on docker, once for staging and once for production. The two envs are off course isolated and the deployment is assigned to gitlab ci/cd pipeline. My goal is to run on the…
PistolPete
  • 147
  • 2
  • 10
1
vote
0 answers

x509: certificate signed by unknown authority problem when registering a runner even with self-certificate

I have a server running on linux OS. Docker is installed along with a container on which gitlab is installed too. Everything is working fine. I intend to install and register a runner on a windows 10 to use through my CI CD process (the reason is…
1
vote
0 answers

Is it possible to use awslog with gitlab-ci autoscaling runners?

gitlab-ci autoscaling runners use docker-machine to scale. There are settings that can be passed through the runners section and the runners-machine section of config. In the runners-machine section, docker-machine driver options can be passed. Of…
1
vote
0 answers

Gitlab runner runs till timeout when doing request to aws lambda

I have a code fragment when I do HTTP request to aws labda .Everything works fine on local machine or somewhere else.When I want to run it on gitlab kubernetes runner it get stuck on that line of code till timeout. URL obj = new…
1
vote
2 answers

How to run CI job only if two files have been changed? [not one or another]

I have task to create simple GitLab CI file to run a job only if two files have been changed. In official GitLab docs I have not found nothing about this. I need to run a job only if file A changed and also file B changed.
1
vote
1 answer

How do I deploy a sapper/svelte site to Gitlab Pages?

I am trying to use gitlab pages to host my static site generated by Sapper and Svelte. I used the sapper starter app from the getting started docs: npx degit "sveltejs/sapper-template#rollup" my-app I added the .gitlab-ci.yml file as gitlab docs…