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

How to configure Gitlab Runner to connect to Artifactory?

I am trying to set Gitlab runner to connect to Artifactory and pull images.My yml file to set RUnner looks like below : gitlabUrl: https://gitlab.bayer.com/ runnerRegistrationToken: r*******- rbac: create: false serviceAccountName:…
Laster
  • 388
  • 5
  • 18
1
vote
0 answers

GitLab api to know the target branch in a merge request

Need to know the target branch from the merge request created, i tried curl -X GET http://gitlab.com/api/v4/projects/4889/merge_requests/25?target_branch&private_token=************ getting message {"message":"404 Project Not Found"} all the time.
Kiran
  • 221
  • 1
  • 2
  • 10
1
vote
0 answers

How to connect to a artifactory repository using docker?

I have a artifactory repository set up in the address : https://artifactory.***.com/artifactory/aie-docker-dev-*****/python/3.6-strech/ It needs username : aie-dkr and password : ersghshsshsh to get logged in. Now I am trying to log in to this…
Laster
  • 388
  • 5
  • 18
1
vote
1 answer

Gitlab Runner autoscaling on AWS EC2 - failing to spawn instances

I am trying to autoscale gitlab runners on AWS EC2. Here is my config.toml: concurrent = 10 check_interval = 2 log_level = "debug" [session_server] session_timeout = 1800 [[runners]] name = "t2.micro default VPC" limit = 20 url =…
1
vote
1 answer

Auto trigger gitlab cicd when code changes in github repo

I am using Github for code and using GitLab CiCd for pipeline, Manual trigger is working fine but I am trying to auto trigger the pipeline when the new Changes is pushes to the code. Please suggest ideas.
1
vote
1 answer

How to exclude Runners from handling a job in .gitlab-ci.yml file

I'm trying to figure out how to exclude runners from handling a job in Gitlab. Currently we have 4 available Runners (lets call them A, B, C, D) available for building any project. All of our apps have a build job that just compiles the project. We…
CAMD_3441
  • 2,514
  • 2
  • 23
  • 38
1
vote
1 answer

Why my gitlab runner try to fetch repo with a different url other than which I configured?

I deployed a gitlab runner and a gitlab instance on the same server using docker, after that, I tried to run a few samples to test my runner, but in the first job it always tells me that it can't access my repository. The weird thing is that it try…
logicipher
  • 11
  • 2
1
vote
1 answer

Which Gitlab runner do I need to use?

I am making my yml file, but I keep struggeling with an error that I get. The error is: apt-get : The term 'apt-get' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a…
LardinoisJosse
  • 363
  • 2
  • 5
  • 22
1
vote
1 answer

Gitlab Runner and docker/docker-compose passing stored gitlab variables

I have stored variables in My Gitlab project I would like to pass this variables so when i build the nuxtjs app all the vars should be available like Google API keys Firebase credentials These are my files: Dockerfile FROM node:12.13.0-alpine RUN…
1
vote
0 answers

Gitlab runner - Use ECR registry as registry mirror to reduce calls to dockerhub

I want to use ECR registry as a registry mirror with gitlab-runner. How can I pass ECR registry url as registry mirror while register the runner? I have setup the login of ECR from my instance and able to push images to ECR directly so login/auth is…
Sachin
  • 2,912
  • 16
  • 25
1
vote
1 answer

Gitlab cache not uploading due to policy

I am getting the error Not uploading cache {name of branch} due to policy in my gitlab runner. My .yaml file looks like this: stages: - test - staging - publish - deploy # cache using branch name #…
ParthianShotgun
  • 602
  • 4
  • 20
1
vote
0 answers

I am receiving an error when trying to build a docker image from a project in Gitlab CI

I am new to Devops and I am trying to build a Docker image in a self-hosted gitlab instance. I have installed Gitlab from Docker image, I have installed gitlab-runner from Docker image and I can see the runner inside Gitlab and I have configured it…
SerCio
  • 105
  • 3
  • 8
1
vote
0 answers

How to store grep command that in Variables section in script variable (gitlab.ci)?

I want my job to execute grep command that in variable in Variables section. I have this gitlabci.yml: variables: PROJECT_NAME: "grep -m1 '' pom.xml | grep -oP '(?<=>).*(?=<)'" sample-job: script: - | var=? <-- here I want…
Ran Nissan
  • 92
  • 1
  • 1
  • 10
1
vote
1 answer

It' s possible to works SSH and git command in gitlab-ci?

In my gitlab-ci.yml, I have an SSH connection to another server, all my command are working except the git commands They block the script with the message: WARNING: terminal is not fully functional - (press RETURN) and my script is blocked My…
xxT3
  • 57
  • 6
1
vote
1 answer

GitLab run pipeline only if change on root files

In project's setting for merge request we have option Pipelines must succeed checked. So any merge request that does not produce pipeline cannot be merged. However, majority of files on root do not actually need a pipeline but because the condition…
Matej
  • 565
  • 2
  • 9
  • 21