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

Cannot apply the kubernetes deployment using Gitlab CI CD

I am trying to create a Gitlab CI CD pipeline to build my java spring project and deploy it to amazon eks. I have followed instruction as in this article. This is the gitlab-ci-cd.yml file to apply the deployment script. k8s-deploy-dev: image:…
1
vote
0 answers

Artifact not available in script

My pipeline has 4 stages build - Should only happen on merge requests test - Should only happen on merge requests report - Should only happen on merge into master release - Should only happen on merge into master BUILD: During the build phase I…
Zander Rootman
  • 2,178
  • 2
  • 17
  • 29
1
vote
0 answers

Gitlab removes & re-installs node_modules for every job

We use GitLab CI for our project. Our build stage is currently taking close to 13 minutes to complete because node_modules are always removed, downloaded & npm installed again. Also the node_modules is quite big (close to 200 MB). We've already set…
YoganA
  • 41
  • 4
1
vote
0 answers

The difference between running a docker image form a gitlab-runner or directly

I need a customised maven docker image to execute my tests. It requires me to tweak the time zone and add true type fonts. I created my own maven image FROM maven:3.6.3-openjdk-8 I am using the gitlab/gitlab-ce:latest locally on my Mac and executing…
Haim Raman
  • 11,508
  • 6
  • 44
  • 70
1
vote
1 answer

command to test all unit tests for java gitlab CI/CD

I'm trying to figure out how to use gitlab CI/CD with my maven java project and the yml-file. So first I tried to find the command, for example in javascript you have npm run test and it'll run the tests. But I can't seem to find the equivalent. My…
zhrgci
  • 584
  • 1
  • 6
  • 25
1
vote
1 answer

How to split the variable in Gitlab pipline (.gitlab-ci.yml)

I have a branch name, for example, release-1.1.3, how I can split and extract the version by writing some logic in gitlab-ci file. Is there some method available for it? before_script export BRANCH_NAME=$CI_COMMIT_REF_NAME // here I want to do…
Anand Kumar
  • 363
  • 1
  • 5
  • 15
1
vote
1 answer

Docker Update Code in Volume with Gitlab CI / CD

i am learning docker and i just encountered a problem i cannot solve. I want to update source code in my docker swarm nodes when i make changes and push them. I just have a index php which echos "Hello World" and shows phpinfo. I am using data…
martin
  • 135
  • 5
  • 12
1
vote
1 answer

maven:latest image from gitlab-runner with docker executer "Failed to connect to gitlab Connection refused" using docker-compose

I am using the gitlab/gitlab-ce:latest docker image on a Mac to build some custom gitlab runner that will span a custom maven image. At the moment I am having an issue to setup the basic environment using docker compose See my docker-compose.yml…
Haim Raman
  • 11,508
  • 6
  • 44
  • 70
1
vote
0 answers

Set unique environment variables for docker container services in gitlab-ci

From the Gitlab Runner docs: Note: Unlike legacy container links used in other network modes, Docker environment variables will Not be shared across the containers. How do you set up the .gitlab-ci.yml file to have unique enviroment variables for…
theEpsilon
  • 1,800
  • 17
  • 30
1
vote
0 answers

Gitlab Runner Docker container can't connect to Prometheus

If I set listen address in config.toml: listen_address = ":9090" I get the error message when I try to bring it up with just compose, outside of docker swarm. gitlab-runner_1 | FATAL: Failed to create listener for…
Mark
  • 348
  • 4
  • 15
1
vote
1 answer

Curl Upload-File inside Shell Runner

I am trying to upload a single file via curl from within a gitlab-shell-runner. Basically I need to use this command: curl --user --insecure --upload-file https://example.com Following error is shown: Invoke-WebRequest : A…
J-T
  • 65
  • 8
1
vote
1 answer

Docker GitLab Runner cant load submodules

I have a GitLab Runner that runs in Docker. My project has submodules but when I try and build the project I get errors "fatal: could not read Username for 'https://gitlab.com': No such device or address" "fatal: clone of…
Display Name
  • 1,025
  • 2
  • 15
  • 34
1
vote
1 answer

Fetch an active branch on a new machine via Gitlab GUI

I worked on some code on Machine A. Now, it is committed to the respective branch but it is NOT merged into master yet. Now, I want to be able to clone that branch (is the term clone the branch even correct?) on Machine B and use it there. I know…
bit_by_bit
  • 337
  • 2
  • 14
1
vote
0 answers

Docker volume file binding through gitlab executor fails

I'm having a problem mounting a file through volume using docker-compose. When mounting on local machine there's no errors occuring, but when mounting is happening on gitlab executor the file mount is failing. If the path is replaced as folder the…
CacheGhost
  • 159
  • 15
1
vote
1 answer

Running parallel pipelines on different branches

These are two branches of a project www.example.com: branch logan and branch bella. The 33rd pipeline is the logan branch of www.example.com, and the 34rd pipeline is the bella branch of www.example.com. When the 33rd pipeline is not over, the…
Wei Yu
  • 97
  • 3
  • 12
1 2 3
99
100