Questions tagged [gitlab-pipelines]

86 questions
3
votes
0 answers

artifacts for pages are too large in gitlab

I am trying to enable gitlab pages with 100 MB size, but pages:deploy job is failing with error message of " pages:deploy - artifacts for pages are too large. I have increased pages artifact size to 2048 MB in admin > settings > preferences > pages…
kaka
  • 143
  • 1
  • 4
  • 13
2
votes
1 answer

How can I only allow merge request from one specific branch to another specific branch in GitLab?

In GitLab, I just wan to the merge requests from sit -> uat -> master. How can I implement it by pipeline?
2
votes
1 answer

Found errors in your .gitlab-ci.yml: unknown keys in `extends`

My code for the pipeline is: include: - template: Terraform/Base.gitlab-ci.yml # https://gitlab.com/gitlab-org/gitlab/blob/master/lib/gitlab/ci/templates/Terraform/Base.latest.gitlab-ci.yml stages: - init - validate - build - deploy init: …
2
votes
1 answer

how developers run pipeline without access on .gitlab-ci.yml

The .gitlab-ci.yml configuration file should not be exposed to any user with the "developer" rule since it might grant unwanted access to variables and infrastructure or make different kinds of exploiting behaviour or simply unwanted changes…
Masoud
  • 65
  • 2
  • 9
2
votes
1 answer

Gitlab-ci : how to run a job when one of numerous other jobs or done

I need to set a job that starts running after one of several other jobs are done , that are all in the same stage. I ve tried to use the keyword "needs" , but i didn't recognize how to tell it to consider the case of "if only one among all job is…
firasKoubaa
  • 6,439
  • 25
  • 79
  • 148
2
votes
1 answer

gitlab yaml anchor reference in an if clause

Is it possible, or is there a way, to use a yaml anchor reference in a BASH if clause. If so, how? This is what I'm attempting so far. create-cluster: needs: - terra-bootstrap script: - export…
Simply Seth
  • 3,246
  • 17
  • 51
  • 77
2
votes
1 answer

coverage.misc.NoSource: No source for code: '/usr/src/server/rep-1>'

I am using the coverage package for quite a while now and it functioned well until yesterday it just fails at the level of generating a report I believe. There were no changes on how the functionality which is way more bizarre. I have the below…
coredumped0x
  • 768
  • 1
  • 12
  • 28
2
votes
1 answer

Gitlab CI visualize issues on gradle multi-module with dockerd gitlab-runner

Bonjor, Hi All, hope all good. From past days, I was setting up the coverage visualization on the multi-module gradle project with the gitlab instance using gitlab-CI and jacoco test reports and cobertura conversion analysis. And need a small…
Chirag
  • 555
  • 1
  • 5
  • 20
2
votes
1 answer

How to wait a GitLab job if the same job is running in the previous pipeline?

We have a requirement where the deploy job in a pipeline should wait if a previous pipeline has the same deploy job in running state. We are facing a concurrency issue due to this. Example: Old Pipeline in running state due to a commit > Job Name…
Akash Kashyap
  • 246
  • 3
  • 8
2
votes
2 answers

Already up to date gitlab pipeline stackoverflow

i trying gitlab pipeline. now i make some changes & code pushed in master branch pipeline showing already update to date but i have changes in code I try to pull in three phase but still same issue .gitlab-ci.yml before_script: - echo "Before…
1
vote
1 answer

Is it possible to run a gitlab pipeline job only once, when a merge request is created?

Is it possible to configure a job in a gitlab pipeline to only run once, when a merge request is created? Using the rule " '$CI_PIPELINE_SOURCE == "merge_request_event"' " does not work, as it will also be triggered when there are new commits to…
1
vote
0 answers

GitLab Pipeline: Access external Files

I got a pipeline up and working. My supervisor gave me access to a VM, on which I installed gitlab-runner and all needed dependencies (I'm using the shell mode). The build task runs without problems, but I also want to create some tests. The Problem…
Moritz
  • 378
  • 5
  • 14
1
vote
0 answers

Gitlab - Check file content with pipeline

I'm creating a pipeline for manage Wordpress themes building and I need to make sure that when a user merge the code on the master branch the theme version is different from the one already present in master. For example I have in master the 1.0.0…
Christian Giupponi
  • 7,408
  • 11
  • 68
  • 113
1
vote
1 answer

How to get Terraform providers on GitLab CI runners in an air-gapped environment

I am running a Gitlab CI runner on an Azure Red Hat Linux 7.9 VM which is air-gapped and cannot communicate with the outside world due to our network restrictions. In the .gitlab-ci.yml file of my GitLab pipeline, I run some Terraform commands…
1
vote
0 answers

dotnet Entity Framework migrations in Gitlab CI

I create dotnet project and deploy to dev and prod stage using Gitlab CI. While this question can be wide enough, I didn't find such best practices on Internet. Which way is a best way to apply: DB Migrations: do I need to use it in Gitlab CI as…
Mikhail_Sam
  • 10,602
  • 11
  • 66
  • 102