gitlab

Install node module from own gitlab server

久未见 提交于 2019-12-23 17:20:03
问题 I'd like to install node modules from our gitlab server. This is a link to a repository: http://ABCD-GITLAB/myGroup/myNodeModule.git According to the npm install guide the install command should be this: gitlabUser: me myProject: myNodeModule npm install gitlab:mygitlabuser/myproject I have no idea how to reference my gitlab server url group project account name I tried some commands but all failed: npm install gitlab:ABCD-GITLAB:me/myproject npm install gitlab:ABCD-GITLAB:me/myproject.git

Gitlab CI runner not building or showing any output

北慕城南 提交于 2019-12-23 15:51:24
问题 Yesterday I upgraded from Gitlab 7.x to 8.0.4 and almost everything went smoothly. I was using the CI before without issue and after the upgrade had to migrate or start fresh. I chose to start fresh since I only had one project. I have added a new shell runner (tried both gitlab-ci-multi-runner and gitlab-runner) multiple times and registration is successful and the runner shows it's active in the web console. But when I try to build my code the only output in the browser is the black

How can I use GitLab on one server and store all of the repositories on another?

前提是你 提交于 2019-12-23 15:21:44
问题 My team has a couple git repositories on a NAS server at /net/CM/repo.git and /net/CM/repo2.git . I have recently joined the team and told them about GitLab, they thought it would be a great tool to implement. However, they want me to install GitLab on a different server, we'll call it the Super Server, and the other we'll call the NAS Server. I've installed GitLab on the Super Server and it runs great, but I'm having difficulty getting it to detect my git repos on the NAS Server. Is that

Git - unable to push into gitlab project - “unable to update URL base from redirection”

懵懂的女人 提交于 2019-12-23 12:56:14
问题 I gave this remote URL for my project. git remote add origin https://gitlab.com/AbdullahValley/simple-crud.git When I entered this command: $ git push -u origin master It gives some ERROR which I don't understand here. fatal: unable to update URL base from redirection: asked for: gitlab.com/AbdullahValley/Simple-CRUD.g/info/refs?service=git-receive-pack redirect: gitlab.com/users/sign_in 回答1: Because it's return 500 error. https://gitlab.com/ 回答2: Do you have two factor authentication enabled

Git - unable to push into gitlab project - “unable to update URL base from redirection”

浪子不回头ぞ 提交于 2019-12-23 12:55:46
问题 I gave this remote URL for my project. git remote add origin https://gitlab.com/AbdullahValley/simple-crud.git When I entered this command: $ git push -u origin master It gives some ERROR which I don't understand here. fatal: unable to update URL base from redirection: asked for: gitlab.com/AbdullahValley/Simple-CRUD.g/info/refs?service=git-receive-pack redirect: gitlab.com/users/sign_in 回答1: Because it's return 500 error. https://gitlab.com/ 回答2: Do you have two factor authentication enabled

How do i give parameters to SonarQube.Scanner.MSBuild.exe?

只愿长相守 提交于 2019-12-23 12:25:10
问题 From searching online and looking at sonarqube docs the only thing that I can find is: SonarQube.Scanner.MSBuild.exe /k:KeyOfProject /n:NameOfProject msbuild.exe C:\projectpath\soultion.sln SonarQube.Scanner.MSBuild.exe end The problem is there's no switches that i've found to set things like: analysis mode (preview, publish, increment/issues to set if sqube reports the project to server) how to make sonarqube comment on issues and code in Gitlab The ONLY thing i can think of is by passing

Can't find out base GitLab API base url

泄露秘密 提交于 2019-12-23 06:49:00
问题 I've created project and repo on my gitlab.com account, generated private key, now I'm trying to do api call to get list of commits. Now I want to get list of projects via api, from documentation https://docs.gitlab.com/ce/api/projects.html#list-projects GET /projects So I'm doing curl --header "PRIVATE-TOKEN: XXXXXXX -c" "https://gitlab.com/projects" And getting 404. I've tried several combinations and can't find correct base url. Same for repository commits, documentations https://docs

Gitlab CI jobs fail/pass randomly

一世执手 提交于 2019-12-23 05:19:51
问题 I have some gitlab-ci.yml files for some projects that I want to deploy. After banging my head against the wall for several hours, I've realized that they pass/fail randomly. Of course, nothing changes, it's just a matter of pressing on the "Retry" button and sometimes the job will pass and other times it will fail. This is a .gitlab-ci.yml that I'm working with: image: docker:latest services: - docker:dind before_script: - echo "Runnig before_script" - apk add --no-cache py-pip python-dev

GitLab 6.9.0 - “hook declined to update refs/heads/master”

旧城冷巷雨未停 提交于 2019-12-23 05:11:52
问题 the last days I read alot of posts with the same problem. Some with an solution, but nothing worked for me. After updating to 6.9.0 through the update-script, when I push, I get POST git-receive-pack (896 bytes) remote: /usr/local/lib/ruby/2.0.0/net/protocol.rb:158:in `rescue in rbuf_fill': Net::ReadTimeout (Net::ReadTimeout)[K remote: from /usr/local/lib/ruby/2.0.0/net/protocol.rb:152:in `rbuf_fill'[K remote: from /usr/local/lib/ruby/2.0.0/net/protocol.rb:134:in `readuntil'[K remote: from

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