Questions tagged [gitlab]
For questions about GitLab, an open source Git repository manager with issue tracking, wiki and continuous integration facilities.
141
questions
0
votes
1answer
7 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
7 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 ...
-1
votes
0answers
18 views
New to DevOps looking for resources [closed]
I'm looking for any resources for a newb in DevOps. I've been spending a fair amount of time in r/Devops but I'd appreciate any resources that you would recommend.
Specifically, I want to better ...
0
votes
0answers
12 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
35 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
17 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
38 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
16 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
22 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
28 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
54 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
16 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
81 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
52 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
58 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
188 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
184 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
36 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
15 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
178 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
55 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
11 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
22 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
34 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
42 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
52 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
62 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
36 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
31 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
65 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
62 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
129 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
23 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
13 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
72 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
648 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
126 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
16 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
38 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
49 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
38 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
159 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 ...
0
votes
1answer
93 views
How comes a GitLab CI/CD job cant' find its artifacts?
In the Open Source ventilator project, we aim to provide those who focus on testing with a ready-to-go flash file for the Arduino controller board.
While the binaries seem to be there, for some ...
3
votes
2answers
836 views
Build Docker images with DinD and BuildKit
I use GitLab's pipelines to describe the deployment process. And, as part of it, I build Docker images. For that purpose, I use Docker-in-Docker to build those images (i.e. download the Docker-in-...
2
votes
1answer
931 views
Set job start timeout in Gitlab CI
My pipeline consists of very long jobs that build docker images by compiling a set of packages; all of them require ~ 3 hours on my runner.
I set up my CI so that only one job can run at a time, in ...
1
vote
2answers
1k views
Using Jenkins gitlab token to make an API call
From inside a Jenkins pipeline, I want to create a merge request on gitlab
def toJson = {
input ->
groovy.json.JsonOutput.toJson(input)
}
def body = [
private_token: "...",
...
1
vote
0answers
39 views
āCreate from templateā function for Gatsby results in error on GitLab Pages
I am trying to create a new Gatsby project using the āCreate from templateā tab at https://gitlab.com/projects/new, but every time that I try, I get an error saying:
The repository could not be ...
3
votes
1answer
111 views
Necessity of mirroring git repos for small team considering switching to Azure
Question:
Are there any benefits to mirroring our git repos outside of Azure devops for a small (~7) team of developers who all work in the same office?
Background Information
I'm a developer ...