Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [gitlab]

For questions about GitLab, an open source Git repository manager with issue tracking, wiki and continuous integration facilities.

1
vote
0answers
8 views

How to use shared runner (dind) for build stage and runner with shell executor on my server for deploy stage?

I want to do the build of my image on a shared runner and build it on gitlab registry. then I want to pull that image, on my server using the runner on my server using shell executor. but I face a ...
5
votes
2answers
54 views

How should CI/CD deploy to production environment - copy artifacts or git pull from the server?

We have an internal CI/CD server running private GitLab. It has the source code of our NodeJS project. We would like to run CI/CD and have it deploys to our on-premises production server. (Let's ...
1
vote
0answers
108 views

Access denied when pulling private registry image using helm with gitlab runner helm chart and ci job

I have a kubernetes cluster with 1 master and 2 workers. All nodes have their IP address. Let's call them like this: master-0 worker-0 worker-1 The network pod policy and all my nodes communication ...
1
vote
0answers
14 views

How to handle Webhook Endpoint that is behind an OAuth Redirect?

ers! I am trying to connect a webhook from GitLab (external standalone) to Jenkins (a pod on Openshift) However, when anyone tries to log onto Jenkins, they are redirected to Openshift first, asked ...
1
vote
0answers
32 views

Read webhook payload in Gitlab CI

I have a project (PROJECT_A) that is triggered through a webhook, and expects the variable $PRODUCT to be set. Its value is used to trigger a certain path in the build. The job in the .gitlab-ci.yml ...
2
votes
0answers
63 views

How to ensure testing execution order with GitLab CI?

I have about half a dozen of integration tests (handled with Robot Framework) to run in a GitLab CI pipeline. Once upon a time, we did not care about the execution order of these tests. The ...
0
votes
1answer
118 views

Is it possible to have multiple gitlab-ci files in a single repo?

I have a single repo handling integration tests for 4 different software projects. As those projects share common resources, I'd like to create a generic file in which all those common features are ...
2
votes
1answer
88 views

Run scripts which are stored in GitLab from Jenkins

I have configured Jenkins Build Jobs and Deployment Jobs from using Jenkins shell. But I put all the commands in Shell to execute. Can I store those commands in GitLab and execute from jenkins?
3
votes
1answer
117 views

How to handle large deployments using tools like gitlab and docker

How to deploy multiple instances (40+) of the same application with gitlab? (it is a simple tomcat web app) I want to be able to individually upgrade/downgrade them using web interface. We already ...
0
votes
0answers
19 views

Retaining temporary job side containers with GitLab runner

If you run a specific GitLab runner (i.e. a CI build agent) as a Docker container, it would spawn temporary side containers and remove them after job exits. Is there a way to tell the runner to ...
0
votes
0answers
137 views

curl: (6) Could not resolve host error from Gitlab Runner

I'm trying to trigger jenkins job after deploying a pipeline; I've added this part in .gitlab-ci.yml but I got below error when running the job in the after_script section "curl: (6) Could not ...
1
vote
2answers
45 views

How to trigger Jenkins job by deploying git pipline using webhook?

I have a Jenkins job which I want to trigger after deploying pipeline in Gitlab, Is this possible with webhooks or some other way?
-1
votes
1answer
203 views

zip: command not found after installing zip on NODE docker image, even after installing p7zip?

I'm trying to zip my dist folder and post to it Azure's kudu zipdeploy endpoint but I keep getting this error regardless of the fact that I have installed a zipping package myself. My docker image: ...
0
votes
1answer
182 views

Jenkins poll scm issue- Multiple jobs configured in single repo

We configured multiple jobs in single repo and enabled poll scm. The build is not triggerring whenever checkins happened. Let me know is it possible that poll scm will work for multiple jobs in ...
3
votes
0answers
81 views

How to implement GitLab Flow branching model for microservices?

Recently I’ve been looking into alternatives to the git flow branching model and since I’m already using GitLab, I stumbled upon their own branching model called GitLab flow. I’m currently trying to ...
0
votes
2answers
18 views

How to make one branch public while the others remain private on GitLab?

I am currently working on a LaTeX template. I chose gitlab to host the template. Now I want to give some colleagues access to my template, but only to the master branch. I use the other branches to ...
5
votes
2answers
90 views

How to pull all alternative tags of a Docker image?

I administer a GitLab instance with a build pipeline. All components are encapsulated in Docker images from the official GitLab maintainer. Whenever I update - usually once a week - I need to check ...
0
votes
1answer
103 views

vagrant box tests in gitlab-ci

I have a vagrant box, provisioned with Ansible that needs testing on github pull requests. Is it possible to setup CI test suite for the mirror in gitlab-ci without extra expenses on droplets? Or ...
0
votes
0answers
20 views

How to filter GitLab jobs by runner?

One of the GitLab runners has got itself into a bit of a state, and to find out how I would like to show only jobs (or just the logs of jobs, if possible) on that runner. I do have shell access on the ...
0
votes
0answers
37 views

Configuring Gitlab SMTP for QQ exmail

Following is my gitlab.rb file with SMTP configuration for QQ exmail gitlab_rails['gitlab_email_from'] = "gitlab@example.com" gitlab_rails['gitlab_support_email'] = "gitlab@example.com" gitlab_rails['...
0
votes
0answers
66 views

Universal CICD Pipeline?

I have multiple Node.js projects in Gitlab. They all use the same exact CI/CD pipeline. Therefore, I have X number of the same exact .gitlab-ci files. That being said, is there a way to get rid of ...
0
votes
1answer
162 views

Trigger a cross project GitLab trigger

I am trying to call a trigger on one GitLab project using a job on another. Let’s call one A, and the other B. I want a job in A to trigger a job in B. In A, this is what my .gitlab-ci.yml looks ...
1
vote
1answer
79 views

Chef resource to register gitlab runner automatically

We would like to automate installation of gitlab runner using chef. we are successful with it. Now, the Issue is regarding registering gitlab runner with chef resource. we have gone through chef ...
0
votes
0answers
22 views

How to FTP Directly from 3rdPartyHostingServer to ClountStack like GitLab, GitHub, AWS,etc?

I am working on a Web App. I am facing an issue with DevOps environment and looking for a solution for the same. My local machine is Win10 machine. I have my code on a 3rdParty Hosting Server(e.g ...
3
votes
1answer
117 views

What's the practice to perform a releasing with Git?

I'm using GitLab CE with Maven project, and try to follow the Environment branches with GitLab flow and The 11 Rules of GitLab Flow The step for releasing is as the following: - feature +--- +-...
4
votes
1answer
2k views

Jenkins Pipeline “Build when a change is pushed to GitLab”

I have a Jenkins declarative pipeline that is ran via a webhook from GitLab whenever a change is pushed to my repo. In Jenkins, I have the following trigger option selected: Is there a way for me to ...
1
vote
1answer
367 views

Jenkins Pipeline GitLab API Credentials Management

I have a Jenkins pipeline that executes a build whenever a change is pushed to the appropriate branch. Jenkins uses an API token to authenticate with the GitLab server and checkout the repository. ...
3
votes
0answers
25 views

After deployment, one Rancher load balanced RESTful app instance returns 404 while other returns results

I have setup a CI/CD pipeline which triggers builds, packages, and deploys tasks that execute on Gitlab online whenever a Spring boot RESTful service app is checked in. The three stages and tasks run ...
2
votes
1answer
407 views

obtaining token to register a gitlab runner

I have a gitlab repository. I want to add a runner to it. I was able to install it,with the instruction here without docker (step 3). Now I have to register it according to the instructions here. In ...
0
votes
0answers
39 views

How add Dependencies without DEP?

I did create go project. I did test on local developer PC: all did work. Did upload src to GitLab. After I did want to create CI_CD (gitlab/Jenkins/Artifactory) with putting on target server. Go App ...
1
vote
0answers
240 views

Kubernetes Continuous deployment stage in Gitlab Online fails

I am working on setting up a cloud DevOps deployment pipeline using Gitlab CI online, Kubernetes, and docker. I am following an example post at Continous delivery of a spring boot application with ...
0
votes
1answer
217 views

Adding a persistent volume to a Kubernetes deployment from Gitlab Auto Dev-ops

Recently, GitLab partnered up with Google Cloud to provide automatic deployment to Kubernetes clusters directly from project repos. I enabled Auto Dev-Ops on my project, which just contains some Node....
2
votes
1answer
355 views

Rancher & gitlab-runner - is there a way to get the gitlab-runner to tell Rancher to start the CI test environment instead?

I’ve got an AWS gitlab instance successfully doing CI with gitlab-runners running under vagrant on my local dev machine. I’d like to move the runners off my machine and onto a standalone server... I’...
3
votes
1answer
3k views

GitLab Runner is using its Docker host's hostname as Git server FQDN/hostname

When using a GitLab Runner with a "docker" executor, the following build error occurs: Running with gitlab-runner 10.7.0 (7c273476) on main 80500676 Using Docker executor with image centos:latest .....
2
votes
2answers
478 views

Git Workflow with User Acceptance and Staging Environments

I'm trying to streamline/standardize a git workflow in my workplace. The current delopment process is as follows: Pull 'development' branch Write code and commit and push to 'development' branch ...
6
votes
3answers
5k views

How to tag source code using gitlabCI

We got gitlab new to our environment and trying to create some CI CD pipelines using gitlab CI. I have got some better progress with running some maven goals, creating pipelines and archiving ...
0
votes
0answers
456 views

How to implement Auto Review Apps on GitLab with Docker Compose and Swarm

I would like to have an Auto Review App available for every branch of my repo. My project is composed of multiple containers, and uses docker-compose.yml, but GitLab's Auto DevOps doesn't support it ...
0
votes
2answers
147 views

Should I build my own pipeline or use GitLab for Kubernetes?

My company is moving from an architecture of "many projects on a single webserver" to a Kubernetes cluster with multiple different hosted web applications in a single cluster. In order to make ...
4
votes
3answers
2k views

Trigger Jenkins job from Gitlab CI with parameters

There is supposed to be a way to trigger a Jenkins job via GitlabCi, using the respective plugin. My question is whether there is a way: a) to trigger a parameterized Jenkins job b) to pass ...
0
votes
1answer
332 views

Have Jenkins trigger GitlabCI

Assuming a user initiates a Jenkins job, passing some input parameters. Is there a way, at some point to have the Jenkins job trigger a gitlab-ci, and also pass to it (i.e. the gitlab pipeline) some ...
2
votes
2answers
68 views

Reflect GitLab repo changes in VSTS code

I have a repository in GitLab that is used by our development team. On the other hand, there is a VSTS setup (at xyz.visualstudio.com) that we use to manage our scrum board. As of today, we have to ...
2
votes
1answer
512 views

Gitlab CI Runner command line doesn't care about --parameters

I'm trying to write a windows batch file to automate the gitlab runner registration : SET /p token=Token ?: gitlab-runner register --locked false --run-untagged true --tag-list java --name foo --...
5
votes
1answer
4k views

CI/CD for microservices in monorepo on Gitlab

I'm working on a project that consists of several different services in different languages (a React webapp, a Scala backend, some Python stuff etc). I currently have each of these services in ...
3
votes
1answer
418 views

Globally configuring Gitlab with Jenkins in docker container environment

I have Jenkins users authenticated by OpenLDAP and also gitlab CE instance authenticated by the same OpenLDAP. And all the three are running in three different docker containers in the same network. ...
3
votes
1answer
1k views

GitLab - trigger pipeline to build on specific runner

Scenario Create a new virtual machine with runner installed Trigger a pipeline to run (from another project), which runs on this new virtual machine Do something else, or fail if pipeline above fails ...
5
votes
1answer
612 views

Automatic Docker Hub builds from GitLAB, not github

As per title. I would like to configure automated builds on Docker Hub, as specified here. My build context (the build context is a repository containing a Dockerfile) is hosted in GitLAB.
5
votes
2answers
687 views

Multiple runners for all projects OR single runner per project

What do we have: We have a Gitlab EE with multiple projects running on a droplet, next to that we have a runner server for the CI runners. All projects are Docker projects and 4 runners can be busy at ...
5
votes
1answer
712 views

Building a Docker container using Gitlab CI Docker runner

I am trying to build a docker image using Gitlab Docker runner. For this I have configured the runner with a shared volume in /etc/gitlab-runner/config.toml called /builds: concurrent = 1 ...
4
votes
1answer
99 views

What OS should a master node CI virtual machine be?

Say you are developing a new CI/CD system, deploy builds across Linux, Windows and Mac, and have now reached the point of wanting to deploy a master node which hosts your chosen CI tool. How do you ...
4
votes
1answer
1k views

Gitlab Runner not running scripts with Windows shell configuration

I have a Gitlab Runner running locally on my windows box. It works fine for the before script section. my .gitlab-ci.yml follows: before_script: - pushd . && uru 233 && popd &&...