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

Why is `KUBE_NAMESPACE` not set anymore?

I'm using Gitlab autodevops with a Kubernetes cluster(Gitlab runner with the Kubernetes Executor). A while ago the deployments used to be in project specific namespaces like project-5648-nut-qa-9yg86f, but now they are deployed in default. The…
iaquobe
  • 555
  • 1
  • 6
  • 23
3
votes
2 answers

Unzip problems in Gitlab CI pipeline

I have a simple step with Gitlab CI to install Terraform on an Alpine based image: step_1: stage: stage_x image: alpine/doctl:latest script: - wget https://releases.hashicorp.com/terraform/1.2.8/terraform_1.2.8_linux_amd64.zip - unzip…
Deoxyseia
  • 1,359
  • 18
  • 29
3
votes
1 answer

How to add private node module in GitLab CI

I was able to use my private repo (in GitLab) as a node module locally for an app I'm developing. I did this by generating a personal access token in GitLab and then running this command locally with the PAT as an environment variable: git config…
Jonathan Porter
  • 1,365
  • 7
  • 34
  • 62
3
votes
1 answer

Sonar exclusions are not working which mentioned in sonar-project.properties file

I'm using GitLab CI/CD pipeline for deploying the Springboot project. I have integrated SonarQube in my project. In my sonar-project.properties file I have mentioned the sonar.coverage.exclusions. But its not excluded properly. below is my Project…
Kavi Chinna
  • 237
  • 2
  • 7
  • 18
3
votes
1 answer

Gitlab 'include local' from same project but different directory

So lets say I have a project structure like: project-fancy-name -> jobs -> build - build-maven.yml -> defaults - maven-defaults.yml And in the build-maven.yml I want to include the defaults-maven.yml…
Popeye
  • 11,839
  • 9
  • 58
  • 91
3
votes
1 answer

python - Automated building of executables

I have a GUI program I'm managing, written in Python. For the sake of not having to worry about environments, it's distributed as an executable built with PyInstaller. I can run this build from a function defined in the module as MyModule.build()…
orbita
  • 47
  • 5
3
votes
0 answers

Gitlab Changelog API: Writing CHANGELOG that works with GitLab Pages

The GitLab Changelog API amends CHANGELOG.md with commit title and merge request information. However, it does it in a way to only work within GitLab UI (i.e., project-name@long-hash). My use case is to also publish the CHANGELOG.md using mkdocs…
astrochun
  • 1,642
  • 2
  • 7
  • 18
3
votes
1 answer

Gitlab Coverage Badge Shows "Unknown" - NodeJS with Jest

Im having an issue where my gitlab coverage badge reports back as "unknown" for a NodeJS project Im working. Ive read through dozens of stackoverflow articles about this and tried all the suggested solutions to no avail, so I figured I would put the…
Netia Ingram
  • 71
  • 1
  • 3
3
votes
0 answers

Is it possible to only mount specific volumes using --volumes-from?

I ma currently working on a CI/CD pipeline on Gitlab and I am using a containerised Gitlab runner (Docker-in-Docker situation) I am trying to create a test job for the application I am developing (a miniature Fast API web app that scrapes some…
3
votes
1 answer

Gitlab CI - run a task with only TAG & specific BRANCH

how can I start a job with gitlab-ci only when I create a new tag with a specific branch? I try everything but it still doesn't work. stages: - shov server test: stage: shov server rules: - if: '$CI_COMMIT_TAG && $CI_COMMIT_BRANCH ==…
jake
  • 41
  • 1
  • 3
3
votes
2 answers

Error in .gitlab-ci while trying to package

So I'm trying to make conditions in my .gitlab-ci.yml if there is no package then, npm publish to pack the library in the GitLab registry I gave my pipeline the permission to the registry and the npm access token, but I still get the unauthorized…
Haru
  • 83
  • 9
3
votes
1 answer

Unable to use variables for artifact name in gitab-ci.yml

I have read GitLab's Use CI/CD Variables to Define Artifact Name documentation and examples. In the following excerpt of my .gitlab-ci.yml file, I try to replicate their powershell example: artifacts: name:…
Shawn
  • 172
  • 9
3
votes
2 answers

Gitlab CI/CD execute script file that exist in the repository

I have the following project: Inside the file .gitlab-ci.yml I have a script that I run writen in different lines: deploy-uat: <<: *job_definition image: myimage stage: publish script: - if [[ $START_DATE == "" ]]; then echo…
mr.Penguin
  • 1,166
  • 1
  • 8
  • 24
3
votes
0 answers

how can i pass branch name in webhook url?

Currently under the same gitlab, I configure webhook in repo A to trigger the pipeline of repo B, the url is similar to this: api/v4/projects/project/ref/dev/trigger/pipeline? variables[WEBHOOK_BRANCH]= ${CI_COMMIT_REF_NAME} , but I can't get the…
txyh
  • 33
  • 2
3
votes
1 answer

No coverage files located, please try use `-f`, or change the project root with `-R`

I have files in the folder: coverage/lcov.info and I will upload the file using codecov uploader version 0.2.4 in CI Gitlab (using flutter) but got error There was an error running the uploader: No coverage files located, please try use `-f`, or…
Rohmatul Laily
  • 371
  • 3
  • 15