Questions tagged [gitlab]

1

votes
1

answer
331

Views

How to reset remote branch to certain commit?

Okay so here it is, a mess was made and we need to reset a branch to a specific point in history. At this point I have gone into SourceTree and locally reset the branch to the appropriate commit. How do I get the pushed branch to match? Currently it says I'm multiple commits behind and I'm not sure...
Casey West
1

votes
1

answer
21

Views

How can I trigger a job with a manual click OR a commit message

We have a job (deploy to production) that we generally manually click after checking that build on staging. However, very occasionally we have an issue that we've accidentally deployed and want to get a fix out ASAP. In those case we run the tests locally (much faster) and put [urgent-fix] in our co...
Andy Jeffries
1

votes
2

answer
31

Views

How to pull a remote branch locally?

I created a project on Gitlab and cloned it on my computer. So I only have one branch (master) locally (git branch only shows master). A colleague created a new branch. So now there are 2 branches on Gitlab but not on my computer. How do I do to have the branch created by my co-worker on my computer...
Nicryc
0

votes
0

answer
5

Views

Is it possible to change the id of a group using gitlab API?

I'm using python-gitlab to crate a gitlab group. Is it possible to determine the id of the group that I created? The following code doesn't work: import gitlab gl = gitlab.Gitlab( 'http://my-gitlab.com', private_token='' ) # the id of the newly created group can't be determined by the id inside `gr...
Brian
10

votes
3

answer
416

Views

How to fix Invocation failed Unexpected Response from Server: Unauthorized in Android studio

I have one project on Gitlab and I worked with it for the last few days! Now i want pull project on my home PC but show me below error : Invocation failed Unexpected Response from Server: Unauthorized java.lang.RuntimeException: Invocation failed Unexpected Response from Server: Unauthorized at o...
Jake warton
1

votes
1

answer
81

Views

How to resolve “Function calls are not supported in decorators but 'StoreModule' was called.”

I've an angular (7) project. In my package.json, I've a command defined: { 'name': 'xxx', 'version': '0.1.0', 'scripts': { 'ng': 'ng', 'start': 'ng serve', 'build': 'ng build', 'build-prod': 'ng build --prod', 'test': 'ng test', 'test-ci': 'ng test --no-watch --no-progress --browsers=ChromeHeadlessN...
J4N
0

votes
0

answer
6

Views

Importing vue project into GitLab

I am trying to push a local repository to gitlab. My folder structure is like this: /path/to/folder /app README.md When I push it to gitlab, the app folder, which contains all of my source code, is imported as a single file (which I can't even open), with a strange name: [email protected] How can I push...
2

votes
0

answer
14

Views

How to implement continuous delivery on a platform consisting of multiple applications which all depends on one database and each other?

We are working on old project which consists of multiple applications which all use the same database and strongly depend on each other. Because of the size of the project, we can't refactor the code so they all use the API as a single database source. The platform contains the following application...
Roberto Geuke
1

votes
2

answer
290

Views

GitLab CI: How to fail on new compiler warnings

We are trying to get an old legacy code base under control while simultaneously developing new features. Currently the code compiles with a hell of a lot of compiler warnings and warnings from static code analyzers. For that reason it is not uncommon that code introducing new warnings reaches produc...
sigy
1

votes
2

answer
47

Views

hanging branch after a git merge

I am fairly new to git, and recently started to to use git merge. The first merge request went through successfully as I can see the master branch shows up the changes. But I am a bit confused with the gitLab Graph. The first Graph is from the perspective of the feature branch (called 'rdrop'), Next...
Sanjay Mehrotra
1

votes
1

answer
324

Views

How the gitlab-ci cache is working on docker runner? what is /cache directory? what is cache_dir?

How the gitlab-ci cache is working on docker runner? What is /cache directory? What is cache_dir? Where and how files matching the 'paths' in 'cache' gitlab-ci.yml are stored?
srghma
1

votes
1

answer
39

Views

gitlab pipeline on sub projects

Suppose main project has sub-projects MainProject/ \-------- android \-------- .gitlab-ci-android.yml \-------- ios \-------- lib \-------- .gitlab-ci.yml I want my .gitlab-ci.yml to run parallel jobs for each subfolder. My goal is to have separate .gitlab-ci.yml files. Yes, it looks messy to touch...
Raymond Chenon
1

votes
2

answer
26

Views
1

votes
0

answer
145

Views

D8 DexMergerTransform: flaky android builds on gitlab-ci

Since several days, I see flaky builds on my GitLab CI system. Sometimes the build fails with this error: Caused by: com.android.build.api.transform.TransformException: java.lang.IllegalArgumentException at com.android.build.gradle.internal.transforms.DexMergerTransform.transform(DexMergerTransform....
TmTron
1

votes
2

answer
542

Views

Bad encoding in GitLab CI output

I am just learning something about GitLab CI. I have GitLab Runner running on my local machine successfully connected to my GitLab project. The commands I have written work well but if there is some output in the console with non asci characters, the output in Gitlab shows � characters. Win10 Pro...
Ondřej Sýkora
1

votes
0

answer
36

Views

gitlab Custom hook can't CD into Virtualbox share mount folder

I have gitlab running on a virtual machine (Ubuntu 14.04) on an Ubuntu 16.04 host. I have shared a folder on the host (permanent, automount & full access) I have set up a global custom hook which I have verified on a standard folder with permissions set to user git and group git and the custom hoo...
mbenson
1

votes
1

answer
131

Views

GitBlit add a hook

I have a GitBlit instance on a windows server, and i want to set a hook on post receive callback to start a gitlab ci pipeline on another server. I already have set a GitlabCi trigger who works well, but my hook doesn't. Here is build-gitlab-ci.groovy file : import com.gitblit.GitBlit import com.gi...
GGO
1

votes
2

answer
1.6k

Views

gitlab-runner: Add ssh key when executing locally

I am trying to run a ci pipeline locally for debugging purposes, via docker executor, by running: gitlab-runner exec docker At some point in time, it needs to clone a private git repo. I am using the typical recipe suggested by gitlab. variables: MY_PRIVATE_KEY: before_script: - 'which ssh-agent |...
pkaramol
1

votes
1

answer
120

Views

GitLab : Add Default Reviewers Picking from a file

I am new to the GitLab and currently playing with the community edition. I need to add a default approver per product, together with the user picked person. I am thinking of keeping the default account(s) in a repository-hosted yaml file. And I found this comment which is much similar to my case: ht...
NooBGuy
1

votes
1

answer
399

Views

Test Results Analyzer Plugin for GitLab

Jenkins has nice plugin for test results. Test Results Analyzer Plugin (plugin url). How to attach the same dashboard (with test results) for GitLab?
Igor Kasuan
1

votes
0

answer
170

Views

Jenkins gitlab merge request trigger builds branch commit instead of merge commit

We have the usual trunk, staging, production branches, and recently had to add a hotfix to them. The hotfix branch was created from the production branch, one commit was added, and then it was merged back into the trunk and staging branches by seperate merge requests in gitlab. The odd thing is that...
Chris Tanner
1

votes
2

answer
417

Views

How can I solve “We were unable to install a project on your server” in forge laravel?

If I install repository in forge, there exist error like this : Cloning into 'testshop.co.id'... GitLab: The project you were looking for could not be found. fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. The full error li...
Success Man
1

votes
1

answer
240

Views

Store the grep result of a maven command in a variable

I want to grep the result of a maven (maven-help plugin) command and store the grep result in a shell variable and use it in .gitlab-ci.yml file. I've tried this and the maven command prints the desired result, but echo $VERSION prints nothing (i.e. VERSION variable is empty): VERSION= mvn org.apach...
AshKan
1

votes
0

answer
129

Views

Create service account in Gerrit that uses OAuth provided by Gitlab

I have a Gerrit instance that was setup to authenticate users over LDAP. A second team came along and can only be authenticated over a second LDAP server. IT intends on keeping the two servers separate, and as far as I can tell it is not possible to authenticate against multiple LDAP servers in Gerr...
o.c.
1

votes
0

answer
165

Views

Restrict people from running production pipelines

I'm evaluating gitlab community edition as a self hosted version. Everything is fine with the product except anyone who has access to pipelines (master or admin) can run deployment on production. I saw their issue board and i see that this is a feature that will not be coming to gitlab anytime soon...
Raja Anbazhagan
1

votes
2

answer
1k

Views

How to pass argument to docker command in gitlab-ci with docker executor

I need to pass the --network option to the docker run command in one of my step. I've tried to configured the gitlab-ci runner with the network_mode option, but didn't work Is there any way to add option to docker command in gitlab-ci ? Here is my config.toml : [[runners]] name = 'Docker Runner' url...
yodamad
1

votes
0

answer
26

Views

Let's Encrypt Token Will Not Save

Trying to add SSL to a gitlab server using Let's Encrypt and Certbot. I can save a test.txt in the webroot and access it in /.well-known/acme-challenge/ I have changed the setting so /var/www/letsencrypt/ is the root for the token to be accessed. The settings in the gitlab.rb are: nginx['custom_g...
sacarr
1

votes
0

answer
46

Views

Impossible to access docker private registry on gitlab

I'm trying to set Continuous integration with gitlab and a private docker registry. I've followed the whole tutorials to set it up, I managed to set the registry tab on the left in a project environment but when I click on this tab, gitlab brings me immediately an error 500. I use gitlab as a docker...
Thomas
1

votes
0

answer
18

Views

Gitlab scan worktree on push and zip files bigger than 20MB

We have some raw data files that get updated quite frequently in our repository which are used during the build process of our app. I usually zip these files because they are x times smaller when zipped so I'd like to automate this process and let my repository to do this job for me. The repo perfor...
Thodi
1

votes
0

answer
67

Views

GitLab contact IdP with GET instead of POST with SAML

I have a little problem with SAML configuration with Gitlab. After the exchange of metadatas with my IdP I try the SSO connection but it fails. The IdP team analyzed my AuthnRequest and it was correct but thez said it was sent using a GET instead of the expected POST. Here is my SAML config in Gitla...
Shannow
1

votes
1

answer
202

Views

Error while bulding maven project - TeamCity

Everytime I try to build a Maven project hosted on a gitlab server with TeamCity, I get an error from the buildAgent. Both TeamCity and GitLab are on the same server. It seems that the agent can't connect to gitlab but it does, because when I have to specify the pom.xml path in the build configurat...
Tito Tigi
1

votes
0

answer
55

Views

Upload file to git from html form

I would like some users of my website to upload files to a private git repo from an html form in my front-end. So far I searched within the docs of all 3 major git provider: github, gitlab and bitbucket. Each one of them offer an API to upload files which I would be glad to use, but here is the hicc...
Jona Rodrigues
1

votes
1

answer
394

Views

Is it possible to install gitlab using local IP address of machine instead of domain name?

Is it possible to install Gitlab using the local IP address of the machine instead of domain name? If yes then how?
user9301282
1

votes
0

answer
358

Views

Specify README to show in gitlab

I have forked a project in gitlab. After cloning my fork, I did something like this: mv README.md README-OLD.md touch README.md echo 'some content for my new readme' >> README.md git add README.md git commit -m 'New readme' git push origin master In GitLab, I refresh my project's page expecting to s...
Patrick at work
1

votes
0

answer
55

Views

What is the best way to cache a P2 target in a Gitlab CI Tycho build?

I have an existing Tycho project, which uses Eclipse Target Defintions to resolve the target platform. The download is slow, so I would like to implicitly cache this, if possible. I have the Gitlab CI cache mechanism available. However, I do not know what the most elegant way would be to cache the t...
Jörn Guy Süß
1

votes
1

answer
975

Views

Gitlab CE git clone not works via ssh

I had Installed gitlab ce in docker. I want to make git clone from server via ssh. I set port 3000 in gitlab config. When i try to make git clone i had next: git clone ssh://[email protected]:3000/pm/site-crm.git Cloning into 'site-crm'... ssh: connect to host git.site.com port 3000: Connection refus...
Vladyslav
1

votes
1

answer
131

Views

Helm - Launching a group of PVC in same AZ on AWS

I'm trying to deploy the gitlab omnibus chart to my kubernetes cluster (setup across two AZs) using helm charts. The gitlab-gitlab pod uses 3 PVCs which are backed by EBS and they're generally created in different AZs. What's the idiomatic way in helm to deploy a set of PVCs in the same AWS AZ?
Shubham Jain
1

votes
0

answer
474

Views

How to migrate gitlab from 7.8 version to 10.4?

I have GitLab 7.8.4. And now I need to migrate on new 10.4 version on another server. I'll tried to copy /git-data/repositories into new server but this is not enough. Can some one describe the steps for this migration? Is that posible for new version? UPD I can't restore with sudo gitlab-rake gitl...
user2003024
1

votes
1

answer
779

Views

Dockerfile for a gitlab container

I am doing a school project where I must install gitlab ce in a debian Docker container. I came up with something but the gitlab installer gets stuck on : ruby_block[supervise_redis_sleep] action run I read somewhere you can Ctrl+C and reconfigure to skip this error but as it is a school project I c...
Emmanuel Ruaud
1

votes
0

answer
4.1k

Views

gitlab- remote: HTTP Basic: Access denied fatal: Authentication failed for

Application – GITLAB We have been facing intermittent issue with GITLAB. Users are not able to do, a) Git status, b) git clone, c) git pull Errors – fatal: The remote end hung up unexpectedly error: RPC failed; HTTP 401 curl 22 The requested URL returned error: 401 .. remote: HTTP Basic: Acces...
sunil23

View additional questions