Questions tagged [gitlab-ci-runner]

This is GitLab Runner repository, this application run tests and sends the results to GitLab CI. GitLab CI is the open-source continuous integration server that coordinates the testing.

For Documentation see docs.gitlab.com/runner/

3028 questions
1
vote
1 answer

Trigger gitlab downstream pipeline from a upstream pipeline in a multi-project using trigger, rules and custom configuration variables

I have this scenario where I want to run the trigger in build stage only when $FLAG variable has been set by the .pre stage. However, the build stage never runs. How should I conditionally trigger a downstream pipeline? checkArtifactPresent: …
1
vote
1 answer

Gitlab CI does not checkout new updated submodule

I am using Git submodule in my repository. Whenever I update the submodule to a new commit or tag in the repository after committing the changes the pipeline starts and the runner checkouts the repository with the submodule. The problem is that it…
deanavenger
  • 582
  • 1
  • 7
  • 24
1
vote
1 answer

Gitlab CI / Gitlab Runner - Which version of gitlab-ci.yml is used?

Which version of .gitlab-ci.yml is actually been taken when running CI-Jobs in a MergeRequest? Is it the version provided in the source-branch, target-branch, or master?
jschnasse
  • 8,526
  • 6
  • 32
  • 72
1
vote
1 answer

Gitlab CI :- Getting pending status after push on the gitlab

I am using the Gitlab-ci for the creating the build on the push,I have also creating the .gitlab-ci.yml inside my root directory. With each push the code on the Gitlab , i am getting the following message which are as follow This job is stuck…
Ravindra Kushwaha
  • 7,846
  • 14
  • 53
  • 103
1
vote
1 answer

Auto run GitLab pipeline only after MR is raised

To keep things short, these are the requirements for workflow of a GitLab CI/CD pipeline Pipeline should automatically run on MR create event Pipeline should not run for any commit/push before or after MR is created
1
vote
0 answers

How do I set gitlab job to fail when script returns 1?

I have a project that uses gulp to build and I am setting up the GitLab Pipeline for Continuous Integration. I committed some changes for the job to fail intentionally, the command failed but the job ended as "Succeeded". This is the output: sh: 1:…
MSoutto
  • 68
  • 7
1
vote
2 answers

Gitlab CI/CD caching

I am wanted to try out caching on my Gitlab project following documentation here - https://docs.gitlab.com/ee/ci/caching/#how-archiving-and-extracting-works. I have a project specific runner and am using docker executor, but I get error cat:…
user430953
  • 191
  • 2
  • 19
1
vote
0 answers

Can you use a docker image from a private docker hub registry within a GitLab CI/CD pipeline?

I'm trying to use an image from a private docker hub registry within my GitLab .yml file. I assume I would need some way of logging into docker hub to access the private registry, however, I'm pretty sure the runner is trying to pull the image…
1
vote
0 answers

Using gitlab to deploy spring cloud microservices using docker-compose

After researching about different CI i decided to use Gitlab to build and deploy my application which is a set Spring boot applications using Spring cloud. I have installed Gitlab on prem. on our build server and installed gitlab-runner on…
mettok
  • 537
  • 1
  • 12
  • 23
1
vote
2 answers

gitlab-runner on Windows not getting .ssh config settings

I've got a repo that is dependent upon some other repos. I'm trying to clone the secondary repo onto a Windows box using gitlab-runner. My gitlab-ci.yml looks like this: # Deploy to a staging server deploy_staging: stage: deploy tags: -…
Hanny
  • 580
  • 3
  • 16
  • 44
1
vote
1 answer

Gitlab CI PIP AWSCLI Avoid Install Again

I'm working with GitLab CE, Runners Docker and AWS ECS for Deployment. We created a script that do what we need but we separate the stages and jobs for Development. The problem is that we need to run this scripts to connect to AWS and let us to…
Ulises
  • 406
  • 7
  • 22
1
vote
1 answer

Make a gitlab-ci runner running on docker use shell executor on host

we are have a gitlab-ci runner which is hosted on a docker container running under server A. Now we want to make the gitlab-ci runner configured as a container to execute the commands on the host machine. We tried registering the runner as "shell"…
user10688813
  • 61
  • 1
  • 4
1
vote
1 answer

Dotnet core code publish push to s3 as Zip from gitlab CI/CD

How can I zip the artifacts before copying to s3 bucket, this is done as the beanstalk requires zip file to update. I wanted to deploy the dotnet publish code in beanstalk. I am using Gitlab CI/CD to trigger the build when new changes are pushed to…
1
vote
0 answers

GitLab CI: Is it possible to restrict artifact downloads in a matrix?

I'm wondering if it's possible to only download specific artifacts generated from a previous matrix job. So not every job in the next matrix downloads every single artifacts from all previous matrix jobs. Example would be: Pipeline: Composer Matrix…
1
vote
0 answers

Gitlab CI pipeline pull fails without trace

After updating Docker (to newest 19.03.13) and postgres (from 12 to 13) my gitlab pipeline now fails - without an traces. It is triggered but pull fails after 1second, without any traces. Gitlab runner is running, and is not shared with other…