gitlab-ci-runner Questions

1

I am using GitLab CI/CD. When the jobs get failed in a pipeline i can retry them manually. Once i retry the job, is there anyway someone can identify job is retried? Particularly is there any CI va...
Univalve asked 23/11, 2022 at 14:8

2

I`m trying to migrate our application code from Jenkins to Gitlab. Here, I would like to play around variables specific to branch. For ex: 1) Master branch code will be deployed to production 2) ...
Foreskin asked 12/11, 2019 at 10:15

2

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 off...
Podium asked 20/6, 2020 at 20:1

4

Solved

My GitLab pipelines execute automatically on every push, I want to manually run pipeline and not on every push. Pipeline docs: https://docs.gitlab.com/ee/ci/yaml/#workflowrules I tried this in .git...
Outport asked 27/10, 2020 at 15:3

1

I'm looking for a way to run a "cleanup" job/pipeline/etc when a GitLab merge request is closed (either merged or not). The issue is this - we create a feature deployment on our cluster anytime a...
Orlandoorlanta asked 26/7, 2019 at 17:5

4

I am new to this gitlab world. I have one private project. I am able to publish the package using command prompt. My .npmrc file @ui-practice:registry=https://gitlab.MyCompany.com/api/v4/packages/n...
Cudbear asked 21/4, 2022 at 10:41

1

I'm trying to use Kaniko to build/push my docker images to GitLab Container Registry (GitLab self-managed 15.3.0, with docker runner): https://docs.gitlab.com/ee/ci/docker/using_kaniko.html#buildin...
Sharkey asked 29/9, 2022 at 17:50

4

Solved

I have a remote runner: ci$ gitlab-runner --version Version: 12.2.0 The .gitlab-ci.yml : stages: - build - deploy variables: LANG: "en_US.UTF-8" LC_ALL: "en_US.UTF-8" build: tags: - ...
Ramey asked 7/2, 2020 at 8:25

2

Solved

I have a kubernetes cluster with a gitlab-runner 10.3.0 and kubernetes executor. There is no cache_dir defined in the runner's config.toml-file. Note that this is different that a docker executor, ...
Klutz asked 7/2, 2018 at 18:13

1

Given two stages, with two jobs in the first, and one job in the second stage: stages: - a - b foo: stage: a when: manual faa: stage: a when: manual bar: stage: b when: i_dont_know I'd ...
Trophy asked 26/1, 2021 at 8:31

5

I have a private repo on gitlab.com. I have already setup a CI/CD pipeline using gitlab shared runners. On code push, a docker image is built, login to gitlab private docker registry and push the i...
Weighted asked 22/7, 2019 at 8:57

7

Solved

Our CI/CD pipelines stopped working on the "ng test" job and fails with the following error message: [karma-server]: TypeError: Cannot read property 'range' of undefined at handleRangeHe...
Palpitant asked 9/11, 2020 at 13:33

1

Solved

I am looking for a way to clean up the runner after a job has been cancelled in GitLab. The reason is we often have to cancel running jobs because the runner is sometimes stuck in the test pipeline...

3

Solved

I have a secret var : But when I do - echo %MySecretVar%, runner displays foo only How can i escape special chars like ! in Gitlab Secret Vars ?
Marjoram asked 19/2, 2018 at 16:51

3

Solved

I can't find out how to access variables in a build-script provided by the gitlab-ci.yml-file. I have tried to declare variables in two ways: Private Variables in the Web-Interface of GitLab CI ...
Soinski asked 22/7, 2015 at 11:6

4

I have a .gitlab-ci.yml file. Its creating some docker images and pushing it to AWS ECR. When I am running curl command to push some artifacts to remote repository it says curl: not found. I am al...
Cinque asked 4/9, 2017 at 5:58

3

Solved

I'm building android on Gitlab CI and downloading dependencies each time is annoying. I tried caching: $HOME/.gradle/ $HOME/.gradle/caches/ $GRADLE_HOME/caches/ $HOME/.m2/ .gradle/ build/ app/buil...
Hafer asked 8/12, 2015 at 17:21

6

The following are in my .gitlab-ci.yml stages: - build variables: DOCKER_HOST: tcp://docker:2375/ DOCKER_DRIVER: overlay2 services: - docker:dind build-image: image: docker:stable stage: ...
Negrophobe asked 13/8, 2018 at 2:53

2

Solved

Installed a brand new Gitlab CE 13.9.1 on a Ubuntu Server 20.04.2.0. This is the pipeline image: node:latest before_script: - apt-get update -qq stages: - install install: stage: install scr...
Airspeed asked 27/2, 2021 at 11:43

2

Solved

I have a GitLab CI docker runner to execute my automated tests when I push. One of my tests requires a custom entry in /etc/hosts. I can't figure out how to get the entry into that file. Here's ba...
Prophet asked 29/1, 2018 at 16:38

2

Solved

I'm new to Gitlab Pipelines and want to set up one for one of my Python projects. I'm using the docker GitLab-runner container with this Configuration file: version: '3' services: runner: contain...
Newhall asked 25/5, 2022 at 17:4

1

Solved

Suppose I have repository on Gitlab and following deploying scheme: Setup docker and gitlab-runner with docker executor on host server. In .gitlab-ci.yml setup docker-compose to build and up my se...
Gastelum asked 19/6, 2022 at 21:43

6

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 s...
Dolora asked 29/8, 2016 at 14:13

4

I'm running a gitlab job and in the job I'm trying to unset certain variables set in CI / CD Settings. For example, I have SOME_VARIABLE set to <some_value> Then, in the job definition, I'm t...
Malkamalkah asked 16/3, 2019 at 8:27

3

I am using gitlab-runner with Docker on my MacBook Pro. I'm using gitlab.com to host my git repositories. I have configured one repository to execute a pipeline whenever a commit has been pushed to...
Renunciation asked 3/9, 2019 at 23:26

© 2022 - 2024 — McMap. All rights reserved.