Category "gitlab"

GitLab - Lines that have not been changed are marked in green

What does that mean? And how do I get rid of the highlighting? Lines 1-12 have not changed but are highlighted in green. <- Weird Lines 13-15 have not change

Generate env specific properties file in gitlab-ci.yml for gitlab runner

I need to automate the CI/CD pipeline for an SpringBoot application. This application has application.properties file which contains few obvious env specific pr

Docker build command using Buildkit secrets fails in Gitlab

My Dockerfile (somewhat redacted here) looks like this: FROM python:3.9.9-slim-bullseye WORKDIR /tmp RUN --mount=type=secret,id=token echo "$(cat /run/secret

Running Omnibus Gitlab in Docker with Container Registry

I'm running gitlab on docker with a relative url my.domain.com/gitlab/. I have a nginx reverse proxy which passes the requests. Everything seems to be working f

Git Convert All Remotes in a Repo from HTTPS to SSH

Is there a command to programmatically convert all existing remotes on a repo from HTTPS to SSH? For example, if I had a repo with a remote for GitHub, and anot

How to send a mail from gitlab after any activity?

We are using gitlab for CI/CD. my colleagues need pipeline, merge request, commit related status. How should I receive the mails from them and how did they rece

Continue running scripts even after exit code 1

I'm trying to run Cypress test in Gitlab. Below is the sample script. After executing 'npm run Cypress', if there is any test case fail, it exits with 'exit cod

download artifacts between pipelines in the same project Gitlab ci

I am currently running 2 jobs. One running some test unit which generate a coverage.xml file from php based project and another which launch a sonarqube analysi

Unable to pass variable to downstream pipeline on GitLab CI

For over a week I've been fighting with passing a variables between jobs in multi-project pipeline in GitLab CI and got lots of weird errors. The mechanism look

How do I have permission to use git push in gitlab ci?

CI_JOB_TOKEN has only read-only access to repository, and I am able to have write access to the repository using the gitlab personal access token, but I need to

Gitlab continuous integration across multiple repos

I have a project, based on buildroot, which is composed of two repos: Buildroot root, let's say project A Our packages, project B We host a Gitlab server, and I

How can GitLab Bot accounts use the dependency proxy?

We've recently adopted the GitLab dependency proxy for our project on a self-hosted GitLab instance. This works fine for normal users, but fails for pipelines c

jq: command not found in GitLab CI file

In .gitlab-ci.yml stages: - test-jq test-jq: stage: test-jq image: ruby:2.5 script: - apt-get update - apt-get install

SAST job fails + GitLab + Spring boot + Maven

I have a multi-module maven Spring Boot project. During the Test pipeline stage, I get the below error. The specified user settings file does not exist: /build

Command not found on gitlab ci using cat

I have a Gitlab job in which I get a value from a .txt file. This value (v100322.1) was written into the text file in a previous stage and passing by to the job

Are there some rebase best practices with multiple pushes?

I started a new job at the beginning of the year, whose git practices are different than what I am used to, and I keep running into problems. The documented pro

Unable to get inherited gitlab CI/CD variables

I would like to create a variable for all of my project located under a group. I create a variable in this group I go under a subgroup and check for CI/CD vars

Issue cannot be found when trying to add existing issue to epic

I am trying to add issue to epic. Here I found documentation: https://docs.gitlab.com/ee/user/group/epics/manage_epics.html#add-an-existing-issue-to-an-epic but

Gitlab Kubernetes Agent behind Nginx Reverse Proxy

Dear friendly developer, I am trying to register a Gitlab Kubernetes Agent inside a Minikube with a self hosted Gitlab instance. The Gitlab instance is a docker

Where on GitLab.com do I find the pipeline error logs?

I've been working on getting a .gitlab-ci.yml pipeline to work but cannot find where the logs go. GitLab.com message tells me npm ERR! /root/.npm/_logs/2022