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
0answers
17 views

Gitlab (self hosted gitlab) pipeline fail when trying to fetch repository

I've setup own gitlab server on AWS EC2 Instance based on this image - https://aws.amazon.com/marketplace/pp/prodview-w6ykryurkesjq?ref_=aws-mp-console-subscription-detail and assign Elastic IP for ...
2
votes
1answer
17 views

Do GitLab Runner worker nodes need to have network access to GitLab?

GitLab runner has an autoscale feature that allows the Runner Manager to dynamically spawn new worker nodes on demand. The documentation says that: "GitLab Runner is going to need to talk to your ...
1
vote
0answers
30 views

Pipeline could not pull repo in GitLab CI/CD

I have a the repo with test CI pipeline, which is the following: # .gitlab-ci.yml image: name: gcc build: stage: build script: - echo 123 And it fails: Running with gitlab-runner 14.3.1 (...
0
votes
0answers
97 views

Gitlab runner fails with connection timeout , connectivity works fine

Same question was asked by myself before. But now I registered runner with sudo. Yet I get following error in pipeline Getting source from Git repository Fetching changes with git depth set to 50... ...
1
vote
2answers
44 views

How to track deployments of multiple interconnected repositories

We are working with a ERP system (called Odoo, but that does not matter so much). It consists of many building blocks. Some of this modules/addons are dependent on others, some are standalone, but ...
0
votes
1answer
32 views

Parametrize gitlab ci pipeline

There is the following simple pipeline: build → test → deploy that uses specified python version for all stages, for example 3.8. How can I scale (parametrize) it for python with versions: 3.7, 3.8 ...
1
vote
0answers
29 views

GitLab CI/CD get CI_MERGE_REQUEST_LABELS after merge successfully

I know that the docs say, that the variable CI_MERGE_REQUEST_LABELS is available if pipeline is a merge request pipeline and the MR is open. My dream was it to label my MR's with patch, minor or major ...
0
votes
1answer
26 views

GitLab variable false but job is running

I'm triggering job via API, passing custom variables. Here is example request: curl -X POST -F token=${TRIGGER_TOKEN} -F ref=${branch} -F "variables[SHOULD_COPY_ASSETS]=false" This how job ...
1
vote
0answers
49 views

Where does the string docker.example.com in my GitLab CI job come from?

I am trying to have a Docker image deployed to my server by GitLab CI, but it only worked once¹ and then dies with the error message below. Here is the .gitlab-ci.yml snippet: deploy-image: image: ...
1
vote
0answers
8 views

git-p4 rebase command fails when using "main" as the default git branch

I'm using the git-p4 script (doc reference, code reference) to drive some processes to synchronize code stored in Perforce Helix in to GitLab. It works fine for my needs, though now that GitLab ...
1
vote
0answers
31 views

gitlab ci: How to share cache between fork and parent repository?

first please read the context of my inquiry. A project named teamspace/foo I maintain at work makes each teammate fork it. I have a scheduled pipeline that remakes cache each night. Now onto the ...
0
votes
1answer
31 views

Gitlab build from multiple repositories - git submodules

I have gitlab repo ZERO (project) which serves as a code base for multiple websites (repo ONE, TWO, THREE..), these are also gitlab repositories. I am using gitlab CI/CD options, I want to be able to ...
3
votes
1answer
51 views

Gitlab CI: change pipeline definition dynamically

I need to pass info from stage A to stage B so I can change stage B dynamically. Details: I have a stage (A) where I validate a terraform plan and check if it's going to destroy resources. I have ...
2
votes
1answer
101 views

How do I fail a gitlab pipeline job?

I am currently using dependency checker to scan my applications via gitlab This is how my pipeline looks like. dependency_scanning: stage: security_scan script: # Run dependency check on all ...
1
vote
1answer
52 views

Automating deployment of microservices from start to finish

I'm currently part of a team that trains multiple pods of new hires. Each pod creates a client simulated project that involves the following steps: Creating kubernetes namespaces for each pod for ...
0
votes
0answers
15 views

Gitlab review k8s role with postgres-operator

I want to integrate review enironments of kubernetes cluster and crunchy postgres-operator. I have integrated group k8s cluster with enabled “Namespace per environment” option. My review deploy ...
0
votes
1answer
89 views
0
votes
1answer
109 views

New Runners are locked and the checkbox to unlock them is disabled

I'm running the latest version of on-prem GitLab (version 14.1.0-ee). The last few new GitLab runners I've added show up as locked. I open the runners config in the WebUI and I see that the "Lock ...
2
votes
1answer
55 views

GitLab Maintain versions of the code in GitLab CI/CD pipeline for the develop branch

I would like to ensure that code merged via merge request in a GitLab from the feature branch to our develop branch has always a new unique version (gitflow strategy). Version currently stored as the ...
0
votes
1answer
81 views

GitLab CI Job branch not up to date with origin

I'm new to GitLab CI and don't really understand how Git works within the Jobs. When I'm checking git status on the first running job it is always on detached head state. If I'm switching to another ...
1
vote
1answer
60 views

Deploy to Ubuntu server with python script and awsebcli fails

Just yesterday everything worked fine on our AWS ElasticBeanstalk continuous deployment, but today suddenly fails with the following errors: $ pip install awsebcli -q --upgrade DEPRECATION: Python 2.7 ...
2
votes
1answer
90 views

How to use script in a Gitlab bridge job?

I have a job which needs to include another job and needs to append a value to a variable, such as: nightlies: variables: BUILD_NAME: "nightly" script: - $BUILD_NAME="${...
0
votes
1answer
282 views

Docker compose up, Error starting userland proxy: listen tcp 0.0.0.0:22: bind: address already in use

I'm trying to a gitlab/gitlab-ce image up and running with docker-compose on macOS (Big Sur) (docker-compose up -d). I'm using docker-machine with the virtualBox driver. However, when starting the ...
0
votes
3answers
197 views

Do I have to include gitlab variables in my terraform code in order for my credentials to be recognized?

I am trying to set up a pipeline, which is supposed to deploy terraform code into an aws account. The code works fine locally, and I have setup and imported the state bucket and dynamodb table which ...
2
votes
1answer
79 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
70 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
2answers
42 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
1answer
253 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
36 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 ...
1
vote
1answer
127 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
39 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
2answers
2k 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
195 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
514 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
24 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
398 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
77 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
140 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,...
3
votes
2answers
241 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
63 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
312 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
580 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&...
1
vote
1answer
60 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 ...
-1
votes
1answer
763 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
453 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 ...
1
vote
1answer
43 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
75 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
70 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
134 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
48 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. ...