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
1
vote
2answers
14 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
21 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
votes
0answers
17 views

Docker GitLab Error database connection after upgrade 11.0.4 to 12.0.0

After upgrade a docker container (https://github.com/sameersbn/docker-gitlab) synology_gitlab 11.0.4 to 12.0.0 on a NAS Synology DS218+ The errors that I found were : Configuring gitlab::database ...
0
votes
0answers
6 views

Gitlab + Kubernetes on GCE + DIND - how to get access to docker subsystem in the cluster?

Preliminaries I am using Gitlab Community Edition 12.0.3, in which I have standard project admin permissions but no more. The installation only has few and slow CI runners, so I went and created a ...
0
votes
1answer
28 views

Docker instance of Gitlab EE Initial Configuration will not start

My system is running Ubuntu 18.04.2 LTS and Docker version 18.09.5, build e8ff056, Gitlab version gitlab-ee=12.0.3-ee.0. I am trying to spin up a docker container with the following run command: ...
0
votes
0answers
8 views

How to get GitLab on the cloud to run command with alias specified in the Dockerfile?

I'm trying to build an image with PMD to use in a runner with a project. I was planning to have PMD run a code analysis before the build and test steps. For that, I tried to set an alias for PMD ...
-1
votes
2answers
923 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?
0
votes
0answers
16 views

Hook execution failed Net::ReadTimeout when trying to clone a repository

I've been using git hooks on GitLab and got error Hook execution failed Net::ReadTimeout when trying to clone a repository is git hook has limit ? I have 866 websites listed on Integration some ...
1
vote
1answer
114 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
3answers
69 views

Auto Deploy after push to git

I have some Codeigniter projects on some domains (on the same server), and the project is already in git. How to ensure server gets the new update when I push the code to git? Can anyone explain ...
0
votes
2answers
22 views

Equivalent of GitLab's “before_script” for Jenkins?

I'm looking for Jenkins' equivalent of the before_script keyword provided by GitLab. So far what I found is the input keyword that you can use before entering the steps part of the stage, but this ...
1
vote
1answer
29 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 ...
0
votes
1answer
523 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 ...
0
votes
1answer
15 views

What package manager does the gitlab docker CI image use?

I'm trying to install additional software but apt-get is not available. So in my .gitlab-ci.yml file I have: image: docker:stable What is the image based off from?
1
vote
0answers
18 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 ...
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). ...
0
votes
1answer
14 views

Gitlab - Is there any reason not to default enable 'Allow Users to Request Access' for Projects?

Is there any reason not to default enable 'Allow Users to Request Access' for Projects? I can conceive that there may be a reason this is not enabled by default. But I am considering enabling it if ...
2
votes
0answers
27 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 ...
0
votes
1answer
30 views

Is there a [ci skip] option in GitLab CI?

I'm debugging the use of a report creator. I forgot a line and would like to edit the code without triggering the build pipeline. I know that it's possible to write [ci skip] in the commit pipeline ...
0
votes
0answers
46 views

ASP.NET Core appsettings.json secrets values transformation per environment using Gitlab

We are using Gitlab in the new company I started and is something new for me, I am not a devops guy but before collaborating with devops and using Octopus Deploy I was able to setup secrets per ...
0
votes
1answer
17 views

How to run a build from a specific old tag in gitlab ci?

I can build from a specific old tag in teamity. Screenshot: How to run a build from a specific old tag in gitlab ci? variables: MAVEN_OPTS: "-Djava.awt.headless=true -Dmaven.repo.local=.m2/...
0
votes
1answer
33 views

How do I automate the process of pulling the latest code and restarting a service on git push?

I have an application (Logstash) running on a Linux VM and the settings for it are on a GitLab repo. What I want is for the VM to pull the latest version of the settings file and restart the service ...
0
votes
1answer
292 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 ...
1
vote
1answer
36 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 ...
3
votes
1answer
443 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
1answer
37 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?
1
vote
0answers
68 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 ...
6
votes
2answers
85 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
595 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
15 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
91 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 ...
4
votes
2answers
150 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
0answers
238 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 ...
0
votes
0answers
22 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
1answer
1k 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
1answer
592 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
2answers
77 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?
2
votes
0answers
149 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 ...
3
votes
1answer
353 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
127 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
29 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 ...
2
votes
1answer
479 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
2answers
775 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
8k 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 ...
-1
votes
1answer
635 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: ...
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 ...
3
votes
0answers
208 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
19 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 ...
0
votes
1answer
243 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
65 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['...