Questions tagged [gitlab-ci]

GitLab CI is a continuous integration server from GitLab.

GitLab CI integrates with your GitLab instance to build the projects and run tests on top. GitLab CI supports the Linux operating system.

GitLab CI pipelines are defined by a .gitlab-ci.yml file placed inside the project directory. For details on writing a .gitlab-ci.yml file visit https://docs.gitlab.com/ee/ci/yaml/.

More information is in https://about.gitlab.com/features/gitlab-ci-cd/.

8228 questions
3
votes
2 answers

Poetry: Max retries exceeded with url in gitlab runner

I have a simple .gitlab-ci.yml script that builds my python project. image: python:3.9.6-slim-buster variables: PIP_DEFAULT_TIMEOUT: 300 before_script: - pip install poetry==1.1.7 - poetry config virtualenvs.create false - poetry…
RoyalGoose
  • 453
  • 9
  • 24
3
votes
1 answer

gitlab pipeline failing at grep, how to fix that?

I have gitlab pipeline, where at the end of execution, there is a text file generated. In that, I am trying to search for strings with Error and want to show the job as failed in the pipeline. So. I added below part of code at the…
Jor-El
  • 187
  • 3
  • 11
3
votes
1 answer

How to fix gitlab docker no disk space left error?

I am building a docker image of an application using the GitLab ci pipeline and when the docker build command is running, I am getting this error: Error processing tar file(exit status 1): write /usr/src/app/.git/objects/pack/tmp_pack_fgZvnM: no…
Piyush Mittal
  • 325
  • 3
  • 13
3
votes
0 answers

Using Gitlab Pages to trigger another projects pipeline

I am trying to create a form on Gitlab pages (only accessible to Members) and on submit I want to trigger a pipeline of another project which will use all the form values and use it as pipeline variables. I used Hugo template to create the Gitlab…
3
votes
1 answer

How to get gitlab ci variables when merge request is merged?

I wish to get $CI_MERGE_REQUEST_TITLE and $CI_MERGE_REQUEST_PROJECT_URL when merge request is merged, however i got two empty string. I've checked the doc of gitlab and got this: So is there any other way to get the information i need after merge…
Yuki N
  • 357
  • 1
  • 10
3
votes
1 answer

How to create a Git tag in Gitlab CI without using personal credentials?

I'm using GitLab Enterprise Edition 14.6.5-ee I want to create a Git tag automatically when I merge a branch back to master. I'm fine with the actual Git commands; the problem is with the authentication: the build bot doesn't know how to…
Shaul Behr
  • 36,951
  • 69
  • 249
  • 387
3
votes
2 answers

Mounting a volume for a gitlab service

I'm trying to run a gitlab service running wiremock on my gitlab ci. I want to take my json files for configure wiremock from the repository and mount as a volume to the wiremock image that run as an service on gitlab ci .gitlab-ci.yml variables: …
3
votes
1 answer

gitlab-ci.yml - before_script - how to only run it in specific stages

I have the following gitlab-ci.yml: (only showing relevant code) stages: - unitTest - deploy-fn-development - deploy-fn-rehearse - deploy-fn-prod include: "/ci_templates/.create-variables.yml" And this is what the include file looks…
dot
  • 14,928
  • 41
  • 110
  • 218
3
votes
1 answer

Can I pass a variable from .env file into .gitlab-ci.yml

I'm quite new to CI/CD and basically I'm trying to add this job to Gitlab CI/CD that will run through the repo looking for secret leaks. It requires some API key to be passed there. I was able to directly insert this key into .gitlab-ci.yml and it…
Konstantink1
  • 575
  • 1
  • 8
  • 26
3
votes
0 answers

Go get private repo in gitlab CI

When attempting to download private go dependencies in Gitlab CI, I am given the error: go: gitlab.com/path/to/private/repo@tag: reading gitlab.com/path/to/private/repo/go.mod at revision repo/tag: git ls-remote -q origin in…
Jacob Lambert
  • 7,449
  • 8
  • 27
  • 47
3
votes
1 answer

Unable to build latest commit that pushed by pipeline during build using gitlab pipeline

I have a pipeline to bump package.json version, build angular, and release it. In the bump job I successfully increased my package version and push it into the master in the next job which is build, the pipeline didn't pull the newest version, and…
Adnan
  • 814
  • 12
  • 38
3
votes
2 answers

Gitlab CI/CD running pipeline only on tag push and only if specific files changed

I have a monorepository with a lot of things that needs to be deployed seperately. Now i wonder if it is possible to run a task only if a tag is pushed and if there are changes in a certain directory. I've tried the following: .components: only: …
3
votes
1 answer

Purpose of Gitlab "Maintenance Note" for a Runner

It's the first time I make a pipeline for CI/CD in Gitlab. At a point, when registering the runner, we can "Enter optional maintenance note for the runner". I looked for more information about it, but I found nothing in GitLab documentation except…
nboyet
  • 258
  • 4
  • 10
3
votes
1 answer

GitLab-CI: Why does a Merge Results pipeline build an unchanged result twice?

I'm trialing the "Ultimate" version of GitLab, in particular the Merge Results Pipeline feature, along with the related Merge Trains feature. I have Merge Results pipeline & Merge Trains enabled for my project, Merge Method is set to Merge Commit,…
davidA
  • 12,528
  • 9
  • 64
  • 96
3
votes
1 answer

Run NUnit tests using Docker image

I am trying to use a docker image in a Gitlab pipeline in order to run my tests. I found multiple Docker images on Docker Hub that install the NUnit console on top of Mono, but they all call that console within their entrypoint. Let's take…
Axel Köhler
  • 911
  • 1
  • 8
  • 34