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
0 answers

Gitlab-runner in docker - How to run as non root

I am trying to automate ios build and deployment using fastlane and gitlab ci. My gitlab-runner installed in a docker container. Since runner in docker container runs as root (sudo), pod install gets failed as it does not allow to execute as root…
Monu
  • 55
  • 1
  • 5
3
votes
2 answers

How to spin up a new EC2 instance within a gitlab CI/CD pipeline

I have a scenario where I need to spin up a new EC2 instance and deploy docker image inside the ec2 and run some tests. After all the tests have been executed I need to remove the ec2 instance. How can I do this using gitlab ci/cd. I am pretty new…
Kavin404
  • 959
  • 2
  • 11
  • 18
3
votes
1 answer

How to solve the problem Host key verification failed

I created a .gitlab-ci.yml file. the project is already in the remote server. I created gitlab-runner in my remote server and I chose the shell option. my file .gitlab-ci.yml just makes the update for the project i.e. (we will do "git pull origin…
zaki tutu
  • 595
  • 3
  • 7
  • 16
3
votes
0 answers

Maven/gradle release-plugin authentication in gitlab ci

I am using https://github.com/researchgate/gradle-release with the below config in my ci on Gitlab: release: image: gradle:jdk11 stage: release script: - git checkout master - ./gradlew release only: - master when: manual And it complains that…
BlackLog
  • 301
  • 1
  • 5
  • 17
3
votes
2 answers

Make SonarQube external job conditionally failing a pipeline

Recently our SonarQube server was upgraded and gave us the opportunity to integrate it with GitLab, based on the configuration mentioned here: https://docs.sonarqube.org/latest/analysis/gitlab-cicd/ Now the problem we are experiencing is that the…
akortex
  • 5,067
  • 2
  • 25
  • 57
3
votes
1 answer

Gitlab CI SAST using artifacts of gl-sast-report.json report in following stage , with 2 different scanners used

I would like to use the artifacts generated from the SAST stage in a subsequent stage of my CI . My project has 2 different file types , .py and .js stages: - test - upload include: - template: Security/SAST.gitlab-ci.yml sast: stage: test…
jchan
  • 51
  • 5
3
votes
0 answers

How does a docker container have access to my Gitlab project from within CI/CD?

I'm trying to understand how docker containers can access the repository of the project they are run in as part of the pipeline. Specifically, in .gitlab-ci.yml file I can, for example, copy files from the root of my project into the docker…
caffein
  • 303
  • 1
  • 10
3
votes
0 answers

Is there a better way to notify Slack about the artifacts created by GitLab-CI?

I used the following code to notify Slack about new artifacts created by GitLab-CI, which is not very nice, and it has some limitations. Notify slack: stage: notify tags: - docker variables: DATA:…
Federico Bellini
  • 365
  • 1
  • 7
  • 18
3
votes
1 answer

Gitlab CI/CD deploy Django Docker container

I have been tring to setup gitlab ci/cd config for a django project which will be deployed as a container. This is what i have tried: CI/CD - image: creatiwww/docker-compose:latest services: - docker:dind stages: - lint - build -…
3
votes
2 answers

GItlab CI :- How to create the multiple apk(like development, staging and production) in Android using the Gitlab-CI?

I am able to create the single build(apk) like debug.apk using the Gitlab-CI by below approach in Gitlab. Inside my .gitlab-ci.yml , I have done this entry.Please check it once, image: jangrewe/gitlab-ci-android stages: - build before_script: …
Ravindra Kushwaha
  • 7,846
  • 14
  • 53
  • 103
3
votes
2 answers

How to get schedules description in gitlab?

I have a scheduled pipeline in gitlab, whose description is "run everyday". similar to this https://docs.gitlab.com/ee/ci/pipelines/schedules.html How can I fetch this description when the pipeline runs? is there any CI variable which could give me…
Naresh
  • 41
  • 3
3
votes
0 answers

how create a postgreSQL database with a dump during build for launch unit-test in gitlab-CI?

I would like to create a database with a dump (that I have locally) to perform unit-test which needs to have a database ready with the good structure. I am using gitlab runner, and here is my .gitlab-ci.yml file : stages: - build -…
3
votes
2 answers

gitlab socket connect : Connection refused

while I am trying to reconfigure my gitlab instance, I am getting this error. sudo gitlab-ctl reconfigure works fine but when i try to launch gitlab I see 502 Error and when i tail the logs I see this - ==> /var/log/gitlab/gitlab-workhorse/current…
mikita agrawal
  • 571
  • 1
  • 12
  • 27
3
votes
1 answer

How do I make a stage pass only if one or more jobs succeed in GitLab CI?

I have a .gitlab-ci.yml that looks like this: image: "python:3.7" .python-tag: tags: - python before_script: - python --version - pip install -r requirements.txt - export PYTHONPATH=${PYTHONPATH}:./src - python -c "import…
NewGuy
  • 3,273
  • 7
  • 43
  • 61
3
votes
1 answer

Grouping parallel runs in one entry on Cypress.io using Gitlab CI

I have an Nx project with Gitlab CI configured. My project has 2 kinds of E2E testing included - main project's and Storybook's ones. The tests themselves work fine, but I use cypress.io dashboard for E2E results gathering. I configured the project…
Nickon
  • 9,652
  • 12
  • 64
  • 119
1 2 3
99
100