Questions tagged [gitlab-pipelines]

86 questions
33
votes
7 answers

Why am I getting "Pipeline failed due to the user not being verified" & "Detached merge request pipeline" on a Gitlab merge request?

When a non-owner dev pushes a branch to our Gitlab repo, it returns a "pipeline failed" message, with the detail "Pipeline failed due to the user not being verified". On the dev's account, he's getting a prompt to add a credit card to verify him to…
17
votes
3 answers

Gitlab CI CD variable are not getting injected while running gitlab pipeline

I am running the below code section in gitlab-ci.yml file: script: - pip install --upgrade pip - cd ./TestAutomation - pip install -r ./requirements.txt Below are the keys and values. So I have to pass any values to the pipeline with key as a…
simond
  • 684
  • 1
  • 10
  • 36
12
votes
2 answers

GitLab CI: skip job if only certain files have changed

I need to skip a GitLab CI job in my pipeline, if the only changes part of my commit/merge request are related to *.md, eslintrc.json or jsconfig.json files. Examples: If these files have changed, but others like *.js have changed too: job should…
6
votes
1 answer

Running a stage after conditional manual stage in a Gitlab pipeline

I'm trying to run a pipeline where the final stage depends on a previous stage with jobs that are conditional and manual. I made this example .gitlab-ci.yml to demonstrate the point. I am working with three stages: stages: - test - publish …
kitchra
  • 63
  • 1
  • 3
6
votes
2 answers

How to define rules in gitlab "stages" so that no need to define separate rules for jobs

Suppose there are 4 jobs are define in stages . stages: build test deploy upload Now test, deploy and upload only run when pipeline trigger manually. We can define rule on separate jobs for this but it will be repetitive.(do not want to use…
Yashika Chandra
  • 163
  • 3
  • 13
6
votes
3 answers

Gitlab ci issue with passing artifacts to Downstream pipeline with trigger and needs keywords

I am working on a multi-pipeline project, and using trigger keyword to trigger a downstream pipeline, but I'm not able to pass artifacts created in the upstream project. I am using needs to get the artifact like so: Downstream Pipeline block to get…
Ash Singh
  • 61
  • 1
  • 4
6
votes
2 answers

GitLab CI: avoid duplication of skip-ci for each job

Currently, I'm duplicating the information about skip-ci in every single job, like so job1: except: variables: - $CI_COMMIT_MESSAGE =~ /skip-ci/ ... job2: except: variables: - $CI_COMMIT_MESSAGE =~ /skip-ci/ …
4
votes
2 answers

Scheduled pipeline in gitlab using .gitlab-ci.yaml file

I was trying to schedule a ci/cd pipeline in gitlab using .gitlab-ci.yaml file. I did't find a right documentation to implement the schedule using the ci/cd yaml file. Is it possible to configure a pipeline run schedule (say everyday 08:00 AM) in…
Arun Vasu
  • 297
  • 8
  • 22
4
votes
0 answers

What could be causing my "error checking push permissions" error on GitLab CI using Kaniko?

I am running dockerized GitLab CI 13.8.3, and recently I have been getting a new error when trying to build and push a docker image (via Kaniko) to my registry. The pipeline has been working for months now for this project, and I have not changed my…
Dan Largo
  • 1,075
  • 3
  • 11
  • 25
4
votes
2 answers

Multiple pipelines for the same branch

GitLab CI offers very nice flexibility and multiple features. Because of that is not obvious how particular configurations should be achieved using GitLabCI yaml, scheduler, etc. I am interested to setup a workflow, which I am presenting below in a…
3
votes
1 answer

Run a pre job before GitLab pipeline

I want to run a job each time a new pipeline gets triggered. It's a kind of preparation job which should always be executed before every other job defined inside the .gitlab-ci.yml For Example stages: - build - test my-prep-job: stage: .pre …
Abid Khan
  • 145
  • 2
  • 9
3
votes
1 answer

how to use an "or" statement to make a dependent job in Gitlab CI?

I have a pipeline I'm putting together that has three different "deploy" steps, each with its own unique deployment but can be triggered by the same job. Ideally, I would like to find a way to "or" the items inside of the needs section to make the…
Patrick Zawadzki
  • 456
  • 2
  • 6
  • 26
3
votes
1 answer

Is there a way to add payment for a group in gitlab?

I have a group in gitlab for my dev team, all repositories are within a group but in order to run pipelines gitlab asks for payment method to any of my team members, is there a way I can add payment method for the whole group so my team mates are…
Alkaid
  • 81
  • 6
3
votes
2 answers

How to pass variables between jobs without artifacts in Gitlab-CI?

I want to pass some variables between jobs (on other stages) in my gitlab-ci scrypt. I used as in example: buildTest: stage: build artifacts: reports: dotenv: build.env name: "FullRelease" paths: …
Tadeusz
  • 6,453
  • 9
  • 40
  • 58
3
votes
2 answers

How to run a script from repo A to the pipeline B in Gitlab

I have two repositories in GitLab, repositories A and B let's say. Repo A contains: read_ci.yml read_ci.sh read_ci.yml contains: stages: - initialise create checksum from pipeline: stage: initialise script: - chmod +x read_ci.sh -…
spiros_m
  • 41
  • 1
  • 4
1
2 3 4 5 6