Questions tagged [gitlab-pipelines]
86 questions
0
votes
1 answer
How to make a GitLab Pipeline not start each Stage from scratch?
I want to use a GitLab CI/CD pipeline to build an app and run some tests. I've setup a .gitlab-ci.yml for the project, like this:
default:
image: docker-image-name
build-app:
stage: build
script:
- compile code... # Compile and…

Mr-IDE
- 7,051
- 1
- 53
- 59
0
votes
0 answers
Gitlab - Can we have separate pipeline for each submodule?
So currently we have our service and DB schema migration in the same codebase, and we are running DB schema migration (using Liquibase) as part of our service deployment (before, in Kubernetes).
Now we are trying to separate the DB schema migration…

Rohit Singh
- 2,143
- 3
- 13
- 16
0
votes
0 answers
GitLab pipeline is invalid -> reports config contains unknown keys: cobertura
The GitLab pipeline (for a dotnet project) is not validated because of the error "jobs:build:artifacts:reports config contains unknown keys: cobertura". So the pipeline of course can't be triggered.
I even tried to remove the code coverage thing,…

Bilel-NEJI
- 61
- 9
0
votes
1 answer
How to read/get job arguments sent using slack slash commands to trigger a gitlab job?
I am trying to trigger a release job on master branch using slack slash commands, the job is triggered but i can't seem to get or read the passed argument.
Per the docs of gitlab we can pass arguments to run a job but how to read the argument is not…
user20215416
0
votes
1 answer
Is it possible to override the pipeline default image in a hidden job used as a template
I’ve created a hidden job that requires a specific image:
myhiddenjob.yml
.dosomething:
inherit:
default: false
image: curlimages/curl
script: …
This job is used in a pipeline that has a different base image:
default:
image:…

codependent
- 23,193
- 31
- 166
- 308
0
votes
1 answer
Running gradle release on gitlab pipeline triggers 3 more build jobs
This is my gitlab pipeline:
image: docker:latest
services:
- docker:dind
variables:
DOCKER_DRIVER: overlay
SPRING_PROFILES_ACTIVE: gitlab-ci
before_script:
- git remote set-url origin…

D. Joe
- 573
- 1
- 9
- 17
0
votes
1 answer
enable merge request pipeline only on master
I am lots of branches in my repo, now I want to add MR pipeline for the master branch, and enable the Merge checks and Pipelines must succeed optional. unfortunately the repo have so many branches that I don't want to create .gitlab-ci.yml for them…

Leon
- 1,935
- 3
- 23
- 36
0
votes
1 answer
Gitlab pipeline: use variable in trigger path
I'm trying to develop a common gitlab pipeline that uses a matrix to trigger another pipeline but I want to add a variable in the path. What I wrote till now is:
variables:
PROJECT_NAME: name
PROJECT_HELM: helmpipe
DEV_CUSTOMERS: cust1…

Giamma
- 808
- 2
- 10
- 21
0
votes
0 answers
Install GitLab Runner on Azure Linux VM using GitLab CI/CD Pipeline
I have provisioned a Red Hat Linux VM in Azure, as a dedicated host for my organisation's GitLab Runner.
To ensure we have a fully automated process in place going forward, I'm looking to set up a GitLab CI/CD pipeline that will run the required…

hitman126
- 699
- 1
- 12
- 43
0
votes
1 answer
Gitlab Merge Request When To Approve
So we're having a little bit of a debate where I work as to what point should a reviewer "Approve" a Merge Request.
We have setup some Gitlab Pipelines to run and carry out what I would say are fairly standard stuff (Build, Automated Tests, Sonar…

Popeye
- 11,839
- 9
- 58
- 91
0
votes
0 answers
Pipeline job fails after tests complete
There is job script:
image: python:3.7.9
stages:
- test
run_ui_tests:
tags:
- est
stage: test
before_script:
- echo "Prepairing enviroment..."
- python --version
- pip install -r requirements.txt
…

Keith
- 37
- 4
0
votes
1 answer
Have a stage trigger another one on Gitlab CI
I have the following Gitlab CI conf:
[...]
.e2e-config-template: &e2e-config-template
stage: e2e-test
needs: ['setup-project']
interruptible: true
image: xxx/xxx/...
allow_failure: false
tags:
- private
rules:
- if:…

Hubert Chauvat
- 73
- 6
0
votes
1 answer
Delete GitLab environment from pipeline job
Currently, I am creating GitLab environments for each merge request to deploy temporary pages. These environments stop as soon as merge request is merged, but I want to add an additional step to the pipeline to "Remove environment" completely from…

DemiA
- 333
- 1
- 11
0
votes
1 answer
How not to run pipelines on specific commit message
I have pipeline that makes some changes and commits another change which triggers another pipeline and I dont want that automatic update to trigger pipeline.
I had an idea that I will specify commit message and that ignore it, but for some reason I…

Spooneres
- 3
- 2
0
votes
1 answer
!reference in dynamic pipelines .yml is being split and not correct format
I have the following YAML file that is dynamically created.
one:
script:
- !reference [.install_env, before_script]
- python -c 'from integration_tests.staging_test_pipeline import run_algorithm; run_algorithm()'
-…

lr100
- 648
- 1
- 9
- 29