gitlab-shell | Replacement for gitolite This repo is a mirror of https://gitlabcom/gitlab-org/gitlab-shell/
kandi X-RAY | gitlab-shell Summary
kandi X-RAY | gitlab-shell Summary
Replacement for gitolite. This repo is a mirror of
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of gitlab-shell
gitlab-shell Key Features
gitlab-shell Examples and Code Snippets
Community Discussions
Trending Discussions on gitlab-shell
QUESTION
I'm completely new to trying to implement GitLab's CI/CD pipelines, but it's been going quite well. In fact, for my ASP.NET project, if I specify a Publish Profile in the msbuild
command that uses Web Deploy, it actually deploys the code successfully to the web server.
However, I'm now wanting to have the "build" job create artifacts which are uploaded to GitLab that I can then subsequently deploy. We're using a self-hosted instance of GitLab, for which I'm not an admin, but I can speak to the admin if I know what I'm asking for!
So I've configured my gitlab-ci.yml
file like this:
ANSWER
Answered 2022-Feb-08 at 15:22After countless hours working on this, it seems that ultimately the issue was that our internal Web Application Firewall was blocking some part of the transfer of artefacts to the server, or the response back from it. With the WAF reconfigured not to block traffic from the machine running the GitLab Runner, the artefacts are successfully uploaded and the job succeeds.
This would have been significantly easier to diagnose if the logging from GitLab was better. As per my comment on this issue, it should be possible to see the content of the response from the GitLab server after uploading artefacts, even when the response code is 200
.
What's strange - and made diagnosing the issue even harder - is that when I worked through the issue with the admin of our GitLab instance, digging through logs and running it in debug mode, the artefact upload process was uploading something successfully. We could see, for example, the GitLab Runner's log had been uploaded to the server. Clearly the WAF's blocking was selective and didn't block everything in both directions.
QUESTION
I am running a kubernetes single node cluster and upgraded my gitlab 14.3.2 to 14.7.0 using helm chart.
This is my values.yaml
file, which worked before perfectly...
ANSWER
Answered 2022-Feb-01 at 22:31Got the same issue. I found out a service was misconfigured, lookup into the chart and found out it was about session server.
Then I simply disabled the sessionServer, that should be disabled by default (cf https://gitlab.com/gitlab-org/charts/gitlab-runner/-/commit/477f145bedcb68690d723826831d9c8c4f5b2d09) and I don't need it and it did the trick.
QUESTION
hellow every one i migrated gitlab-ce into a new instance with new domain name using backup/restore
my problem : when i click a project it gives me "500 Whoops, something went wrong on our end "
i installed the same gitlab-ce version in the new host which is 13.6.2
my gitlab status
...ANSWER
Answered 2021-Oct-28 at 16:29To fix this problem I had to migrate gitlab-secrets.json
from /etc/gitlab
too, because this file contains the database encryption key, CI/CD variables, and variables used for two-factor authentication.
If you fail to restore this encryption key file along with the application data backup, users with two-factor authentication enabled and GitLab Runner lose access to your GitLab server.
QUESTION
After setting up a GitLab server, GitLab runner CI, and creating a test-repository that completes a CI-job successfully, I was experiencing some difficulties in ensuring a post-receive
script is completed after the CI is finished successfully on the test repository commit.
The MWE does the complete deployment, and uploads a repository to the GitLab server and runs the CI on the repository. However, it is not yet generalised well, hence it has (at least) the following requirements: System: Ubuntu 20.04, Architecture:AMD64.
...ANSWER
Answered 2021-Oct-09 at 17:47The issue was that I was twofold:
- I created the
post-receive
script inside the linux user, instead of inside the docker. - I was looking for the output of the
post-receive
script in the wrong location. I assumed that it would produce an output in the same directory as the script is located. But thepost-receive
script is called from the root of the.git
directy, hence that is where the output is created.
Initially I tried to overcome the issue of 2 by using an absolute path, but issue 1 implied that the absolute path that I had chosen did not actually exist inside the Docker container. Therefore, no output was created, (and I was looking in the wrong place for that output on the Linux device, instead of in the Docker container).
The manual solution I found was:
First get the Docker container id with: sudo docker ps -a
, which returned ... ca3ba74eb832 ...
. Then open the docker inside the terminal with:
QUESTION
I'm using a static yaml file to install gitlab. Therefore I run
...ANSWER
Answered 2021-Sep-03 at 11:40In general, it's hard to modify the output of a Helm chart. You can configure things the chart author has specifically allowed using Helm template syntax but not make arbitrary changes.
Typically I would expect a chart to not include an explicit namespace:
at all, and to honor the helm install --namespace
option (helm template
has a similar option). Configuring a Service is extremely common and I would expect the chart to have settings for that.
If you're using the official GitLab cloud native Helm Chart then it has a lot of settings, including specifically for the GitLab Shell chart. In your values.yaml
file you should be able to specify
QUESTION
I am not a server admin, so I do not configure Apache Servers on a daily basis.
But I want to use Gitlab on our server with SSL and Apache 2.4.6. (httpd on CentOS 7).
So far I have added the certificates (.pem
) and turned on SSL.
head -30 /opt/gitlab/embedded/service/gitlab-rails/config/gitlab.yml
...ANSWER
Answered 2021-Feb-04 at 13:50Same answer than on serverfault:
There was a problem in the Apache configuration:
QUESTION
I am currently trying to auto-increment the version, append SNAPSHOT
to it and commit to the branch the given tag was created from using GitLab 12.9.2 and GitLab-Shell 12.0.0.
I know, that tags (especially release-tags) are supposed to be created from master, but since I might be getting a develop- or other branches, that I'd like to tag commits on, I wanted to keep the ability to tag a given commit, build, deploy the corresponding artifact (to Nexus), auto-increment the version (e.g. from 0.1.3
to 0.1.4-SNAPSHOT
) and commit this to the branch the tag has been created from.
While all other steps work, I fail at the last one, because I cannot find the proper environment variable, which refers to the commit (and branch) the tag was created from.
Here is an excerpt from the CI-file:
...ANSWER
Answered 2020-May-27 at 01:22A useful trick I like using is to run the printenv
Linux command from a pipeline job. This will print all environment variables, including GitLab built-in variables to stdout. Then you can look through these and pick the one you want.
From what I can see, the ones that might help you are the commit SHA or commit message.
Using Commit SHA- CI_COMMIT_SHA
- CI_COMMIT_SHORT_SHA = first 8 digits of CI_COMMIT_SHA
CI_COMMIT_SHA
refers to the commit on the branch from which you created the tag. Once you have the commit ID, you can use the GitLab REST API (e.g. using cURL, python requests or python-gitlab) to pull the information you need. Keep in mind that a commit may belong to multiple branches, so you'll need to figure out which one you want to target.
QUESTION
Having a working gitlab instance on an Ubuntu 18.04 server for abouth 2 months, it now refuse to swpan due to the following 2 errors in /var/log/nginx/error.log
...ANSWER
Answered 2020-May-14 at 12:23This is almost certainly a permissions error.
Make sure that whatever file is readable: chmod a+r /opt/gitlab/embedded/service/gitlab-rails/config/database.yml
(according to the comments you already did this) AND
Make sure that all the directories are executable, which for directories allows cd'ing into that directory:
QUESTION
I am trying to upload a single file via curl from within a gitlab-shell-runner.
Basically I need to use this command:
...ANSWER
Answered 2020-May-06 at 17:24As mentioned in "Running cURL on 64 bit Windows" you are running a CmdLet
called Invoke-WebRequest
, which has a curl
alias in Powershell.
Start by removing it:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install gitlab-shell
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page