Stack Exchange Network

Stack Exchange network consists of 174 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.

0
votes
0answers
7 views

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

I'm trying to trigger jenkins job after deploying a pipline I added this part in .gitlab-ci.yml but i got error when running "curl: (6) Could not resolve host" after_script: - echo "Starting ...
0
votes
2answers
20 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
10 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
17 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 ...
2
votes
0answers
17 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
13 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 ...
2
votes
1answer
33 views

How to pull all alternative tags of a docker image?

I administer a gitlab with 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 whether the ...
0
votes
1answer
16 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
7 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
16 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
27 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
0answers
22 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
44 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
14 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
88 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 +--- +-...
2
votes
1answer
403 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
94 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
16 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
53 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
23 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
156 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
137 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....
1
vote
1answer
218 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
2k 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
211 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 ...
5
votes
3answers
1k 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
344 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
109 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
892 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
215 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
47 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
452 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 --...
4
votes
1answer
3k 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
342 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 ...
4
votes
1answer
435 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
510 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
606 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
92 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
878 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 &&...
6
votes
2answers
638 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 ...
1
vote
2answers
218 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
votes
2answers
314 views

Gitlab doesn't open Word files

I'm uploading docx file in Gitlab, however it doesn't preview it. It only downloads it. Is it fixable?
2
votes
1answer
148 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 ...
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 ...
2
votes
1answer
80 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 ...
1
vote
3answers
2k 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). ...
4
votes
0answers
365 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 ...
6
votes
1answer
2k 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/* ................................ /...
4
votes
2answers
7k 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 ...