gitlab

Git init: fatal: could not set 'core.filemode' to 'false'

会有一股神秘感。 提交于 2019-12-11 06:05:22
问题 Using Team City to check out from a Git Repo. (Gitlabs if it matters) Start with Empty build directory. Get this error: fatal: could not set 'core.filemode' to 'false' (Running on a Windows machine, if that matters) The user that Team City is running on was changed to an Admin just in case. The .Git directory is not a valid Repo when this command exits. Wiping the entire 'work' directory doesn't help. It randomly comes and goes... AND this: git config --global --replace-all core.fileMode

Gitlab CI - Start Shared Runner for normal repos

房东的猫 提交于 2019-12-11 06:02:07
问题 I'm new to Gitlab CI. I have configured .gitlab-ci.yml file, and using CI Lint it has passed the validation process. Based on this documentation, I can see a specific runner should be configured on a virtual machine, a VPS, a bare-metal machine, a docker container or even a cluster of containers. And I can see gitlab has its own shared runners and enabled by default . When I visit the Pipeline page I can only see the blue Get Started with Pipeline button and when clicked I was redirected to

Gitlab CI variable, option with quotes

女生的网名这么多〃 提交于 2019-12-11 05:42:02
问题 I have the following gitab-ci.yml file : stages: - tests .test: &test_job image: name: test.com/test:latest entrypoint: [""] script: - py.test /test -v $EXTRA_OPTIONS testing: variables: EXTRA_OPTIONS: -m "not slow" <<: *test_job stage: tests I would like to pass option to run pytest like: py.test /tests -v -m "not slow" to avoid running slow tests, but gitlab is trying to escape quotes. I've got something like: py.test /tests -v -m '"not\' 'slow"' is it possible to create a variable that

How visualice multiples repos and clone them (git instaweb, gitlist, gitlab)

白昼怎懂夜的黑 提交于 2019-12-11 05:08:25
问题 I have a huge collection of git bare repos and I want to be able to see the list of the repos and clone them in a public way. I have tried the following: git instaweb . Even in doc shows that is possible to view multiple repos, but it doesn't works. I have posted this question gitlist only list repos. There is an feature request which seems to be forgotten. gitlab-ce I'm able to sync the new repos automatically via CLI but each new repos is imported as private and I haven't found how to make

Auto deployment with gitlab

烈酒焚心 提交于 2019-12-11 04:37:36
问题 We have Gitlab server running in our office in ubuntu server. I'm doing auto deployment using post-receive hook from each repo. This is what I did, I wrote shell script in post-receive file to push code from gitlab server to our actual production server. So all the repos in our gitlab server has post-receive hook to make auto deployment. I installed git bare repo in production server to receive code gitlab server. In production server's bare repo I wrote another post-receive hook to deploy

Gitlab merge a merge request from command line not generating any commit(no fast forward)

你离开我真会死。 提交于 2019-12-11 04:26:34
问题 I am trying to Merge a Merge Request manually from command line . In the merge window of Gitlab, there is already some codes are present to do that. Whenever I merge a request from the Gitlab website, it generates a merge commit, which is known as --no-ff commit. But when I am trying to do that manually, it is not generating any extra commit although I have specified the --no-ff option in command line. Any suggestions? I have already tried with the commit amend option as well. git fetch <Fork

gitlab kubernetes runner cannot connect to the docker daemon

狂风中的少年 提交于 2019-12-11 03:59:10
问题 I have configured gitlab runner within kubernetes , which is not able to connect to docker daemon . Showing below error . $ docker build --cache-from "${DOCKER_IMAGE_TAG}" -t "${DOCKER_IMAGE_TAG}" . Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? ERROR: Job failed: command terminated with exit code 1 stages: - push_to_docker docker_image: image: 'docker:latest' services: - docker:dind stage: push_to_docker variables: DOCKER_IMAGE_TAG: 'gcr.io

Gitlab custom hook not running

六月ゝ 毕业季﹏ 提交于 2019-12-11 03:08:30
问题 We have Gitlab installed on the same server as a dev/staging copy of our test project. Two of us have local working copies with Gitlab as a remote, and are able to push/pull to Gitlab successfully. We also have Gitlab set as a remote in the staging copy of the project, and pulling from Gitlab works there manually as well. However, when creating a custom hook for Gitlab (as described here), the hook simply fails to run with no errors. The content of the hook is: #!/bin/bash echo "Inside post

Gitlab runner not executing jobs docker image

不问归期 提交于 2019-12-11 02:56:31
问题 I created a minimal gitlab CI script to verify this error: docker_execution_test: image: debian:9 script: - pwd - ls The output I would expect is this: db@theia:~/git/docker_test (master*)$ docker run -it --rm debian:9 pwd / db@theia:~/git/docker_test (master*)$ docker run -it --rm debian:9 ls bin dev home lib64 mnt proc run srv tmp var boot etc lib media opt root sbin sys usr However, the output when executed through gitlab-runner is this: db@theia:~/git/docker_test (master)$ gitlab-runner

LF will be replaced by CRLF in git -the file will have its original line endings

十年热恋 提交于 2019-12-11 02:28:07
问题 LF will be replaced by CRLF in git -the file will have its original line endings what does this mean? 回答1: This usually happens when you are on Windows and either core.autocrlf is set to true, or the .gitattributes contains directives to perform line ending normalizations. The way line ending normalization works (on a Windows machine) is that when you commit a file, git replaces every CRLF with a LF, and when you checkout a file, git replaces every LF with a CRLF. Normally this is all