Gitlab repository mirroring

Is it possible to have gitlab set up to automatically sync (mirror) a repository hosted at another location? At the moment, the easiest way I know of doing this involves manually pushing to the...

Connecting to GitLab repositories on Android Studio

I'm trying to connect to a GitLab repository using the I/O preview of Android Studio. Does anyone know how to do this/if it is possible yet?

How to trigger automatic build in gitlab CI on commit to non-default branch?

I have a project in GitLab that is integrated with Gitlab CI. Every push to master shedules a build of the project. However, when a new branch is created and pushed into repository, build is not...

Use GitLab CI to run tests locally?

If a GitLab project is configured on GitLab CI, is there a way to run the build locally? I don't want to turn my laptop into a build "runner", I just want to take advantage of Docker and...

After Gitlab installation can't access gitlab page at VPS

I am trying to install Gitlab on my newly bought VPS(DigitalOcean, Ubuntu), but after the install and reconfigure, I can't get to the setup page of Gitlab. It's just showing the standard apache...

Get version number from package.json in React Redux (create-react-app)

OP EDIT: If anyone else comes across this: the app was created using create-react-app, which limits importing to within the src folder. However if you upgrade react-scripts to v1.0.11 it does let...

Run several maven projects within one repository with GitLab CI

I have one repository in GitLab which contains multiple maven projects in different subfolders. For example, let us say it is: /ProjectA/pom.xml /ProjectB/pom.xml I have two questions here: Can...

GitLab remote: HTTP Basic: Access denied and fatal Authentication

I am on mac OS unlike this post: https://stackoverflow.com/questions/43085424/git-push-origin-branchname-throws-error-http-basic-access-denied I have password configured in GitLab. I have SSL...

Is it possible to have one Git repo placed on Github and Gitlab?

Is it possible to have one git repo placed on both github and gitlab? So that if you push to a remote repo that its both on Github and Gitlab.

How to solve the "remote: You are not allowed to upload code." error on GitLab CI/CD job?

I am currently trying to use GitLab to run a CI/CD job that runs a Python file that makes changes to a particular repository and then commits and pushes those changes to master. I also have a role...

How do you push to a gitlab repo using a gitlab-ci job?

I am new to GitLab CI/CD jobs, but I'm trying to set up a Python script that when pushed to GitLab, triggers the CI/CD job to run it, and call an internal function that pushes to GitLab again...

ssh: Could not resolve hostname git: Name or service not known fatal: Could not read from remote repository

After I switched from HTTPS to SSH for my repo then I received this error when pushing to origin master: ssh: Could not resolve hostname git: Name or service not known fatal: Could not read from...

How to copy a Gitlab project to another Gitlab repository?

I want to copy a GitLab project to another repository which should be completely independent from the original project. For this reason, I tried forking the original project into another project....

Removing Project fails with error message.

Error message after failed delete project I am getting the following error while trying to delete a project from GitLab. This project was scheduled for deletion, but failed with the following...

How can I see all the opened merge requests in GitLab using a command?

Is there a git command that can show all the opened merge requests for a repository? I've found how I can see all the branches that were merged into master using: git log --merges --first-parent...

how to pull from a private registry in gitlab CI, with docker DIND

actually I'm using gitlab runners, with docker executor, and I'm trying to pull some docker images to do some tests, and to preserve my network connection, I've created a private docker registry,...

Git error: remote unpack failed when pushing to a bare repo

I'm having trouble with switching my local SugarCRM instance from a gitlab repo to a new github repo. Locally, the project is on a vagrant VM running on a Windows 10 host. I run git commands from...

ERROR: Preparation failed: Getwd: getwd: no such file or directory

Gitlab runner throw ERROR: Preparation failed: Getwd: getwd: no such file or directory? gitlab version is: GitLab Community Edition 8.6.4 gitlab-runner version: 1.11.5 My CI throw ERROR:...

Error using the PWD to define variables in .gitlab-ci.yml

I just noticed that when the PWD variable is accessed under script, it works as one would expect, for instance: test: script: - docker run --rm -v $PWD/wd image [options] But this fails...

Does git stash, stashes only staged files or even Unstaged and Untracked files?

I've made few changes to my code on a wrong branch(dev). I wanted to shift all my changes to master branch, I got some lead from here, but I'm not clear whether the git stash stashes only *staged*...

Java file outside of source root intelliJ

I have cloned a spring boot project from GitLab having multiple branches in IntelliJ. I checkout to the branch in which I want to work. But I am getting "Java file outside of source root" on all...

How to control podman container log behaviour (ctr.log)

My /var ran full, the culprit was /var/lib/containers/storage/overlay-containers/<container-hash>/userdata/ctr.log of my gitlab container, which was 11GB. I searched the documentation/interwebs in...

Gitlab dpl issue with ruby version

I have a node app that I am deploying through Gitlab. I am using docker image node:12.8.0. Recently it has been failing deployment with the following error $ dpl --provider=heroku...

GItlab - close multiple issue with a single merge request

I was working on an issue linked to a gitlab merge-request that I completed but I haven't been able to do it yet (I have to wait for some colleague to get free to review). Now while I wait I...

Gitlab webhook can't be triggered on Azure DevOps Server Version 2020.1.RC2

Incoming webhook can be triggered on Azure DevOps Server Version Dev18.M170.6, but it can't be triggered on Azure DevOps Server 2020.1.RC2. I'm getting an error message from the 2020.1.RC2: Cannot...

gitlab-runner: prepare environment failed to start process pwsh in windows

On a new WIN10 machine after installing gitlab-runner with shell executor(i.e powershell) and starting a CI build throws following error: Preparing environment ERROR: Job failed (system failure):...

GitLab CI collapsible regions are behaving weird

I'm trying to ouptut custom collapsible regions on Gitlab CI, using the recommendation as per the GitLab CI docs, however this isn't working as expected. I'm running the docker:20.10.7 image which...

Gitlab CI Pipeline "remote: You are not allowed to upload code."

From my question "Gitlab CI: get list of files changed since last run" I discovered that Gitlab CI has no variable that tracks the SHA-ID of the last commit on which the pipeline has been...

Couldn't determine repo type for URL (gitlab + Mac)

I'm trying to execute "make gen" command in my project directory, but have an error: "Сouldn't determine repo type for URL: https://gitlab.myproject/podspecs.git: (): mapping values are not...

Gitlab Cloud run deploy successfully but Job failed

Im having an issue with my CI/CD pipeline , its successfully deployed to GCP cloud run but on Gitlab dashboard the status is failed. I tried to replace images to some other docker images but it...