Questions tagged [gitlab-ci]

GitLab CI is a continuous integration server from GitLab.

Filter by
Sorted by
Tagged with
-1 votes
0 answers
14 views

Gitlab Pipeline failes

I was a functional gitlab pipelines to publish code to AWS server. It suddnly started failing without any reason. I am getting following error. Can someone give me some clue. I cannot post the whole ...
Jay Vyas's user avatar
  • 2,672
0 votes
0 answers
19 views

Gitlab CI/CD: Build and push only changed images in multi container app

I'm learning CI/CD using a multi container app in a single repo. The idea is to detect changed files, build the image and push it to docker hub. I can get the pipeline to build and push all the images ...
gbelo's user avatar
  • 1
1 vote
0 answers
13 views

I need to find a way to cache jdk instalation in gitlab pipeline

I am running a GitLab pipeline for testing and building an Android app. Here is my current gitlab-ci.yml: image: fabernovel/android:api-33-v1.7.0 stages: - test - build - beta cache: key: ...
Josip Maričević's user avatar
0 votes
0 answers
17 views

Gitlab scheduled pipelines test results

My goal is to be able to run all the tests at a certain time periodically. Then show the test results in a simple way. If possible even visualize the results. I have a job in a gitlab pipeline, which ...
John Doe's user avatar
0 votes
0 answers
17 views

SSH connection failed on GitLab CI/CD

I want to set up an environment to develop WordPress theme localy push to GitLab repositly then automatically deploy to staging server. Currently, i log in to the staging server, make a pull request,...
masomi79's user avatar
0 votes
0 answers
12 views

Docker in Docker for Gitlab CICD pipeline

I am using GitLab runner in a docker container and registered it with my Score_Microservice project in Gitlab and registered a specific runner to this project. now while writing a pipe-line I have a ...
T V S K MANOJ KUMAR's user avatar
2 votes
1 answer
21 views

Which job properties get merged vs overwritten when using `extends` in GitLab CI?

In GitLab CI, you can use the extends keyword in order to inherit properties from another job or template. One example is: .tests: script: rake test stage: test only: refs: - branches ...
Forivin's user avatar
  • 14.9k
-1 votes
0 answers
20 views

Runner fails on CLI (?) commands

I'm running a free self-hosted instance with self-hosted runners. The runners "live" on a dedicated server under Ubuntu 22.04 and use the DIND model. Some of the commands fail. A runner ...
Crelitit's user avatar
3 votes
0 answers
39 views

gitlab ci have manual jobs and automatic jobs in the same yml

I have several jobs in my gitlab ci the dependency goes as follows prebuild_job1 -> buildjob1,buildjob2,buildjob3 -> deployjob1 prebuild_job2 -> buildjob2 -> deployjob2 prebuild_job1 is ...
Lena Bru's user avatar
  • 13.6k
0 votes
0 answers
18 views

Format slf4j.simpleLogger relative time (incl. milliseconds) since maven start

Using MAVEN_OPTS=-Dorg.slf4j.simpleLogger.showDateTime=true makes it print out the milliseconds since maven command started in front of every line of output. So far, so good. Now i would like to add a ...
Philzen's user avatar
  • 3,992
1 vote
2 answers
41 views

Trigger Gitlab pipeline on merge request into "main"

I have a Gitlab pipeline based on a .gitlab-ci.yml file. I want to trigger my pipeline when a merge request is created that merges any branch into the "main" branch. My current .gitlab-ci....
Adriaan Nering Bögel's user avatar
0 votes
0 answers
16 views

Using the new package version in my build with GitLab CI/CD flow with semantic-release

I want to implement automatic versioning with semantic-release using GitLab CI/CD pipelines. I was previously triggering the automatic versioning (and changelog generation) manually and locally before ...
TehOne's user avatar
  • 2,579
0 votes
1 answer
30 views

How to delete job artifacts after merge request is accepted in gitlab ci?

I am using the gitlab runner and a .gitlab-ci.yml file. I have a job that is only executed on merge requests. Is there a possibility to delete the exposed job artifacts after the merge request is ...
Oliver S.'s user avatar
0 votes
0 answers
16 views

How can I use my own svg file in gitlab badges?

I have created my own svg file and pushed to my repository, when I try to use the link to that svg file as link for the badge image it does not show up the badge image properly. I am not sure how I ...
Alice's user avatar
  • 1
0 votes
0 answers
18 views

How to scan built docker images using trivy in gitlab-ci pipeline?

I am trying to write a gitlab-ci script to build images from dockerfiles, scan them using Trivy and push them to my private registry. I've used the below script, and it works fine when i use it to ...
LARA's user avatar
  • 1
0 votes
0 answers
15 views

Incorrect type. Expected in gitlab-ci.yml

I want to navigate to windows partition. Incorrect type. Expected "string | array" my script: script: - sshpass -p "****()" ssh -o StrictHostKeyChecking=no ***@**** "F: ...
S.M_Emamian's user avatar
0 votes
0 answers
27 views

Attempted to initialize RESTObject with a non-dictionary value when adding file to GitLab project using python-gitlab

I am trying to create GitLab projects through GitLab CI pipeline by importing the GitLab export tar.gz file using python-gitlab library. The new project gets created but does not get initialized with ...
Ashmeet Pahwa's user avatar
0 votes
1 answer
30 views

yq doesn't recognize 'del()' command in gitlab-ci.yml

My yq is kinda throwing a tantrum in my gitlab-ci.yaml. The version of yq within the shell of my gitlab server is 4.16.2 and my local version where I test it is 4.35.2. According to Official yq docs ...
sh_cy's user avatar
  • 3
0 votes
1 answer
71 views

error in trivy Vulnerability scanning: filesystem scan error & misconfiguration scan error

I am using Trivy to scan for Vulnerability scanning in the GitLab CI CD pipeline. When I use $ trivy fs --exit-code 0 --severity UNKNOWN,LOW,MEDIUM,HIGH,CRITICAL --scanners vuln,config ./. --timeout $...
Ashish Karpe's user avatar
  • 5,108
1 vote
1 answer
42 views

Regex anchors in GitLab Push Rules

I hope you're doing well, I'm new in GitLab, I'm trying to add a Push Rules in order to Restrict push operations. I have this regex: ^(build|test)(: ([a-z].{0,70}[^\\.]\s+))(\((JIRA|CARD)-[0-9]+)\)\n$\...
Jonathan Viana's user avatar
0 votes
1 answer
25 views

Docker command `npm run` behaves different in GitLab and in local machine

I built the follow Docker container FROM node:20-alpine as ember WORKDIR /usr/app COPY package*.json /usr/app/ RUN apk fix && \ apk --no-cache --update add git && \ npm clean-...
Raniere Silva's user avatar
0 votes
0 answers
25 views

ERROR: Preparation failed: Error response from daemon: Get http://172.17.166.5:5000/v2/: dial tcp 172.17.166.5:5000: getsockopt: connection refused?

When I'm using my pipeline on GitLab, I have this error occurs on my screen, and I don't know what to do to solve this, I already tried to check my daemon.json but the IP adress "172.17.166.5:...
Wally Hormi's user avatar
0 votes
0 answers
19 views

How to show pods status in environment?

We use gitlab, and all of our deployments are in Kubernetes. We have a problem that developers can't see the pod status and container logs of their deployments. In the gitlab blog post about KAS there ...
Roma Lukinskiy's user avatar
0 votes
0 answers
23 views

Trying to find the correct way to a simple Docker container in Gitlab CI/CD

I've got a simple setup. Linux host for running all containers Gitlab in a Docker container Gitlab runner in another Docker container already registered in the Gitlab My code is a Flask app and I ...
r2d2bot's user avatar
0 votes
0 answers
58 views

Error response from daemon: failed to create symlink: [...] file exists with Docker and Mutagen

I am using two different docker setups for the same project, one for the local development and one for the pipelines. The difference is, that I am using mutagen for local development, to keep ...
Jan's user avatar
  • 59
0 votes
0 answers
31 views

Is using Docker containers over Portainer for GitLab CI/CD to run the pipeline continuously a reasonable solution [closed]

I plan to use GitLab CI/CD to create an automated pipeline that runs every time a member of my team commits to the repository. To ensure that this pipeline always works, even when my computer is not ...
Hercules's user avatar
0 votes
0 answers
33 views

Nginx Reverse Proxy Configuration with Gitlab Docker Container

Hey there fellow developers, I'm currently facing an issue with my server setup involving multiple Docker services running behind an Nginx reverse proxy. I've successfully configured my domain (via ...
LaFllamme's user avatar
  • 259
0 votes
0 answers
27 views

CI/CD downloading files in the test is completed by assigning the .crdownload format

The main problem is the following: when going through pipelines, a file should be downloaded, but during the passage the file seems to be not completely downloaded or is at some stage at all and a ...
Sergei Buryi's user avatar
0 votes
1 answer
22 views

What is the recommended way of migrating a repository from one path to another on same GitLab instance

I'm using Gitlab where I have a repository called reports under the path or group as https://example.gitlab.com/my_company/source_group which I want to move to another group on the same GitLab ...
vinod827's user avatar
  • 1,178
0 votes
1 answer
41 views

How to connect to Kubernetes via Gitlab Pipeline using the Terraform Kubernetes Provider

We have connected some of our repositories in Gitlab to a Kubernetes cluster. There is an agent installed on our cluster that allows the connection. This is documented on Gitlab's web pages (e.g., ...
fgu's user avatar
  • 77
0 votes
0 answers
14 views

Gitlab Multi Repo Multi Pipeline how to do it correctly

I have repo A with 3 branches (dev, uat, live) which includes the app code files, and I want to create repo B that will use the code files from repo A to build and deploy docker containers to diffrent ...
Jimmb's user avatar
  • 1
0 votes
1 answer
17 views

Saving gitlab job artifacts with different conditions (when)

There is a job that saves artifacts only when the job fails: artifacts: paths: - '**/foo' - '**/bar' when: on_failure Is it possible to configure it so that the foo artifact is saved only ...
Ruslan's user avatar
  • 53
0 votes
1 answer
25 views

Dotnet publish cannot upload to other project package generic registry

I create the gitlab, like below publish_and_zip: stage: build script: - dotnet publish ${PROJECT} --no-restore -c Release -o publish_output - apt-get update -qy - apt-get install -y ...
Carrie Kaski's user avatar
2 votes
1 answer
34 views

xargs docker stop needs at least 1 argument in GitLab CI job [duplicate]

I have a GitLab CI/CD YAML pipeline file with some jobs, the last stage has this code: deploy: stage: deploy before_script: - chmod 400 $SSH_KEY script: - ssh -o StrictHostKeyChecking=no ...
ERJAN's user avatar
  • 23.8k
1 vote
1 answer
80 views

How do I make golang project module accessible to another project pipeline on gitlab?

I have built 2 projects on my local machine. One called middleware and another called authentication. both have modules. module for middleware project is called gitlab.com/nrs16/util, and module for ...
nrs16's user avatar
  • 13
-1 votes
2 answers
36 views

How to loop directories in gitlab-ci.yml?

I found an answer here: How to loop directories in gitlab-ci but the answer results in a syntax error. I have a structure like this: /src /app1 /app2 /app3 I want to iterate through each of those ...
getunstuck's user avatar
0 votes
0 answers
9 views

GKE Helm Gitlab-CI image tag adding additional character ':'

I'm completely lost on this one. I'm using gitlab ci to pipeline updates into a GKE cluster managed with helm. I have 2 namespaces for different environments on the cluster, 2 different pipelines in ...
Jowz's user avatar
  • 409
0 votes
1 answer
41 views

Make maven ignore / continue after "Unable to parse command line options"

While reworking a CI pipeline script, i stumbled into $ mvn $MAVEN_CLI_OPTS clean compile Unable to parse command line options: Unrecognized option: --no-transfer-progress when trying to add --no-...
Philzen's user avatar
  • 3,992
0 votes
0 answers
16 views

How can I iterate through directories with changed files from a merge in GitLab CI/CD?

In my .gitlab-ci.yml file I have a script step that does this: script: - python src/app1/setup.py - python src/app2/setup.py - python src/app3/setup.py ... etc This is occurring in a ...
getunstuck's user avatar
0 votes
1 answer
25 views

Conditional Gitlab-ci Tags

I'm fairly certain I already know the answer, and this is just me just confirming really. There is no way of making tags in the gitlab-ci conditional is there? Essentially to avoid duplication I want ...
Popeye's user avatar
  • 11.9k
-1 votes
1 answer
30 views

GitLab CI/CD pipeline issue docker login failed

How can fix this issue enter image description here I tried enter to registry from VPS it is login success. But when running this pipeline it is failed with registry login error. How can solve this ...
Akila Peiris's user avatar
0 votes
1 answer
30 views

gitlab shared runner docker does not support multi-stage build

i am running the following docker file in a gitlab runner FROM alpine:3.18 as alpine RUN ... and here is my pipeline image: gitlab/dind services: - docker:dind stages: - init - build init: ...
sally's user avatar
  • 13
0 votes
1 answer
29 views

how to run the Gitlab pipelines periodically to ensure they are stable

I work on multiple projects that use Gitlab pipelines for building, linting, sonar analysis, jira check and deployment, etc. Sometimes, the stage related to sonar check fails whenever that 3rd party ...
vinod827's user avatar
  • 1,178
0 votes
1 answer
17 views

How to share value between pipelines in Gitlab

I am trying to implement checkstyle quality gate. This line if [ -e no_checkstyle_issues.txt ]; then PREVIOUS_ISSUES=$(cat no_checkstyle_issues.txt); else PREVIOUS_ISSUES=99999; fi always returns ...
AndreasInfo's user avatar
  • 1,062
0 votes
1 answer
66 views

Gitlab Workflow Config Prevent Duplicate Pipelines, Enable Branch, MR & Schedule Pipelines

The idea is to allow the following functions in the Gitlab Workflow config - Branch pipelines MR pipelines with MR labels Schedule pipelines And to run without creating duplicate pipelines (branch ...
Theo Sweeny's user avatar
  • 1,033
0 votes
2 answers
36 views

How to run pytest against app which use PostgreSQL

What am I doing wrong in below code, as I am still getting error: ERROR: database "postgres" already exists ERROR: Job failed: exit code 1 App is using a PostgreSQL and I would like to run ...
majesty's user avatar
  • 17
1 vote
0 answers
24 views

Defining one-to-one dependencies between multiple parallel matrix jobs in gitlab

In a gitlab pipeline, I can specify a job like: build: parallel: matrix: - architecture: [x86_64, arm] operating_system: [linux, macos] And that will create 4 separate jobs that ...
onlynone's user avatar
  • 7,632
0 votes
0 answers
18 views

Gitlab deploy keys for in pipeline push

What I am trying to achieve: During one step of my Gitlab pipeline, I would like to do a modification on a file and push it as part of the pipeline step. In order to do so, my admin team gave me a &...
PatPanda's user avatar
  • 3,716
0 votes
0 answers
26 views

gitlab.com CI/CD pipeline setup: where is my JAR artifact? [closed]

I setup a gitlab CI/CD build - pipeline: where is my JAR build - artifact? There is only a "job.log" file for the successful build. Any ideas appreciated! test steps: setup CI/CD pipeline ...
Leder's user avatar
  • 396
1 vote
1 answer
30 views

(Status: 302) Gitlab Pages JSON translation files CORS policy error & redirect

I have an Angular project in which I use JSON files (path: src/assets/i18n)to translate the content into different languages. I put my project on Gitlab Pages, but I get the following error: Access ...
Lorenzo's user avatar
  • 195

1
2 3 4 5
166