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
96 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
938 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
893 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
114 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
783 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
249 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
223 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
503 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
161 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
134 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
155 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
504 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
0answers
47 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
454 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
1answer
604 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
957 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
99 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
1k 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 ...
2
votes
1answer
556 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
0answers
32 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
204 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
192 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
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
16 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
24 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
45 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
103 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
130 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
671 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
1answer
33 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 ...
1
vote
1answer
94 views

Trigger cicd pipeline after merge request accept on master, Gitlab

Trying to run some task after merge request get accept (only on master branch). I am aware of only: - master -merge_requests config options, but want to specifically run pipeline only when code get ...
1
vote
2answers
46 views

Trigger a GitlabCI pipeline after it detects a change via a curl callback

I would like to trigger a GitlabCI pipeline that builds a Packer image, whenever there is a new version of a binary released in Github. How could I do that via the ci yaml configuration? Should I ...
1
vote
1answer
64 views

GitLab CI/CD job without pulling LFS files?

When our GitLab CI/CD job runs, it first pulls a Docker image and then git clones the entire repo. Afterwards, the Build commands are executed in the Docker image, etc. Is it possible to only clone ...
1
vote
0answers
25 views

Set global repository access to GitLab via GitLab connections and Gitlab OAuth

I am trying to configure a secured Jenkins server in a company network where GitLab CE is already running. I have set the access control and the authorization system in Jenkins via the GitLab ...
1
vote
0answers
203 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 ...