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
15 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
0answers
29 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
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 ...
2
votes
1answer
2k views

Is there any way to break long command into multi lines in GitlabCI

I have a very long command in .gitlab-ci.yml file to ssh to jump host then use rsync to sync files from my repo to destination host (it does not have public ip so I need to access it via jump host). ...
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 ...
1
vote
2answers
293 views

GitLab CI/CD: How do I generate a change log between pipeline runs?

I'm currently using Gitlab CI/CD combined with Fastlane on our build machine to perform nightly builds of an iOS app, and push those builds to TestFlight on completion. So far, so good. However, I've ...
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 ...
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 ...
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
47 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
16 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
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
42 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 ...
1
vote
2answers
50 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 /...
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,...
11
votes
1answer
10k 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 ...
1
vote
1answer
66 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. ...
1
vote
1answer
30 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 ...
2
votes
2answers
540 views

Gitlab CI/CD fails to build docker image

I have built a custom base image from alpine and use it as the base for ruby services that we develop. FROM ruby:2.4.2-alpine ... I use Gitlab and Gitlab's docker registry along with it. Each ...
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
90 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
97 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
274 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
336 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
1answer
104 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
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
60 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
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
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 ...
-1
votes
1answer
278 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
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 ...
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/...
11
votes
2answers
9k views

Gitlab CI error during connect: Get http://docker:2375/v1.40/containers/json?all=1: dial tcp: lookup docker on xx.xx.xx.x:xx: no such host

I've recently created a new repository in gitlab.com, started a new Ubuntu instance in digitalocean, installed docker and gitlab-runner in the ubuntu instance. Also, did gitlab-runner register and ...
1
vote
2answers
155 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
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. ...
21
votes
4answers
23k 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
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
91 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> ...
4
votes
2answers
3k 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
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
18 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
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 ...
0
votes
1answer
168 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: ...