gitlab giving users code download rights but no rights to see project

Is there a way in gitlab to disable a project from showing up as a project if the user only has guest level privileges? To clarify and add a little more detail. I have added the ability for guest to download code but removed pretty much every privellege regarding actually using gitlab to look at the project. Which means that if the project shows up as a project to the user and they click on it gitlab returns an error. I would much rather gitlab not show the project at if the user has guest le

gitlab cannot send email to new user

I've just installed git git-1.8.1.2 and gitlab gitlab_6.7.2-omnibus-1.ubuntu.12.04_amd64.deb on fresh install of Ubuntu 12.04 lts following: https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/README.md#ubuntu-12-04 and: https://www.gitlab.com/2014/03/12/packaged-gitlab-with-omnibus/ When setting up a new user in gitlab, it attempts to send out an email with temporary passwords but postfix gets an error from the relay host: Bad sender address syntax (in reply to MAIL FROM command) My /et

How to find source code of user login in Gitlab?

As you know, in gitlab, sign in using username and password, without a random verification code. We consider this is not safe enough and try to add verification code in Sign in page. When user clicking Sign in, the browser send a HTTTP POST request to http://mydomain/users/sign_in url, my question is:where is the source code receive this request and do the sign in. I think this is where to add verification code logic. I am using gitlab 7.6.1, and new to ruby and rails. I really appreciate your

service account for gitlab container registry

We would like to use our private gitlab container registry in AWS ECS. When accessing the registry, we get 403 as expected. Now we need a service account to access the registry, but I cannot figure out how to create them. The gitlab ci seems to have a global user "gitlab-ci-token" which has access to the registry. docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN see https://about.gitlab.com/2016/05/23/gitlab-container-registry/ Is there any possibility to create non-project users/api toke

Gitlab Triggering a pipeline and waiting for it to finish from another pipeline

I have two different project repositories: my application repository, and an API repository. My application communicates with the API. I want to set up some integration and E2E tests of my application. The application will need to use the latest version of the API project when running these tests. The API project is already setup to deploy when triggered deploy_integration_tests: stage: deploy script: - echo "deploying..." environment: name: integration_testing only: - trigg

Gitlab pages mathjax

I am using Gitlab Pages to host a documentation generated with Sphinx. Is it possible to render math with MathJax using Gitlab Pages? From my testing, equations are not rendered. Do I need to install MathJax along with doc in order for this to work? The generated documentation render properly on a local machine.

Gitlab How to get out of a migration failure without reverting to backups

So what are my options if an update to the next major version fails due to database migrations not working? (Parts of the migrations already seem in place? The problem is that backups all contain that column and I'm not even sure when this problem started. I have done a few backup recoveries a couple of months ago all seemed well at the time, but now I'm pretty sure something went wrong there. I can think of; 1 going in manually into postgres to delete columns. And try to update then. (how?).

Taking over GitLab administration

Our GitLab admin (and a couple of devs) left the company recently and I have been trying to take over. How do I go about getting admin rights? I might already have them, but I'm not sure. I can ssh to our internal GitLab server, and have sudo rights. We use LDAP. I am looking to take over a project (I am currently a developer), how would I do that? Thanks.

Gitlab GKE not able to pull image from artifactory

I am using GKE, gitlab and JFrog to achieve CI and CD. All my steps work, but my deployment to GKE fails as its not able to poll my image. Image does exists. I have given below deployment, yaml and error message. Below is my deployment file, i have hardcoded the image to be clear that image does exists. --- apiVersion: extensions/v1beta1 kind: Deployment metadata: labels: app: go name: hello-world-go spec: progressDeadlineSeconds: 600 replicas: 3 selector: matchLabels:

Gitlab runner has Permission denied error in mkdir

I started gitlab runner with the following script: gitlab-runner register --tls-ca-file="$GIT_CERTIFICATE_DIR" \ --non-interactive \ --url "https://${GIT_SERVER}/" \ --registration-token "${GIT_RUNNER_TOKEN}" \ --description "ionic gitlab runner" \ --executor "shell" \ --tag-list android,ios \ gitlab-runner install gitlab-runner start gitlab-runner run when a job executes I get the following error: Running with gitlab-runner 11.10.1 (1f513601) on ionic gitlab runner

How to make a cluster of GitLab instances

Is it possible to create a cluster of multiple GitLab instances (multiple machines)? My instance is over utilized and I would like to add other machines, but at the same for the user should be transparent to access his project, he doesn't care which instance it will be hosted on. What could be the best solution to help the users? I'm on GitLab Community Edition 10.6.4 Thanks for your help, Leonardo

Installing gitlab - PVs get bounded incorrectly, externalIP causes error

I'm attempting to install Gitlab, using Helm, to OpenShift 3.11. To do this, I'm trying to follow the Gitlab documentation, and also trying some of the examples. Helm commands I'm running Helm from an Ansible playbook. The task that I use to run the Helm commands is: - name: Install Gitlab using Helm command: "{{ item }} " loop: - "helm repo add gitlab https://gitlab-charts.s3.amazonaws.com/ --ca-file=/etc/ssl/certs/ca-bundle.crt" - "helm repo update" - "helm insta

Gitlab Pipeline Broken due to mismatch version on branch and server with FabFile

My pipeline in gitlab is broken After a crash the version on the server has been changed and doesn’t not match the last commit It seems gitlab does not transfer all the files Can someone help iam in intership and that error concern a preproduction server Ive try to make a commit push to restart the job Here is the pipeline code ## Pipeline CI stages:   - deploy ## Deploy preprod preprod_job:   stage: deploy   script:   - 'cd /opt/fabric/suivi-budget/app ; sudo git pull origin master ; sudo  fab

fail gitlab multijob pipeline if test job fails in another repository

I have a gitlab ci pipeline in my application repo, A, which calls an end to end testing Repo T to run its tests. The repo A pipeline succesfully triggers the tests from Repo T but if the test job fails in T, the job calling the test job in T from A still passes. How do I get repo A to track the result of Repo T's test job, and pass/fail its pipeline based off of the test jobs in T? .gitlab-ci.yml for testing Repo T: stages: - test test: stage: test image: markhobson/maven-chrome:jdk-11

Gitlab users can't use ssh to push after moving project under subgroup

In order to enable more DevOps processes in my group, I structured the projects in a hierarchy of subgroups. It seems that after moving the project from under individuals to a subgroup, the repository can not be used anymore with SSH. No special setting was done in the group other than creating it and moving the project. Why is that? How can I revert it?

Gitlab - Getting slack notification on failed main pipelines only

I have configured slack integration in my gitlab projects to send webhooks upon merge requests being opened, merged and so on. I would like to also send a webhook in case a main pipeline fails, as I’ve scheduled weekly pipeline on main branch. Gitlab version - Enterprise Edition 13.12.0-pre But I want to send the webhook to a different URL, is that possible? Thanks in advance.

How to get file change count from Gitlab API?

Using Gitlab commit API with the attribute 'with_stats' set as yes, I am able to get the line change additions, deletions and total but I dont see an option to get the file change count as available at : git show --stat or even at Gitlab UI : . With the gitlab API: https://<gitlab_server>/api/v4/projects/:id/repository/commits?with_stats=yes I see a response like : "stats": { "additions": 9, "deletions": 2, "total": 11 } but nothing like { "fi

Graphs lost after upgrading to Gitlab 6.0

Yesterday I've upgraded my Gitlab installation from 5.3 to 6.0 (technically from 5.3 to 5.4 and 5.4 to 6.0), and I can't display Network and other Graphs since then. On the network page it seems some Javascript is not loaded, as I got a 'Network is not defined' error. Graphs seems to be a different issue, but I can't find anything in the logs. Is it a bug or I did something wrong? Both functions were working fine before the upgrade.

Run gitlab server with bundle: command not found error

I have no idea what happened sudo service gitlab start Starting both the GitLab Unicorn and Sidekiqscript/web: line 21: bundle: command not found ...... Check my system information System information System: Ubuntu 12.04 Current User: git Using RVM: yes RVM Version: 1.25.19 Ruby Version: 1.9.3p545 Gem Version: 2.2.2 Bundler Version:1.5.3 Rake Version: 10.1.1 GitLab information Version: 6.6.4 Revision: 42e34ae Directory: /home/git/gitlab DB Adapter: postgresql URL:

in the activity stream of a gitlab project's home page, commits are associated with incorrect user

has anyone seen this before? if so, how did you go about fixing this? in my git repo, commits by an user (J) are listed with another user (S) on the project's home page activities stream. if i click on one of these commits, it takes me to the commit page. Here, the author name is correct. in mysql's event table, I definitely see the problem. in example below, the event entry has different user_name than author | 5047 | NULL | NULL | NULL | --- :before: 2ab9bd30a20529bdeeaab21

Gitlab fatal: '1XX.1XX.XX.XX/mike/sampleprj.git' does not appear to be a git repository

I have a Linux Centos6.5 GitLab version 1.8.3.1(GitLab 6.8.1 3197990)server which has been setup with a public ip address without having an authorized domain name,sampleprj.git has been cloned from github.com properly and can be reach by browser 1XX.1XX.XX.XX, tortoise git Git-1.9.4-preview20140929 has been installed at the windows 7 side, when I tried to pull the source code files to the Linux server, it shows errors: git.exe pull --progress "goman" master Error fatal: '1XX.1XX.XX.XX/mik

How to determine if GitLab installation is Omnibus or via source?

I'm researching the process of migrating GitLab from an old server to a new server. One of the first things I need to do is determine which installation GitLab is in (Omnibus vs. source), and I'm unable to tell. This post (omnibus or source - can't decide which one to use for gitllab backup/restore) mentions looking for a .git file in the GitLab root folder (/home/git/gitlab) - I don't see a .git file there. So, by that comment the installation was Omnibus. However, looking at this post (

Replicate GitLab CI & Runner Functionality Locally?

In absence of network, on-site we can commit to local git repo but can't have gitlab-ci to compile project and early trobuleshoot. How to have a localized gitlab-ci and gitlab-runner which can compile commits offline (*or alternate means) ?

Gitlab How to use git pull to merge the remote branch into yours?

Here i m successfully run git add and git commit on my gitlab account but when i perform git push they give me a following error: To gitlab.com:shrav/vaishaliAllProjects.git ! [rejected] master -> master (fetch first) error: failed to push some refs to 'git@gitlab.com:shrav/vaishaliAllProjects.git' hint: Updates were rejected because the remote contains work that you do hint: not have locally. This is usually caused by another repository pushing hint: to the same ref. You may want to fi

Gitlab Retrieving push metainformation and transferring it to the CI

I know, that in general GitLab CI scripts run after every push to the repository. How I can retrieve metainforation about the push and then transfer it to the GitLab CI? By metainforation I mean: project name, name of the user, who performed this push, name of the branch (branches) affected by push.

Gitlab-runner permissions

Trying out gitlab and trying to build a simple create-react-app project. However, I'm having issues with the gitlab-runner. I'm running gitlab on an EC2 instance using the AMI from gitlab that's in the amazon marketplace. by yml is really basic. build-site: image: node:9 stage: build script: - npm install - npm run build artifacts: expire_in: 1 week paths: - build

Gitlab How to generate Release Notes for Milestones?

So I was wondering how you guys handle generating of release notes for let's say a milestone in GitLab. What I want is to have for every Issue an option to write some text that is considered a "Release Note". Then I want an option to automatically generate i.e.: a text file that contains all those indivudual Release Notes. Any best practices on how to realize this?

Gitlab 11: Create a branch from issue to another project

We have a gitlab server which host 3 projects (front, back, issues) in the same group. I'd like to know if its possible to create a branch on front project from an issue created on issues project ? I tried in the issue page but it seems i can't select another project : Thank you !

.gitlab-ci.yml to include multiple shell functions from multiple yml files

I have a Gitlab mono repository with some backend Java and frontend Node.js code. To create a CI, I'm working on a shared approach to build both the applications. In the application repository, let's call it "A", I have source code as well a .gitlab-ci.yml file as below, A ├── .gitlab-ci.yml ├── backendapi └── ui .gitlab-ci.yml file, --- include: - project: 'root/B' ref: master file: 'top-level.yml' - project: 'root/B' ref: master file: 'maven.yml' - project: 'root

gitlab error in testing a lit-element app

I'm using Gitlab as a CI/CD tool for my project and, I'm having this error trying to run the tests: > pwa-starter-kit@0.9.0 test:unit /builds/jperera84/prop-mgm-app > polymer test --module-resolution=node --npm Error: No browsers configured to run error: cli runtime exception: Error: No browsers configured to run error: Error: No browsers configured to run at Object.<anonymous> (/builds/jperera84/prop-mgm-app/node_modules/polymer-cli/node_modules/web-component-tester/runner

How can I get a gitlab pipeline to stop and ask me to input variables?

I have created a pipeline in gitlab, with image: name: hashicorp/terraform:light entrypoint: - '/usr/bin/env' - 'PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin' variables: PLAN: dbrest.tfplan STATE: dbrest.tfstate cache: paths: - .terraform before_script: - terraform --version - terraform init stages: - validate - build - deploy - destroy validate: stage: validate script: - terraform validate plan: stage: build script:

GitLab CI CD - Get variables from external project

So, I am setting up a deployment strategy and I wanted to see if this was possible. I have scoured the documentation, and I can't find anywhere that is says it is NOT possible, but I also haven't found anything saying that it IS possible. To keep things simple, here is a simplified version of what I'm trying I have a group and within that group there are projects: MasterGroup/project_1 MasterGroup/project_2 I was hoping that project_1 could be the store of variables, common tasks (stages).

Transfer gitlab repo to a different group

In the gitlab documentation, it reads Transferring an existing project into a group You can transfer an existing project into a group you own from the project settings page. First scroll down to the 'Dangerous settings' and click 'Show them to me'. Now you can pick any of the groups you manage as the new namespace for the group. But I cannot even manage to find the settings page. In the docs there is the following figure: However, my sidebar looks as follows: What'

Gitlab: Print custom warning

I wonder if it's possible to show a custom warning next to a Gitlab-CI job. For example, I'd like in a single job to lint and style check a terraform configuration, print a warning if it doesn't pass, then create a terraform plan and stop the pipeline if that fails. Is this feasible?

SSG NextJS on Gitlab Pages stucked on 404?

I started a simple SSG NextJS project to build my personal website/portfolio: https://gitlab.com/soykje/soykje.gitlab.io, that I want to deploy using Gitlab pages (but without the now stuff...). I created the .gitlab-ci.yml and updated the next.config.js to take care of assetPrefix parameter, but still I'm getting a mysterious 404. And I can't find a way to fix it, as the CI/CD tells everything is fine... :( Here is my .gitlab-ci.yml: image: node cache: paths: - node_modules before_scrip

Is it possible to add a non-group member to a group project in Gitlab?

We are a small company that uses Gitlab (free, not self hosted) to manage our projects. We have created our group which has 6 members so far. We need to grant access to a new user for a specific project, but this user is not part of the company, and we don't want to add him to our group because we are not willing him to get access to all of our projects. That seems to be exactly this case described in the doc but this option doesn't exist in the members section of the project. I suspect this is

GitLab custom issue tracker link to reference tickets in Rally

I am trying to create reference tickets links in GitLab when we enter any Rally ticket number in the commit message or merge title in GitLab. The sample ticket number in Rally looks like TA31950 We can link with ticket number using https://rally1.rallydev.com/#/search?keywords= [Ticket number] Example: https://rally1.rallydev.com/#/search?keywords=TA31950 (This will directly open a ticket in Rally) When I am mentioning ticket number in GitLab commit message or merge title in a format -, i.e. ANY

How do I permit CI_JOB on Gitlab to use project-templates that are not public?

I would like to use one (or multiple) ci-templates for my .gitlab-ci.yml on multiple projects. So What I did is I have a group named mygroup and some projects in that group (let's call them foo, bar and baz). Additionally to those projects I have a project called mygroup-ci which should offer the ci templates used by the projects in mygroup. So in all projects foo, bar and baz I use this .gitlab-ci.yml, which includes a file in the folder templates named gitlab-ci-template.yml from the project m

How do i check GO version in Gitlab Omnibus

Is there a way to check GO version in Gitlab. When i try to run gitlab-rake gitlab:env:info I get this which says Go Version : Unknown I want to know the version of Go so that I can check if I can integrate some monitoring tools like Dynatrace for my Gitlab instance because Dynatrace only supports fewer versions. Current User: myuser Using RVM: no Ruby Version: 2.6.6p146 Gem Version: 2.7.10 Bundler Version:1.17.3 Rake Version: 12.3.3 Redis Version: 5.0.9 Git Version: 2.28.0 Si

GitLab not 'noticing' file changes after commit

I'm working with GitLab for the past 3 weeks, and now when I commit some changed file, push to the gitlab server and review the commit, it shows that are no alterations to the file, even if I change the whole content. It also shows only the first line of the file, with a strange "B" char in the beginning of the first line (It happens with all files that the problem occurs), like the screenshot below. The GitLab server is in version 8.5.8. (CentOS 7) I'm using the git client on Windows 8.1 (gi

Gitlab CI Build failed gitlab-runner-prebuilt.tar.xz: no such file or directory

I just installed Gitlab Runner on my dev machine (Ubuntu 17.10) for testing. When I run the runner I got: $: sudo gitlab-runner exec docker test Running with gitlab-ci-multi-runner dev (1.4.2) Using Docker executor with image php:5.6 ... ERROR: Build failed (system failure): open /var/lib/gitlab-runner/gitlab-runner-prebuilt.tar.xz: no such file or directory FATAL: open /var/lib/gitlab-runner/gitlab-runner-prebuilt.tar.xz: no such file or directory .gitlab-ci.yml file: im

Gitlab CI: create multiple builds from single commit

My current gitlab configuration is very simple as below stages: - build before_script: - some commands here build-after-commit: stage: build script: - some command here artifacts: expire_in: 1 day when: on_success name: name here paths: - build/*.zip I want to run build-after-commit part twice with different settings. I am expecting something like this stages: - build before_script: - some commands here build-after-commit: stage: build script: - some command he

Gitlab Runner Job failed

Our Gitlab Runner job always aborts when trying to make an npm install. It means that npm is not found or installed. It will be installed above and worked fine until a few days ago. Anyone have an idea? I add our gitlab-ci.yml to the attachment, I'm a bit helpless... image: "ruby:2.5.5" variables: RAILS_ENV: "test" GIT_DEPTH: "1" APT_PACKAGES: "nodejs postgresql postgresql-contrib libpq-dev sudo fontconfig bzip2 curl libxss1 libappindicator1 libindicator7 libpango1.0-0 fonts-liberation x

Gitlab - get env info for a project

I'm trying to get environment info given project id and environment id. I'm following Gitlab doc. Right now I'm able to get all environments by a project id with the following call: http://my_gitlab_url/gitlab/api/v4/projects/27/environments. I get correctly the result: [ { "id": 46, "name": "my_first_env", "slug": "my_first_env", "external_url": null, "project": { "id": 27, ... } }, { "id": 47,

Any reason why I can't connect to localhost in GitLab.com CI?

I want to test some HTTP REST APIs, and for that I need to be able to have my job to listen and to make requests to itself. In order to simulate such a scenario, I made a simple pipeline where I mount a netcat server, and then try to connect. test_backend_job: image: debian:latest script: - apt-get update && apt-get --assume-yes install netcat - nohup nc -l localhost 5000 & - sleep 5 - nc -v localhost 5000 If I try this on my PC, the connection is established

Is it possible to "lock" group of jobs across multiple gitlab pipelines

I have multiple jobs working with a single external resource (Server). The first job deploys the app to the environment, the second execute tests at this environment, third execute integration tests at this environment. I know there is Resource group option. But it locks only jobs. If two pipelines run concurrently I need to execute job1, job2, job3 from the first pipeline, and only when the first pipeline release resource - the second pipeline can launch jobs1-3. Is there a way to achieve this?

Trying to select environment in GitLab CI with multi/optional manual steps

So you all can guide me in a different direction if I'm way off track. I want to add a manual step that has the user choose which environment they want to build to. This step will set variables for the following steps to build with. My issue is that the Build step won't trigger unless all of the previous manual steps are run because I need to set allow_failure: false. If I do not set that, then the CI will skip the manual Env step. I want to make it so the Build step triggers if only 1 of the

How to setup Code Quality Plugin for Java in Gitlab?

I have a simple Maven Project not using Docker or anything. Not well versed with Gitlab. In .gitlab-ci.yml, I have added following: include: - template: Code-Quality.gitlab-ci.yml <----- This one code_quality: artifacts: paths: [gl-code-quality-report.json] <----- This one stages: - test - publish - deploy - manual # Test all commits regardles of branch in a WildFly 10 instance test:wf10: stage: test script: - mvn clean test -U -Dprofile.wildfly10 -Dwildfly10

How to enable to run a GitLab CI pipeline manually outside of cases where they are run automatically?

I want to have a pipeline that needs to run at each merge request. I would also like to have the ability to run that pipeline manually so that one can anticipate merge issues. However, if I specify my jobs as only: - merge_requests when trying to run the pipeline manually, I am greeted with a Pipeline cannot be run. No stages / jobs for this pipeline. If I use workflows instead, include: - template: 'Workflows/MergeRequest-Pipelines.gitlab-ci.yml' I am greeted with a different but equiva

  1    2   3   4   5   6  ... 下一页 最后一页 共 10 页