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

Gitlab CI: is it possible to access artifacts from previous jobs that stores them in the same path?

How do Gitlab CI behaves, if there are 2 jobs that have artifacts in the same path, and both jobs are the dependency of the same job? job1: stage: stage1 artifacts: paths: - samedir job2: stage: stage1 artifacts: paths: -…
9ilsdx 9rvj 0lo
  • 7,955
  • 10
  • 38
  • 77
3
votes
0 answers

Downstream project in GitLab not able to access the artifacts from the upstream project

Upstream project .gitlab-ci.yml image: node:10 stages: - build - build-child cache: paths: - node_modules/ project-build: stage: build only: - master script: - npm install - npm run build …
shyam
  • 59
  • 4
3
votes
1 answer

How to access previous GitLab CI artifacts, process them and save file in "main" repository?

My application for this is to visualize the performance of my software. Therefore I briefly describe what I'm doing and where I'm stuck. I have my source code in GitLab Compile and run some tests in the CI for each commit Measure the time it took…
3
votes
0 answers

How to release a package with python-specific wheels to the GitLab Package Registry and twine

I try to use GitLab CI to automate the package release process and store the releases in GitLab Package Registry. I have followed the documentation: https://docs.gitlab.com/ee/user/packages/pypi_repository/ and managed to setup the CI so it builds…
3
votes
1 answer

How to pass a predefined json env variable to a gitlab job?

I can't figure out how to pass in to Gitlab CI some env variables in a json file, specifically the one I use with cypress.io. Gitlab CI certainly has a section where you can specify env vars in the form of a variable or a file. However, Gitlab CI…
fingia
  • 504
  • 7
  • 20
3
votes
2 answers

WARNING: Uploading artifacts as "archive" to coordinator... failed id=1515 responseStatus=500 Internal Server Error status=500

I'm using Gitlab self server community version ci/cd function, It has been running well, But suddenly one day,All the projects in the gitlab/cicd has failed, it mentions below errors: Uploading artifacts for successful job Uploading…
Kris
  • 151
  • 1
  • 2
  • 12
3
votes
0 answers

How do I correctly configure Gitlab Runners with S3/Minio as a distributed cache?

I am running Gitlab Runners on Openshift, and they are picking up jobs correctly. However, when running the job, the cache should be configured to use s3 caches, with a local minio service serving as s3 for the distributed cache. However, when…
A McBride
  • 405
  • 3
  • 9
3
votes
1 answer

Accessing postgresql in review stage of Gitlab CI/CD

How do I import data to the postgresql server during the Review stage (for a review app) during the Gitlab CI/CD process? I am currently using Gitlab CI/CD to deploy to AWS. Postgresql is used throughout the build stages. During the build stages,…
d-cubed
  • 1,034
  • 5
  • 30
  • 58
3
votes
1 answer

gitlab-ci: Is there a way to visualize or simulate pipelines for different branch/tag names?

We have a fairly complex .gitlab-ci.yml configuration. I know about the new gitlab pipeline editor, but I can't find a way to 'simulate' what jobs get picked by my rules depending on the branch name, tag, etc. On our jobs, we have a $PIPELINE custom…
3
votes
0 answers

Sphinx code documentation build failing in GitLab CI/CD

I am trying to create some documentation for some code written, specifically for a file called pipeline.py. Now I am using GitLab to host the documentation online. There are only two parts of the documentation, a step-by-step-guide and a code…
3
votes
1 answer

Running lambdas in localstack in gitlab-ci

So I have localstack running locally (on my laptop) and can deploy serverless app to it and then invoke a Lambda. However, I am really struggling with doing the same thing in gitlab-ci. This is the relevant part of .gitlab-ci.yml: integration-test: …
Daniel Gruszczyk
  • 5,379
  • 8
  • 47
  • 86
3
votes
1 answer

GitLab CI/CD: is it possible to store multiple CI/CD variables in one file?

I'm using GitLab CI/CD, and I store the secrets variables of the process in custom CI/CD variables, as documented here. It started small, and with only a few variables, using the UI to define the variables is ok. But now, my project have gone…
scandel
  • 1,692
  • 3
  • 20
  • 39
3
votes
1 answer

How to connect to openVpn in gitlab pipeline for a cypress project

I am working on a cypress project. I have set up a pipeline in GitLab. My application only works over private network connected via Open VPN. Can some one guide me how to add that in .gitlab-ci.yml file ??? My .gitlab-ci.yml is : image:…
3
votes
0 answers

Cache node module library with plugin frontend-maven-plugin

I have a react project that I configured on Gitlab CICD Pipeline (with docker). In my pipeline, I have a step for create the package that use frontend-maven-plugin plugin (Packaging) Each time I run the pipeline all artifact are download. I want to…
Broshet
  • 133
  • 12
3
votes
0 answers

GitLab CI Trigger on Merge Request merged with available environment variables

I have a GitLab Pipeline with following trigger rule rules: - if: $CI_MERGE_REQUEST_IID - if: '$CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "master"' Currently this runs on every commit which is part of a merge request to master. I would like…
isADon
  • 3,433
  • 11
  • 35
  • 49