Questions tagged [gitlab]

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

Filter by
Sorted by
Tagged with
7
votes
2answers
1k views

Multiple paths with different expiry time in gitlab-ci runners

I'm having issues with parsing a build directory between stages using Gitlab-CI. Gitlab-CI wipes the created build artifacts between stages which seems weird. I'm trying to store the build artifacts ...
7
votes
3answers
10k 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 ...
7
votes
1answer
2k views

How to configure gitlab-runner to run in the same docker host as gitlab?

I have a gitlab instance running in a docker container. Now I would like to setup gitlab-runner on the same host. Both are running: docker container ls CONTAINER ID IMAGE ...
6
votes
1answer
4k views

Changing the build intermediate paths for gitlab-runner

I have a server pointed as ab12.xy24.com in which the projects are placed as: Path-1 /home/ab12/public_html/project1/* /home/ab12/public_html/project2/* ................................ /...
6
votes
2answers
107 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 ...
6
votes
1answer
3k views

Using gitlab-ci to cache maven repository

We have a server running gitlab and gitlab-runners on same machine. I've defined a runner as below [abc@xyz bin]# gitlab-ci-multi-runner register Running in system-mode. ...
6
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 ...
5
votes
2answers
954 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
898 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
3answers
3k 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 ...
4
votes
1answer
115 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
2answers
14k views

fatal: ambiguous argument 'master': unknown revision or path not in the working tree

when I modified one of my cookbook that I tried to add a cookbook dependency in berks file cookbook name, '=0.1.0', git: 'ssh://url:xxx/cookbook', tag: '0.0.1' and then tried to converge it which ...
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 &&...
4
votes
1answer
6k 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 ...
4
votes
1answer
790 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.
4
votes
0answers
261 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 ...
4
votes
2answers
234 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 ...
4
votes
0answers
506 views

Problems with integrating Python script in a Bash script Git pre-receive hook [closed]

We have a pre-receive hook script in a bash shell script that enforces commits with messages having the right ticket number in a pre-defined format. We also have a separate python script that can be ...
3
votes
1answer
167 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 +--- +-...
3
votes
1answer
4k 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 .....
3
votes
1answer
135 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 ...
3
votes
1answer
2k 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 ...
3
votes
1answer
156 views

GitLab Pages delivers random content

I am experiencing weird behavior with the Pages feature of GitLab Omnibus package running on an Ubuntu 16.04 virtual machine. Some projects use Pages with Jekyll built by GitLab CI, which has been ...
3
votes
1answer
555 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
1k views

Where to obtain the 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 ...
3
votes
0answers
49 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 ...
3
votes
1answer
455 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. ...
2
votes
3answers
5k views

Jenkins shows the job as failed if there is nothing to commit to gitlab

I have been using one Jenkins job, that will pull repository from gitlab. Then it will modify the files and push it into gitlab (only if any user added any new files/modify contents in gitlab). ...
2
votes
2answers
78 views

Cost-efficient hosting for CI/CD?

I'm paying over $300/month for Kubernetes to have CI/CD in GitLab. And it only covers web apps, Android apps and deployment to Google Cloud. Plus some staging environments, that do not require many ...
2
votes
1answer
612 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 --...
2
votes
1answer
43 views

Code review with GitLab?

Is there a way to perform code review (for your own projects) using GitLab? For instance automated reviews, but also manual review where you can comment and propose changes at a review of a commit?
2
votes
2answers
1k 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 ...
2
votes
2answers
83 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
100 views

Jenkins Testing PR's - allowing broken builds

I have a very large codebase that currently takes ~30 minutes to build via Jenkins. It's connected to our Source control/review system (Let's just say GitHub for now) so that every PR automatically ...
2
votes
1answer
577 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’...
2
votes
1answer
33 views

How to properly manage mupltiple environmental variables with Gitlab CI and Docker Swarm?

In our project we are using Docker and we have multiple services with a pile of environmental variables (mostly credentials to various dbs, mail, samba, 30+ entries in total). It all worked well with ...
2
votes
0answers
34 views

How to add status flags or manual steps to CI/CD process with GitLab Pipelines

I'm trying to set up a CI/CD GitLab Pipeline with feature branches with various stages of testing, both automated and manual, culminating with an automatic merge to master at the end. I'm struggling ...
2
votes
0answers
246 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 ...
2
votes
0answers
219 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 ...
1
vote
2answers
193 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 ...
1
vote
1answer
3k 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 ...
1
vote
2answers
287 views

Mastering CI infrastructure changes with GitLab

With Bamboo, a best practice for infrastructure management of agents seems to be using Docker: any time you need a new version of compiler or test tool, the path to deploy a modified version of an ...
1
vote
1answer
18 views

How to execute shell command or call URL on new gitlab issue?

I want to execute a shell command or call a URL when a user creates a new issue. The reason behind this is to synchronize our Gitlab issues with our CalDav calendar infrastructure. We are using Gitlab ...
1
vote
1answer
25 views

Can I persist a Yarn install through different stages in a GitLab pipeline?

I was thinking about a pipeline with the following steps: Install image dependencies (such as java, node, yarn and openssl) Install node packages needed for the build Install PMD Do a code Analysis ...
1
vote
1answer
49 views

Overview of Gitlab CI/CD process for multi-project SOA application. Releasing and Versioning

I have a SOA-application. Each service is a separate project in Gitlab with its own Dockerfile. So, in terms of structure it looks as follows \UserService Dockerfile \src \OrderService ...
1
vote
2answers
108 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
vote
1answer
133 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 ...
1
vote
1answer
691 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. ...
1
vote
0answers
29 views

Trying to migrate CI/CD process from Jenkins to Gitlab Runner + Docker on Windows

I need to improve the CI process of my projects, which is basically composed of the following things: a Linux server, that contains a Jenkins master a VM with Windows 10, with a Jenkins slave, ...
1
vote
1answer
35 views

CI pipelines, concurrency and build results possibly overwriting each-other

I'm currently using gitlab-ci to generate docker images for some repositories, however i dont feel as though this solution is as reliable as it should be. I can forsee a issue with multiple builds ...