gitlab-ci Questions

2

When running dotnet test inside a gitlab cicd pipeline with the package testcontainer, containers are started but this error appears : Error Message: Docker.DotNet.DockerApiException : Docker API ...

4

Solved

I'm trying to add a SSH key to a GitLab pipeline. The SSH key is in ED25519 format and saved as a group environmental variable and as a file in GitLab. When I saved the contents of the SSH key in G...
Heffner asked 8/2 at 19:11

3

Solved

I want to tag a build and when trying to push the tags I get the below error in CI How to create a CI token and set in the build environment which can push tags to the repository. [01:59:14]: Exit ...
Thamos asked 19/9, 2020 at 13:59

4

I am looking to use the environment keyword as shown below in job which has trigger. deploy: stage: deploy environment: name: develop variables: ENV: develop trigger: include: - local...
Cosec asked 19/1, 2022 at 10:22

6

Solved

I have a gitlab-ci integration that require a sonar analysis and if the quality gates pass, to build a docker image. Is this possible using gitlab-ci ?

4

Solved

Gitlab CI keeps ignoring the sql-files in /docker-entrypoint-initdb.d/* in this project. here is docker-compose.yml: version: '3.6' services: testdb: image: postgres:11 container_name: lbsn-...
Deen asked 8/5, 2019 at 17:20

1

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 can all run in...
Ingold asked 20/9, 2023 at 16:57

2

Solved

We know that, by default, gitlab ci runners uses set -o pipefail, as explained in coderwall.com this particular option sets the exit code of a pipeline to that of the rightmost command to exit with...
Moulding asked 8/1, 2019 at 9:12

2

Solved

Use trigger for dynamic select test job prepare_test: image: $CI_REGISTRY/platform/docker-images/vault:1.8 variables: CONTEXT_TEST: | include: # PRODUCT - project: 'gitlabci/integration-test'...
Simplistic asked 15/1, 2022 at 22:31

2

From the gitlab documentation this is how to create a docker image using kaniko: build: stage: build image: name: gcr.io/kaniko-project/executor:debug entrypoint: [""] script: - mkd...
Binky asked 27/8, 2020 at 9:46

5

Is there any way to get an id of the project via GitLab API . I created a project using GitLab API providing the project name - curl -kX POST --header "PRIVATE-TOKEN: <access_token>" https...
Daedalus asked 15/2, 2019 at 21:6

1

Solved

I have projects in many git repositories, starting with the base api and then branching outwards. When the API materially changes, I want to verify that downstream projects (that use the particular...
Sonar asked 3/10, 2022 at 4:35

1

I have several jobs that runs in the same stage sequentially. However in the GitLab UI the display order is as per job names (ascending order). Job_C: stage: dev Job_B: stage: dev needs: [&quot...
Fawcette asked 1/2, 2023 at 16:2

4

I am trying to build CI with gitlab, I go from a docker image of docker, and i didn't have any problem with my front repository, but now with the back withe the same gitlab-ci configuration file, i...
Monia asked 21/2, 2017 at 14:51

2

Solved

i have a repository which consists of following two files, which builds an windows docker container with visual studio buildtools installed and pushes it to the registry provided by gitlab for my r...
Wilhelm asked 8/12, 2020 at 12:38

5

I want GitLab CI to run a job after a merge request is merged. I don't want it to be run on CREATING a new merge request and also I don't want it to be run whenever target branch is updated. (Since...
Pretypify asked 10/1, 2022 at 15:6

4

Solved

My use involves finding a diff between Merge Request and Master or Release branch (whichever branch I want to diff against) the MR will have CI_MERGE_REQUEST_TARGET_BRANCH set. CHANGED_DIRS=$(git d...
Degeneration asked 5/7, 2021 at 18:47

4

Solved

I'm getting this error while trying to deploy my branch through gitlab. remote: The project you were looking for could not be found or you don't have permission to view it. fatal: repository 'https...

2

Solved

I use Gitlab CI for checking a code quality of my project. Sometime I want to check only new code ( new commit ). How can I get diff from Gitlab CI ?
Rockaway asked 4/6, 2018 at 13:5

12

I'd like to build docker image via gitlab CI with project's version as a tag: docker build -t dockerimage:VERSION-IN-POM . In jenkins' pipeline i'm getting the version like that: ${pom.version...
Libriform asked 5/9, 2018 at 15:11

3

Solved

Basically I am looking for the retry button for the pipeline triggered, but all I see is a retry button for the individuals jobs of that pipeline. I don't want to have to push a commit just to retr...
Londonderry asked 6/4, 2018 at 6:1

3

I've been trying to get more familiar with GitLab's CI functionality and find the idea of splitting up a CI pipeline into multiple separate jobs interesting. This would allow me to maintain one pro...

4

Solved

I have several projects, each in their own repository, that import a common library which has its own repository as well. So, the .gitmodules file includes the library with the full name: Submodule...
Blackandwhite asked 19/9, 2019 at 21:22

4

I cached Pip packages using a Gitlab CI script, so that's not an issue. Now I also want to catch a Conda virtual environment, because it reduces time to setup the environment. I cached a virtual ...
Pearly asked 31/1, 2018 at 10:47

4

Below is my YML file structure. I want the following up stages to be run without reinitializing the git repository. The git repository should only be initialized during the first stage, which is th...
Obidiah asked 8/10, 2020 at 4:10

© 2022 - 2024 — McMap. All rights reserved.