Questions tagged [gitlab]

1

votes
0

answer
135

Views

Gitlab CE 10.x.x Omnibus installation: no “Pages” Settings pane?

I was trying to follow the Gitlab directions for setting up Gitlab Pages on my custom domain gitlab installation. But for the specific instruction: navigate to your project's Setting > Pages and click + New domain to add your custom domain to GitLab Pages there is no 'Pages' entry under my Project'...
Ogre Psalm33
1

votes
0

answer
81

Views

gitlab clone from python got error Permission denied (publickey,password)

I write a py script to clone the repos at once as follow. import os from gitlab import Gitlab # Register a connection to a gitlab instance, using its URL and a user private token gl = Gitlab('gitlab_ip', private_token='My token', ssl_verify=False) groupsToSkip = ['my group'] # gl.auth() # Connect t...
Thu Ra
1

votes
1

answer
225

Views

my ssh key is no longer working for gitlab. I have included the verbose output

I have been using this instance for several weeks and the last week it does not allow me to do any pushing or pulling from Gitlab. I get 'permission denied (public key). I am using ubuntu instance for AWS. The public key is added in my setting on gitlab and I have confirmed that the my name and emai...
dsmith
1

votes
0

answer
42

Views

Disable Shibboleth-Omniauth Debug Mode

I have Installed Gitlab EE with Apache2 and Shibboleth. Configuration is working fine and I get all data I need for authentification I think. I set debug to false in gitlab.rb but I always get the folwing message with the sso callback. Am I missing something? Where do I have to set debug to false? !...
Florian
1

votes
1

answer
398

Views

How can i set git webhooks+jenkins

I refer to a lot of examples, but web hooks are not configured successfully, I do not know why? The URLs in the web hooks have also tried various situations, but they have always been 500 error. Gitlab version : 10.6.2-ee Jenkins version:2.83 Gitlab plugin: 1.5.4 Gitlab Hook plugin: 1.4.2
blue
1

votes
1

answer
1.6k

Views

Issue when cloning project from gitlab repository into Jenkins?

Im new on jenkins technologie. I started with creating a jenkins job that pull code from gitlab to jenkins. this job did not worked as I had an issue tells that jenkins does not trusted the self signed certificate used by the gitlab server issue in screenshot Can I did some configuration from the j...
B.Bechir
1

votes
2

answer
457

Views

How can I configure seLinux for GITLAB with external nginx

I'm setting up our Gitlab server and it works well when I disabled the seLinux. How to fix the configuration of the seLinux to allow the gitlab work? Environmnt: CentOS 7.4.1708 and update all packages. Gitlab 10.5.2 nginx 1.13.10 I've installed Gitlab and nginx and followed this link to configure t...
1

votes
1

answer
236

Views

Get latest version of GitLab repo when depending on it in package.json

My private GitLab repository stores a NodeJs module (it contains package.json and index.js). In another project, I want to refer to this repository as a dependency using 'package-name': 'git+ssh://[email protected]:path/to/repo#branch' Where: - «gitlab01» is the hostname of my companies GitLab serve...
mxcd
1

votes
1

answer
304

Views

DNS with local network hosted docker containers [closed]

I'm struggling to set my local network up and need some help. If there is someone a bit more comfortable using DNS and docker maybe this is not that of a hard problem as it is for me. Current State I have a local server running Ubuntu on 192.168.1.212. $ lsb_release -a No LSB modules are available....
NjamNjam
1

votes
1

answer
642

Views

GitLab CI - Use Mysql service

I try to use GitLab CI on a web project with symfony. To excute some tests, I need to have a database and access to it from the application, but it doesn't work. It appear the mysql service isn't reachable... Actually, I just declare the service at the top of the gitlab-ci.yml file and set variables...
mpiot
1

votes
2

answer
33

Views

How to put other repository changes to my repository like a commit?

I have a repository what is a local repository based on this repository https://github.com/AshamaneProject/AshamaneCore I want to merge all their commits to my repository as a single commit with all the changes, how can i do it? Im using ubuntu 17
1

votes
0

answer
138

Views

encapsulating strings with whitespaces in gitlab ci yaml

How do I specify a string literal which contains whitespaces in a GitLab CI YAML file? For example, I am using to call msbuild.exe which is located at C:\Program Files (x86)...\msbuild.exe in gitlab-ci.yml file as follows build: - C:\Program Files (x86)\...\msbuild.exe MySolution.sln I tried using b...
Param
1

votes
0

answer
41

Views

Jenkins to deploy on Gitlab merge into development, but ignore updates

I have Jenkins set up, connected with Gitlab, to do some deployment stuff whenever a merge request gets accepted into the development branch. It pulls the code, runs some incantations, increments the version number, and commits+pushes that new version number in. The only issue, that I just discovere...
Matt Fletcher
1

votes
1

answer
103

Views

Gitlab-runner pass custom options to docker

Is it possible to pass custom options to the docker: I'm looking for a way to pass --cgroup-parent option to docker from gitlab-runner. Or at least these 2 options , --cpuset-mems='', --cpuset-cpus='' On the official gitlab-runner site I did not find any info about passing any of these or any cust...
Arseniy
1

votes
0

answer
690

Views

Exception caught: org.bouncycastle.asn1.pkcs.PrivateKeyInfo cannot be cast to org.bouncycastle.openssl.PEMKeyPair

I am trying to build a docker image with Gitlab-CI using the docker-maven-plugin (provided by spotify: https://github.com/spotify/docker-maven-plugin). pom.xml com.spotify docker-maven-plugin MY_REGISTRY/${project.artifactId} latest docker / ${project.build.directory} ${project.build.finalName}.ja...
GE ownt
1

votes
1

answer
310

Views

How can I deploy something to a k8s cluster via a k8s gitlab-ci runner?

cat /etc/redhat-release: CentOS Linux release 7.2.1511 (Core) docker version: Client: Version: 1.13.1 API version: 1.26 Package version: Go version: go1.8.3 Git commit: 774336d/1.13.1 Built: Wed Mar 7 17:06:16 2018 OS/Arch: linux/amd64 Server: Version:...
leaf4monkey
1

votes
1

answer
36

Views

Docker mapping ports and expose to specific hosts

I'm running Docker locally. I'm testing some functions from Jenkins and GitLab, so I ran: For Jenkins: docker run -d \ --add-host='gitlab.example.com:172.16.2.92' \ -p 8080:8080 -p 50000:50000 \ --name jenkins \ --restart always \ -v jenkins_home:/var/jenkins_home jenkins/jenkins:lts For GitLab: doc...
Alan Aranda
1

votes
0

answer
246

Views

Export the issues from gitLab to github

We have shifted to github(enterprise) to github. So now I want to have my all issues to export from gitlab and import to github. Any ideas?
umairhhhs
1

votes
0

answer
60

Views

Docker Gitlab pre-configure settings for projects limit

I am trying to build a Docker container (based on the gitlab-ce (version 8.9.6) Docker image) where when the container is created, the user does NOT have to go into the gitlab web interface and modify the settings to change default project size limit from 10 to 100. I have the automation designed to...
OriolesMagic
1

votes
0

answer
635

Views

Gitlab CI YML Mapping values are not allowed in this context

I want to use Gitlab CI to deploy my static website to ftp server on commit in master. I had no expirience in DevOps and try to do this by tutorials on Internet. I made this .gitlab-ci.yml file deploy: stage: deploy only: - master deploy: script: - apt-get update -qq && apt-get install -y -qq lftp -...
sw0rl0k
1

votes
1

answer
162

Views

Recover gitlab got permission denied

I host a gitlab-ce with docker image and start with docker compose. Here is my docker compose file version: '3.6' services: web: image: 'gitlab/gitlab-ce' container_name: 'gitlab-master' restart: always hostname: 'url' environment: GITLAB_OMNIBUS_CONFIG: | external_url 'http://url:9090' gitlab_rails...
Rukeith
1

votes
2

answer
181

Views

Export the full descriptions texts of Issues form Gitlab

I am trying the 'export to CSV' function in Gitlab, and I can download all issues into a CSV file. However, I notice that in the section of 'description', I can only get the first line of my 'description'. For example, in my description, if my texts are: ABC DEF Then the 'description' contains ABC o...
Dayong Wang
1

votes
0

answer
19

Views

Override path variable in cmd

hey guys I hope you are doing well. I have the following problem: I have two different versions of the mingw compiler installed on my CI server. This CI server has to do 2 jobs. The first job needs an other compiler than the second. The binaries of the mingw-compiler are stored in the path variable...
1

votes
0

answer
116

Views

How to generate notifications in Mattermost for all state change in JIRA or Gitlab?

In the latest(4.9) Mattermost, it provides integration with Gitlab and a Beta plugin for JIRA. I followed the documents to finish the integration, and it works, I got notifications for the 'create', 'close' and 'reopen' operation. For the BUG issue, we'd like to make it 'Resolved' so that our QA en...
Edison
1

votes
0

answer
36

Views

Do gitlab backups include the actual files in the repository?

I'm running the following command every night: gitlab-rake gitlab:backup:create I've read the documentation: https://docs.gitlab.com/ee/raketasks/backup_restore.html But, it isn't clearly stated: Does the backup also backup the files within the repository? Not just the repository history? My apologi...
David
1

votes
0

answer
38

Views

python-gitlab create submodule

I have been working with python-gitlab package and I have a problem to create submodules. Does anyone knows a way to create a submodule which connects to another project or alternative way to make a link inside a git tree which reference to another project? Thanks.
XequinT
1

votes
0

answer
217

Views

Deploying Angular 5 application to own infrastructure with GitLab CI/CD

I´m trying to deploy an Angular 5 application (created with Angular CLI) with GitLab CI/CD. The runner is already registered for the project (installed on a VM with Ubuntu). Now I wonder how I can deploy my application to a server, which is reachable from another machine. TL;DR How can I deploy...
1

votes
1

answer
228

Views

How do I use GitOps to test & deploy my application to Heroku with GitLab CI

I have a Heroku application that I deploy with git push heroku master && heroku run rails db:migrate. I use GitLab to store my code, but I want to be able to: Test every push and merge request Deploy to a staging environment Deploy to production All without leaving my command-line. Also, while my st...
Upvote Me
1

votes
1

answer
106

Views

Forked repository mirroring failing

I fail to update my forked repository https://gitlab.com/sourav_roy_gngl392/api from its parent repo https://gitlab.com/mirach/kounsel/backend/api. It runs into the following issue , '2:Fetching remote upstream failed: fatal: could not read Username for 'https://gitlab.com': No such device or addr...
Sourav Roy
1

votes
0

answer
1.2k

Views

Automatic deploy from gitlab to heroku

Hi guys i was wondering if it is possible to make automatic deploys from gitlab to heroku (react app), right now this is my gitlab-ci image: node:8.10.0-alpine cache: key: 'alpine' paths: - node_modules/ before_script: - npm install build: stage: build artifacts: paths: - dist/ script: - npm run bu...
1

votes
0

answer
230

Views

Can't connect a go app to mysql (both inside a gitlab runner)

The go app simply inserts a harcoded value in a mysql table and spits it back out. This is done using this database driver. It works fine on linux servers, but during gitlab's CI this returns: dial tcp 127.0.0.1:3306: connect: connection refused This is the .gitlab-ci.yml image: mysql services: - my...
1

votes
1

answer
164

Views

When using docker images in Gitlab CI, how do I deference the alias of a service

Below is an excerpt from my gitlab-ci.yml file. Simply put I need to create a redis service, and then reference it as it is required for testing. Because the redis server is created dynamically I don't know of an easy way to tell it to look at 'localhost' or 123.321.234.234 etc. Is there a way to de...
1

votes
0

answer
142

Views

Usage of existing Nginx installation with GitLab doesn't work

I am trying to configure a GitLab installation to work on a subdomain with an existing Nginx installation. Current state is: gitlab.my.example.com is not working my.example.com is also not working x.x.x.x (IP) is working, displaying the welcome page of nginx Nginx and GitLab are both running. Steps...
hideous
1

votes
1

answer
39

Views

Can I create parametrezed job into gitlab pipeline?

I need to create job into gitlab pipeline. I want trigger it manually and put into some variables for using into scripts. How can I do it? Can I?
Anna
1

votes
1

answer
658

Views

Install CI gitlab with Docker in Windows

Trying to install a gitlab runner on my windows machine inside a docker container Using docker run -d --name gitlab-runner --restart always \ -v ${PWD}/gitla /gitlab-runner \ -v /var/run/docker.sock:/var/run/docker.sock \ gitlab/gitlab-runner:latest I'm following the official docs but nothing refer...
george_mx
1

votes
0

answer
40

Views

Can't connect to Gitlab repositories with multiple keys

I have two Gitlab repositories, owned by two different users. Let's call them personal: [email protected]:user1/personal.git work: [email protected]:user2/work.git I got two RSA keys: with key1 I can usually connect to personal repo; with key2 to work repo. I have to push/pull from different workstations...
eleftrik
1

votes
0

answer
55

Views

Gitlab - git user can't execute git commands

I am using Gitlab and try to trigger a very simple post-receive webhook in it which shall push the received commits to my webserver. #!/bin/bash git push develop develop touch test_hook # just for test reasons The touch test_hook is just for test reasons to see if the hook gets triggered. And it doe...
Froxx
1

votes
1

answer
154

Views

Error while importing a node module from Gitlab private repository

Scenario: I have developed a node module of some sort. Later on I came to know, instead of publishing my node module to the npm repository, I could use my own Gitlab repo to serve it as a node module. Constraints are: I have to use the private repo for this activity I have to use the https url for f...
tsumit
1

votes
1

answer
270

Views

Configuring replication config file for Gerrit

My Gerrit replication.config looks like: [remote 'company-svc'] projects = dev-portal-ui url = [email protected]:/core-build/${name}.git push = +refs/heads/*:refs/heads/* I'm able to mirror clone using command: cd ${GERRIT_SITE}/git git clone --mirror ssh://[email protected]/core-b...
Shashi Ranjan
1

votes
1

answer
18

Views

gitlab push failed when I migrate repository A to B

I want to move a full Git repository. and I copy repository A file, delete old remote then add new remote, I push all my local branch to origin this is error description, I don't know how to resolve it.
悠然之刃

View additional questions