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
0
votes
1answer
39 views

Should I struggle for minimalistic context in GitLab CI jobs?

I'm designing a build & deploy pipeline for our project. We have two jobs: build -- builds a docker image with our app and pushes it to a container registry. deploy -- communicates with an ...
0
votes
1answer
16 views

Checking Jenkins build status from only one pipeline and avoid from other pipeline pointing to same gitlab repo in PR build

Hi I am having two jenkins pipeline pointing to same git repo one pipeline is named as mainpipeline and other is sit pipeline. Before sit pipeline our git PR build is checking the build status from ...
0
votes
1answer
23 views

How to get code onto aws ec2 instance using terraform and gitlabs

I've just started learning Terraform (utilizing the AWS provider) and I have managed to replicate our infrastructure which includes quite a few amazon web services. I can successfully deploy it and ...
0
votes
0answers
11 views

GitLab Pipeline error with differents commits

Good morning, I am encountering the following problem, I have a pipeline of a project with node inside GitLab, I have CI/CD but I have it controlled by pressing a button. Let's imagine I have a series ...
0
votes
1answer
54 views

Gitlab CI/CD: deploy docker image to existing kubernetes cluster

I have node.js application that I need to deploy to exising kubernetes cluster. The cluster is setup using kops on AWS. I have created .gitlab-ci.yml file for building docker images. So, whenever a ...
0
votes
1answer
23 views

Auto create Jenkins jobs for branches and pull request via declarative code in scm

I am looking to auto create jobs in jenkins upon pull request , branches, master push etc similar to what we do in Gitlab. My SCM is butbucket here. I have so far setup docker based agent integration ...
0
votes
0answers
17 views

What can You do in the .gitlab folder

I'm in the starting blocks of a project that will have many teams delivering many applications/utilities that can benefit som similar structures and settings. I know for instance that you can add a ....
0
votes
1answer
23 views

Where/what is the `auto-devops` script in gitlab's “auto devops” staging stage?

https://gitlab.com/gitlab-org/gitlab/blob/master/lib/gitlab/ci/templates/Jobs/Deploy.gitlab-ci.yml staging: extends: .auto-deploy stage: staging script: - auto-deploy check_kube_domain - ...
1
vote
1answer
14 views

How do I set a base domain for gitlab's auto devops?

Docs seem to point to https://docs.gitlab.com/ee/user/project/clusters/index.html#base-domain However it doesn't seem to specify how to set the base domain strangely enough. Can't seem to find info no ...
0
votes
0answers
15 views

Run elixir commands with gitlab-ci

To automate elixir based application ,created a systemd service [Service] Type=simple User=gitlab-runner Group=gitlab-runner Environment=LANG=en_US.UTF-8 WorkingDirectory=/path/to/elixirModule ...
0
votes
2answers
44 views

Can I run multiple pipelines in a single GitLab repo using GitLab CI/CD?

I know that I can't have multiple gitlab-ci.yml files in one repo, but it still seems fairly limited. Say for example I have one set of tests I want to run whenever a change is pushed or on PRs, and ...
0
votes
1answer
23 views

How can we prepare GitLab runners using Ansible deploys

Given We run an in-house GitLab server, with many projects (aka "repositories") We provision all servers using Ansible (and deploy projects using pip) We deploy to dev.project.example.com ...
1
vote
1answer
70 views

GitLab CI/CD and building on Mac Mini with M1 Processor - Provision Profile

I followed a guide to setup a simple GitLab runner on my 2020 mac Mini with an M1 processor. Everything builds great except for iOS. My error: Xcode build done. ...
0
votes
1answer
20 views

Howto run test on test computer instead of build computer, using gitlab

I'm learning gitlab and am asking for advice / best practice here. I want to install a program to a different machine than the build computer, and run some automatic tests on that machine. How is this ...
1
vote
2answers
51 views

Gitlab runner fails with connection timeout

I have gitlab runner with, docker as executor and docker:latest as default image. Runner is connected to the project and runs pipeline, but it stuck at Reinitialized existing Git repository in /...
1
vote
1answer
32 views

Jenkins: Access job/plugin configuration values inside pipeline

I am trying the access the values set on a job's configuration page from within my pipeline. These values are not made available as params, nor are they injected as envvars. Setup Jenkins, v2.263.1 ...
0
votes
2answers
67 views

What would be the best way to improve this Gitlab CI/CD (Gitlab.com) pipeline's efficiency and consistency?

This project has a pipeline that runs integration tests against a spun up instance of Gitlab. Each Job in the integration test stage has its own instance testing different build distributions (es, cjs,...
0
votes
0answers
21 views

Azure DecOps push to GitLab

Within Azure DevOps I am trying to create a Command Line Script which is pushing the actual DevOps Repo to GitLab. git clone https://xxxx@dev.azure.com/xxxx/DBS/_git/xxx git remote add --mirror=fetch ...
3
votes
2answers
92 views

How to get GitLab CI to rebuild on JIRA issue status change?

I would like to start builds in GitLab CI in response to issue transitions in JIRA. I have not found a direct way to do that from searching online. I have found ways to get GitLab to tell JIRA what to ...
2
votes
2answers
53 views

How can I make artifacts available to the QA team with a user-friendly UI?

Currently developers push to master, jenkins picks that up, builds it, and then I go to artifacts, download the APK files and upload them in a Microsoft teams group so that the QA team can download ...
1
vote
1answer
100 views

How do I SSH into an EC2 instance from AWS gitlab-runner?

I have setup my own gitlab-runner on AWS following GitLab's walkthrough (Autoscaling GitLab Runner on AWS EC2). One step in my deployment is to SSH into another EC2 instance. The SSH connection fails ...
1
vote
1answer
282 views

Terraform - gitlab provider does not start

I am using terraform docker image hashicorp/terraform:latest and I define the provider in main.tf as follows: terraform { required_providers { gitlab = { source = "gitlabhq/gitlab&...
0
votes
0answers
346 views

Gitlab-ci docker login x509 certificate signed by unknown authority

I have an on-premise installation of gitlab with an enabled gitlab registry on the same host. So, both gitlab server and gitlab registry are under the same hostname. The gitlab ci runner is on ...
1
vote
1answer
40 views

gitlab kubernernetes integration: configuring the installed runner

I connected my existing kubernetes cluster to gitlab using the gitlab integration in myproject/operations/kubernetes on the left tab pane in the gitlab gui. After having installed helm + gitlab runner ...
0
votes
0answers
17 views

Retrieve build on tagged commit from GitLab CI

I have a project that uses GitLab CI. I'm preparing the same to be able to deploy to the PRODUCTION environment when the repository is tagged with a particular pattern. I know I can trigger a pipeline ...
0
votes
0answers
13 views

Managing multiple “staging” branches in a git workflow

We're creating a migration workflow to move from SVN to Git, and we've hit a particular snag that is increasing the complexity of the proposed workflow. Some basic base for what we do in our current ...
-1
votes
1answer
280 views

invalid base hashes in `extends` with 'include' — gitlab-ci

I have a huge .gitlab-ci.yml file that I am trying to turn into the "main" ci file by moving some parts to another files which will then be called with the use of the "include" ...
0
votes
1answer
107 views

Trigger gitlab downstream pipeline from a upstream pipeline in a multi-project using trigger, rules and custom configuration variables

I have this scenario where I want to run the trigger in build stage only when $FLAG variable has been set by the .pre stage. However, the build stage never runs. How should I conditionally trigger a ...
0
votes
0answers
13 views

GitLab repo when pushing to deploy branch automatically build and deploy to multiple Heroku apps

We are trying to move from GitHub to GitLab. Our app is a monolith built on the MEAN stack. Currently, we have > 50 Heroku apps tied to the "deploy" branch of our Github repo. When we ...
0
votes
0answers
23 views

GitLab mirror error/glitch

Got an email from gitlab stating that repository mirroring (github) paused due an error: Fetching remote upstream failed: fatal: Unable to create '/var/opt/gitlab/git-data/repositories/@hashed/4a/5c/...
1
vote
1answer
36 views

Host credential manager and Docker runners

Imagine you have a GitLab Docker runner which you would like to pass credentials from a credential store. That is the CI/CD variable just designates the credentials profile name. Is there a way to ...
0
votes
1answer
54 views

Gitlab CI - Deploy to an active docker container

I am running production code within an active docker container. I would like to use the Gitlab CI tool to auto deploy changes to the production environment WITHIN the docker container. I am having ...
-1
votes
1answer
61 views

Is gitlab-runner suit for production use

Is the GitLab CI/CD tools suit/reliable for production use? As more details, I have more than two servers and they've gitlab-runner inside then connected as runners to my GitLab instance. In this case,...
0
votes
1answer
85 views

Reset Gitlab Project to Repository Content

I had some unwanted files in a repo which is going open-source soon. I removed the files using git-filter-branch. I noticed the project size in Gitlab growing with every such removal. Some research ...
1
vote
1answer
40 views

Is there any other approach for tagging git branch using pipeline without credentials in pipeline code?

I was trying to tag a git branch using Gitlab CI. With the help of this answer from this community, How to tag source code using gitlabCI I can successfully tag a git branch from Gitlab CI pipeline. ...
1
vote
0answers
44 views

Can Gitlab Auto DevOps provide an aws/dynamodb-local service without being customised?

I'm using an aws/dynamodb-local Docker container for use during local testing of my Node application and I'd like to integrate it with my Gitlab CI test job. I have made a rudimentary extension to ...
0
votes
2answers
92 views

Gitlab CI - Change branch dynamically

I have a nodeJS application which I deploy with Gitlab CI. When pushing to branch XYZ, the corresponding script runs, let's assume on stage 'dev'. That's working. So far so good. Is it possible to ...
1
vote
1answer
67 views

GitLab pipeline stop at the stage of pulling an image from Docker hub

Description: I have created a test project to serve a simple HTML page with httpd:alpine image. The following are the parts of the repository: index.html: <html lang="en"> <head> ...
1
vote
2answers
157 views

gitlab CI job fails after manual ftp deploy (lftp) command completes successfully

Scenario I'm using LFTP to deploy files via sftp. The transfer completes successfully and all files get to the destination but for some reason the job fails. Question How can I find out what is ...
1
vote
1answer
30 views

How to render assets when building a static website with GitLab Pages and Jekyll

I'm using Jekyll to build a static site and deploy it with GitLab Pages. This site is compounded of posts (contained in the site/_posts folder) and refer to other HTML and Markdown documents that I ...
1
vote
1answer
19 views

How to copy library source code from other Git repo to an Android Gradle application GitLab build process?

There is an Android application using Grandle for build. It uses a "library" stated in build.gradle file: dependencies { api project(path: ':specialproject.speciallibrary', configuration:...
1
vote
1answer
29 views

Devops CICD run ReactJS application while testing with jest + puppeteer [closed]

Scenario I'm working on getting my end-to-end tests to work in a GitLab pipeline. Currently all the tests run locally but I'm having an issue getting them to run using GitLab's continuous integration ...
1
vote
1answer
85 views

GitLab keeps loading and finally fails when deploying a dockerized node.js app

GitLab Job Log [0KRunning with gitlab-runner 13.2.0-rc2 (45f2b4ec) [0;m[0K on docker-auto-scale fa6cab46 [0;msection_start:1595233272:prepare_executor [0K[0K[36;1mPreparing the "docker+machine&...
0
votes
1answer
1k views

GitLab: Make commit in (shared) CI runner and push to repository/open merge request

I want to run a scheduled pipeline on the shared runners that is able to open a merge request on my repository. I want to run a script that checks if updates for my pinned packages exists and if yes ...
0
votes
1answer
171 views

Gitlab CI push to docker-registry fails

I have GitLab server and a separate docker-registry. I have created a testuser with a testpassword. My .gitlab-ci.yml image: docker:latest services: - docker:18.09.7-dind variables: ...
1
vote
0answers
18 views

Pipeline gitlab showned as “running” even though it isn't

I'm using gitlab CI/CD and I have a pipeline which does the following things : code verification build some test deploy in a test environment (manual) Some more tests If we don't do the deploy, ...
2
votes
0answers
69 views

Gitlab: Always having the possibility to launch a manual job (even if something failed before)

I'm using gitlab-ci. I have a pipeline that has the following steps : code-verification some tests deploy (manual) some more tests rollback (manual) Both the deploy and the rollback job have to ...
2
votes
1answer
67 views

How to specify 'os' for free gitlab runners ('runs-on' equivalent)

How can I specify the operating system in the .gitlab-ci file to indicate which underlying OS on which the gitlab-runner should be running when using the 2,000 minutes of free execution in with gitlab....
0
votes
0answers
43 views

How to run a schedule job on a specific tag

According to this picture, I can schedule a pipeline for a specific tag. However, I don't understand how to do that. I know how to schedule the run of a pipeline for a specific branch (I have already ...
2
votes
1answer
239 views

GitLab CI/CD page listing many gitlab runners that no longer exist

I am running GitLab Runner using a Helm chart as described on the GitLab Runner Helm Chart page. Everything seems to be working, but after about two months of running I see on my GitLab group that ...