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

Get recently committed SQL scripts from Gitlab respository and deply them through Jenkins

My requirement is to pull the list of SQL scripts (.sql files) from a git repository which are recently committed to the repository and run them in the database (Oracle) through SQLPLUS through Jenkins or GitLab CI/CD runner. I have Gitlab as a…
Sabyasachi Mitra
  • 365
  • 1
  • 4
  • 12
1
vote
1 answer

GitLab doesn't see branches containing last commit

In script section of gitlab job I want to determine if commit that triggered the job belongs to some branch. $ git branch -a --contains $CI_COMMIT_SHORT_SHA * (HEAD detached at 460a1f74) I just see that head is detached on this commit, but I don't…
Daniel
  • 309
  • 1
  • 3
  • 10
1
vote
2 answers

Gitlab CI/CD switching job to manual mode dynamically

Is there any way to switch a job to manual mode (and vice-versa) dynamically? So, instead of having when: manual in gitlab-ci.yml file, it would be switched to manual (or the opposite) according to any dynamic checking. Example: Lacking of…
Luciano
  • 2,695
  • 6
  • 38
  • 53
1
vote
0 answers

Gitlab AutoDeploy unable to deploy K8s cluster on GKE

I am facing the deployment issues with Gitlab's AutoDevop feature. I wanted to deploy a simple NodeJs app on GKE using Gitlab's auto Deploy feature but getting the following error at line 73. I looks like the Helm chart used by AutoDeploy is missing…
tintin
  • 5,676
  • 15
  • 68
  • 97
1
vote
0 answers

Use Gitlab CI to create Angular Library and commit build files to different Gitlab repository

I created an Angular Library as described here: https://angular.io/guide/creating-libraries. I have already uploaded the source code to Gitlab The library is created using ng build --prod which creates a dist/ folder containing the bundled files. I…
Tom
  • 1,358
  • 2
  • 14
  • 36
1
vote
1 answer

Getting error while transfer repository from Gitlab.com to self hosted private Gitlab instance?

I am trying to migrate my repository from gitlab.com to my newly installed self-hosted Gitlab which is on my company's internal infrastructure - gitlab-private. I was working on gitlab.com but now we have got out own gitlab installed on-premise so…
mikita agrawal
  • 571
  • 1
  • 12
  • 27
1
vote
0 answers

How to trigger a Gitlab-CI pipeline using Gitlab API for latest tag?

I am reading Gitlab-CI API trigger documentation. I understand that with: curl -X POST \ -F token= \ -F ref=master \ https://gitlab.com/api/v4/projects/142/trigger/pipeline I can trigger the latest pipeline for master. How can…
Dimitri Kopriwa
  • 13,139
  • 27
  • 98
  • 204
1
vote
0 answers

It is possible save node_models on gitlab ci runner?

I have gitlab ci runner on my machine. I am interesting or exist way save node_modules on worker and update it when yarn.lock changes? Probably it will save time to install modules every time?
Edgaras Karka
  • 7,400
  • 15
  • 61
  • 115
1
vote
1 answer

Build step in pipeline is failing with connection refused error while running GitLab and GitLab-Runner docker instances locally

I am running GitLab and Gitlab-Runner docker instances locally. When a Spring Boot and Maven project pipeline is executed, I am getting below error. Getting source from Git repository 00:02 Fetching changes with git depth set to 50... …
Rob Wilkinson
  • 1,131
  • 5
  • 18
  • 34
1
vote
0 answers

GitLab runner ssh tunnel keeps going down

We have gitlab runner on vm1, and sonarqube on vm2. To allow them to communicate, we bring up an SSH tunnel on vm1. We run the following commands to bring up the SSH tunnel between the gitlab runner docker container and Sonarqube. docker exec -it…
Dylan Kapoor
  • 113
  • 1
  • 7
1
vote
2 answers

Gitlab phase contains a reference to a missing file when adding framework to Xcode project

I am struggling with a problem while using Gitlab CI/CD. I am using for my project two of my external frameworks. The project builds without errors but when running the pipeline I'm getting an error that says This Copy Files build phase contains a…
Matt199
  • 264
  • 2
  • 18
1
vote
1 answer

Generate gitlab ci artifact as native file type

I am trying to attach the ipk that is crated by my build step to a release. But it always attaches it as a zip file. Is there a way to create a link to direct download the ipk, instead of the ipk in a zip? Thanks
1
vote
0 answers

How can I include a remote private git file in .gitlab-cy.yml?

I want that my .gitlab-ci.yml starts with: include: - remote: https://gitlab-ci-token:$GL_TOKEN@gitlab.com/..../template/-/raw/master/glab-ci-template.yml The idea is to import a template to my .gitlab-ci.yml. However, I receive a 403 ERROR. How…
Rui Martins
  • 3,337
  • 5
  • 35
  • 40
1
vote
0 answers

create the same cache on more than one instance of gitlab runners

I have a gitlab runner on a machine. i used the "docker" option to run gitlab runner, meaning i run it as a docker and it starts with the PC until i stopped and remove it. I registered 3 runners in the toml inside the docker. The runners are running…
codeScriber
  • 4,582
  • 7
  • 38
  • 62
1
vote
1 answer

Unable to pass command line options to Gitlab CI services? I.e. "-p 4444:4444 -p 5900:5900"

I am configuring very basic Gitlab pipeline for protractor tests. There is only one service, using docker image selenium/standalone-chrome-debug. I want to start the image within GitLab CI as a service but with specific command line options: "docker…
mbjowsa
  • 23
  • 4