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

Pass data between Gitlab pipelines

I need to pass the folders generated in one pipeline to the next pipeline in Gitlab CI. What are the possible ways? Is it possible through just Artifacts? Can we only achieve it through cache? If by Cache, is there any expiry that we can set in…
3
votes
1 answer

Testing in Gitlab CI/CD with different dependacies versions

I'm currently developing a (Laravel) package on Gitlab, and i want to automate testing using its CI/CD pipeline. The problem I already know ho to set up a pipeline in Gitlab, but what i want to achieve is to automate testing against different…
fudo
  • 2,254
  • 4
  • 22
  • 44
3
votes
1 answer

Trigger action/job if pipeline job/stage fails

I have a GitLab pipeline one of whose jobs writes some content into a file, a simple .txt file, and pushes a Git tag. After this job, other jobs are executed. I want to trigger an automatic action/job or something that undoes the .txt file writing…
EM90
  • 552
  • 1
  • 8
  • 22
3
votes
1 answer

Gitlab CI - Android Sdk tools?

I use this Link for add gitlab CI in my android project. The CI work but I don't understand this part : ANDROID_SDK_TOOLS: "4333796" In the tutorial, android SDK tool is the last version available. ANDROID_SDK_TOOLS is a little funny. It's what…
qsgfesqk
  • 43
  • 2
3
votes
2 answers

Gitlab pipeline kick in even if it should after merge request approved

I have created a project in gitlab and have the following entry in the gitlab.yaml file. After I push any changes in the project, the pipeline kicks in. Is it possible to change this so the pipeline stats only after the user submits a merge request…
user1695083
  • 41
  • 1
  • 3
3
votes
1 answer

Spring Boot Maven Plugin > 2.4.x build image publish on GitLab registry

I'm currently developing a GitLab CI/CD pipeline which compiles, tests and builds a standard Spring Boot application. I want to package it in a docker image and publish that to the GitLab registry to use it later on. Spring Boot recently added the…
Mattizin
  • 350
  • 1
  • 6
  • 19
3
votes
1 answer

How to pass ConfigMap value as env variable when using default helm charts in gitlab autodevops

I am a newbie, just getting started with out of the box magic of auto devops by gitlab. I have a very basic Golang Microservice that I am able to deploy - and it uses the default helm charts out of the box (creates namespace, service, deployment,…
3
votes
0 answers

Push to the repository from CI

I am fairly new to CI and just wanted to start with an automated changelog system. I had for some time a really good progress, until the point I wanted to push the changes back to the repository. I tried to get various examples like most of this but…
MaKaNu
  • 762
  • 8
  • 25
3
votes
2 answers

GitLab PHP docker image - the requested PHP extension gd is missing from your system

I'm writing some unit tests for our application and we're using GitLab CI with GitLab Runner v11.11.1 and using Docker executor with image php:7.1. When running composer install (our composer version is 1.10.17) I get the following error on a few…
dokgu
  • 4,957
  • 3
  • 39
  • 77
3
votes
4 answers

Gitlab Pipeline Job Token Fail

I have Gitlab Community and I am trying to integrate it with SonarQube. The Sonar is hosted on Azure VM Ubuntu in a Docker container. The problem is that I really don't know how to write gitlab-ci.yml. I already try sonar, but locally hosted on a…
user13821287
3
votes
1 answer

Using external git-lfs server in gitlab-ci on a windows gitlab runner?

I am trying to use an external git-lfs server for a job running on a windows gitlab runner (which is under my control). The git-lfs server used offers only HTTPS authentication (SSH is not an option). For security reasons, I don't want to commit my…
Étienne
  • 4,773
  • 2
  • 33
  • 58
3
votes
1 answer

Gitlab-CI difference between multiline script and multiple scripts

Fairly new to GitLab-CI, I'm trying to deploy via Helm on a Kubernetes cluster. I have this: image: docker:stable deploy: stage: deploy image: name: alpine/helm:3.4.1 script: - echo "Deploying to production" - helm list…
Moshe
  • 4,635
  • 6
  • 32
  • 57
3
votes
1 answer

django.core.exceptions.ImproperlyConfigure: Could not find the GDAL CentOS

Setting up Continuous Integration on Gitlab with the below yaml default: image: centos:centos8 stages: - build - test - staging - production variables: POSTGRES_DB: $PROJECT_DB_NAME POSTGRES_USER: $PROJECT_DB_USER …
spaceofmiah
  • 238
  • 2
  • 17
3
votes
1 answer

Test a self-signed domain from selenium hub with Python

I have a gitlab ci with selenium test, and everything is perfect when I try to test a site vith valid certificate. But when I try to test a site with self-signed cert, error occured. Main points in gitlab-ci: services: - name:…
Gspr
  • 33
  • 2
3
votes
1 answer

Setup Robot Framework pipeline with GitLab CI / CD

So i have written my automated Robot Framework tests and they are in a GitLab repo. I want to run these automatically once a day. Is this possible? Do I need a .gitlab-ci.yml file for it? (if yes what do I put in it?)
1 2 3
99
100