gitlab-ce

Error uploading artifacts to coordinator

穿精又带淫゛_ 提交于 2021-02-20 03:56:49
问题 I’ve been having some fun setting up GitLab and after spending quite a while hacking away at it, I’ve become relatively used to setting it up, now having done that on two machines, the second time around with much more ease than originally… However, I am faced with a rather large problem, on both machines: My CI pipeline is broken. Somehow, somewhere, my setup is providing a 403 to artifacts once builds are completed, meaning that each and every job that ever technically succeeds will only be

Gitlab 12.X - Get project id from storage path in a pre-receive hook

情到浓时终转凉″ 提交于 2021-01-29 11:26:03
问题 With legacy storage, when a pre-receive hook fires, it is easy to guess the URL of the repository involved as the path is "group/project-name.git". With new hashed storage in Gitlab, the "pwd" command will return a path such as d4735e3a265e16eee03f59718b9b5d03019c07d8b6c51f90da3a666eec13ab35.git if the project id is 2. => How can I get the project id based on the hashed path ? My aim is to check that all the commits being pushed by someone are authored by people who are actually authorized to

How do you center text in Gitlab markdown?

青春壹個敷衍的年華 提交于 2020-07-06 09:10:15
问题 After Gitlab switched its markdown engine to CommonMark it's no longer as easy to add things like custom styling to your markdown files. I've used Gitlab for some time and for the longest time I've liked how nicely I could make my README.md file look, having a centered icon, title and description for my project. When they switched the engine all my markdown files that relied on having such stylings look really bad. How do I center text in Gitlab after the transition to CommonMark? 回答1: Update

How do you center text in Gitlab markdown?

六眼飞鱼酱① 提交于 2020-07-06 09:07:22
问题 After Gitlab switched its markdown engine to CommonMark it's no longer as easy to add things like custom styling to your markdown files. I've used Gitlab for some time and for the longest time I've liked how nicely I could make my README.md file look, having a centered icon, title and description for my project. When they switched the engine all my markdown files that relied on having such stylings look really bad. How do I center text in Gitlab after the transition to CommonMark? 回答1: Update

Gitlab Cannot start runsv is not running

匆匆过客 提交于 2020-02-05 06:52:32
问题 I just upgraded my gitlab-ce version to the latest version using this command sudo yum install gitlab-ce-12.1.3-ce.0.el7.x86_64 the upgrade works well, but after restart the gitlab service won't start, when I run this command sudo gitlab-ctl start fail: alertmanager: runsv not running fail: gitaly: runsv not running fail: gitlab-monitor: runsv not running fail: gitlab-workhorse: runsv not running fail: grafana: runsv not running fail: logrotate: runsv not running fail: nginx: runsv not

How to configure a global git hook in GitLab version 11.11?

梦想与她 提交于 2019-12-23 04:55:28
问题 I'm really confused about how to configure a GitLab global hook. The documentation is clear about how to set a global hook. So I login in my GitLab instance, go to the directory /opt/gitlab/embedded/service/gitlab-shell/hooks , and it has 3 files: -rwxr-xr-x 1 root root 131 Jun 10 16:22 post-receive -rwxr-xr-x 1 root root 131 Jun 10 16:22 pre-receive -rwxr-xr-x 1 root root 131 Jun 10 16:22 update All the files have the same content: # cat pre-receive #!/bin/sh echo "The gitlab-shell hooks

Gitlab default project visibility when creating projects from terminal

北城余情 提交于 2019-12-20 07:19:22
问题 Whenever I start a new project I add it to my Gitlab VCS (on-premise): git init git add . git commit -m "Commit message" git remote add origin git@git.example.com:foo.git git push --set-upstream origin master This results in: Enumerating objects: 7, done. Counting objects: 100% (7/7), done. Delta compression using up to 4 threads Compressing objects: 100% (7/7), done. Writing objects: 100% (7/7), 5.65 KiB | 2.82 MiB/s, done. Total 7 (delta 0), reused 0 (delta 0) remote: remote: The private

what's the easiest way to upgrade Gitlab from 8.0 to latest version?

ぃ、小莉子 提交于 2019-12-08 06:17:11
问题 I have a Gitlab 8.0 server(25 projects, 10 users, 30+ ssh keys), I want upgrade to newest version, but seems no easy way to do this. Following the upgrade guide, I have to upgrade step by step, means I may need 10+ hours to do this. :( Can any one teach me what's the easiest way to upgrade to last version ? 回答1: I had to do the exact same migration, and... I had to script it. That is because I needed to upgrade to 9.0, 9.1,9.2...10.0, 10.1, ...,11.0, ... to finally 11.5. So if you do an

Gitlab default project visibility when creating projects from terminal

匆匆过客 提交于 2019-12-02 10:07:12
Whenever I start a new project I add it to my Gitlab VCS (on-premise): git init git add . git commit -m "Commit message" git remote add origin git@git.example.com:foo.git git push --set-upstream origin master This results in: Enumerating objects: 7, done. Counting objects: 100% (7/7), done. Delta compression using up to 4 threads Compressing objects: 100% (7/7), done. Writing objects: 100% (7/7), 5.65 KiB | 2.82 MiB/s, done. Total 7 (delta 0), reused 0 (delta 0) remote: remote: The private project foo was successfully created. remote: remote: To configure the remote, run: ...blah blah blah