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

Why does gitlab-ci.yml not recognize sonarqube -Dsonar commands?

So I am trying to integrate SonarQube with my Gitlab CI. Now this is the gitlab-ci.yml file that I currently have: stages: - build - sonarqube-check - test - deploy cache: paths: - .gradle/wrapper - .gradle/caches build: …
LardinoisJosse
  • 363
  • 2
  • 5
  • 22
3
votes
0 answers

Gitlab-CI can't connect to postgres - "Is the server running on host "postgres" (127.0.0.1)?"

I'm trying to set up CI for my Rails project. Gitlab is self-hosted and I'm also self-hosting the runner on k3s. When trying to create the database, I get the following error: bin/rails:4:in `
' Caused by: PG::ConnectionBad: could not connect…
3
votes
0 answers

How to overwrite beta versions in private gitlab NPM registry

I am currently working with GitLab-CI and one problem that I have is that I need to use unique version names in my NPM registry. Now, while I really like this feature with NPM in the open world, in development when pipelines are run on development…
relief.melone
  • 3,042
  • 1
  • 28
  • 57
3
votes
1 answer

How to solve Connection refused error with Plotly- Dash Testing - Selenium Grid/Selenium Standalone - Remote/Gitlab

I had a problem running an integration test for a plotly-dash app I created. I am trying to run an integration test with selenium remote using pytest and Dash Testing (https://dash.plotly.com/testing) I was able to run an implementation test locally…
filmroll22
  • 31
  • 2
3
votes
1 answer

Combine gitlab ci rules if to only trigger a job when a push or merge is made to master branch

I`m new to Gitlab-CI and would like to trigger a script in Gitlab CI if changes are made to files in a defined folder and there has either been a push to the master branch OR some other branch has been merged into master. After reading the docs I…
Sacha Vorbeck
  • 327
  • 1
  • 2
  • 14
3
votes
1 answer

Gitlab Tee: collapsed multi-line command & unrecognized option: append

Inside of my GitLab CI file I have a file which is copied from the "Publish npm packages instruction", before_script: - | { echo "@${CI_PROJECT_ROOT_NAMESPACE}:registry=${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/npm/" echo…
3
votes
1 answer

Gitlab CI trying to run powershell when not asked to

I am trying to build web application with gitlab-CI. I created runner with this configuration: name = "REDACTED" url = "REDACTED" token = REDACTED executor = "docker-windows" [runners.custom_build_dir] [runners.cache] …
Hynek Bernard
  • 744
  • 1
  • 11
  • 30
3
votes
0 answers

How to report AWS Amplify Console pipeline status to GitLab?

I am using AWS Amplify to build and deploy a React application built with Create React App. The issue is that I could not find a way to report the build status to GitLab so that I can see the build status for a branch or a merge request. Is there a…
3
votes
0 answers

Best CI/CD practice to build React Native app to multiple environments

We have a react native Android App and we're using Gitlab for the CI/CD. Before deploying to production, there are several others environments (4 actually). The app contains .env files for each…
Papa doc
  • 179
  • 2
  • 11
3
votes
2 answers

Running plotly dash selenium tests in gitlab CI

So I'm attempting to implement selenium tests within a GitLab ci pipeline. Currently, I've run these tests on my local system mirroring the testing method that is going to happen within the pipeline i.e. I have my tests build on my local system then…
demonintherough
  • 194
  • 2
  • 9
3
votes
0 answers

gitlab mulitple caches - global cache is not considered

I want to use multiple caches in my .gitlab.yml file global cache for maven dependencies, gradle wrapper, etc. local cache for each build (share gradle build output) It seems like the global cache is not considered when executing the build/test…
mreiterer
  • 556
  • 1
  • 4
  • 15
3
votes
1 answer

Gitlab CI job failed: ERROR the input device is not a TTY

I've registered a GitLab Runner with shell executor installed on Ubuntu 18.04, and also set up a docker container with the command below docker run -it --gpus '"device=0"' --net=host -v /home/autotest/Desktop/ai_platform:/app…
Anin Huang
  • 51
  • 2
  • 7
3
votes
0 answers

How do you force a job to prompt the user for variables in a parallel pipeline?

I have a very basic Gitlab CICD yaml file that is supposed to run two jobs on completion of another job. I'd like one job to automatically set a variable, while the other job prompts the user to define one. These jobs are called auto and manual…
3
votes
0 answers

Strapi deployment on AWS Fargate (Serverless)-Aurora MySQL (Serverless)

I am trying to deploy the Strapi on AWS Fargate serverless environment through GitlabCI. Using AWS MySQL Aurora database for the DB integration. The database is up and running properly. When my CICD is trying to deploy it on Fargate, somehow it is…
3
votes
2 answers

Grab all artifacts from gitlab-ci dir and make them an artifact

I am trying to display all the artifacts .html files in a specific directory: $TOOLS_PATH/terraform_results/html that are generated during a build job stage when my gitlab pipeline is run. when this is run in the gitlab pipeline I get a…
Jshee
  • 2,620
  • 6
  • 44
  • 60