gitlab

Show in GitLab TeamCity builds status

南笙酒味 提交于 2019-12-07 08:05:56
问题 I've managed to configure TeamCity to automatically pull the new checked-in changes from GitLab and build it. Next step I would like that the build status icon in GitLab reflects the build status from TeamCity. At the moment each build TeamCity builds, GitLab continues to show "build:skipped". As I understand this is because it's not run with Gitlab CI and that my repo misses gitlab-ci.yml. I did setup the TeamCity CI service for the project but it didn't help with anything. Maybe I'm

how to use gitlab repo in NPM with package.json

痴心易碎 提交于 2019-12-07 07:53:19
问题 I'm working on a internal project and want to share a tools inside the group. but if I use the npm tools. it either request the module has registered on npm website or public git repo. I'm using gitlab. and there is a private token. git+https://gitlab-ci-token:\<private token>@<domain>/<username>/<repo_name>.git i tried to put it like this in package.json but it's not working. Is there a way to install a private gitlab repo with authorization? thanks a lot. 回答1: If I understand your question

Configure GitLab repository in Jenkins

只愿长相守 提交于 2019-12-07 05:43:58
问题 I'm trying to configure Jenkins (running on Windows Server 2008) to connect to a GitLab 6.0 repository (on a linux box). From my local windows box I can use the SSH URLs to clone the projects on my GitLab server. I've had some issues using the HTTP URLs, but I did manage to connect using HTTP with authentication using the Eclipse plugin. On the Jenkins project config screen I have attempted: http://myserver.domain/mygroup/myproject.git Failed to connect to repository : Command "d:\tools\Git

./deploy.sh not working on gitlab ci

核能气质少年 提交于 2019-12-07 04:37:54
问题 My problem is the bash script I created got this error "/bin/sh: eval: line 88: ./deploy.sh: not found" on gitlab. Below is my sample script .gitlab-ci.yml . I suspect that gitlab ci is not supporting bash script. image: docker:latest variables: IMAGE_NAME: registry.gitlab.com/$PROJECT_OWNER/$PROJECT_NAME DOCKER_DRIVER: overlay services: - docker:dind stages: - deploy before_script: - docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN registry.gitlab.com - docker pull $IMAGE_NAME:$CI_BUILD

Gitlab PUSH syntax error, unexpected ':', expecting $end

主宰稳场 提交于 2019-12-07 04:12:37
问题 I've installed Gitlab 5, all ran smoothly until I attempted to make a test PUSH. The error is: remote: /usr/local/rvm/gems/ruby-2.0.0-p0/gems/bundler-1.3.5/lib/bundler/dsl.rb:33:in `eval_gemfile': Gemfile syntax error: (Bundler::GemfileError) remote: /home/git/gitlab/Gemfile:14: syntax error, unexpected ':', expecting $end remote: gem "mysql2", group: :mysql remote: ^ I searched all over the internet (well, kind of), but mostly the answer is about using a lower version of ruby (1.8.7). Which

GitLab CI with JS Linting

最后都变了- 提交于 2019-12-07 02:34:16
问题 I have 0 experience with GitLab Continuous Integration and I need to setup a job to run ESLint on .js files. I've already read the GitLab CI and Pipeline documentations, along with some Git Hooks, but I still have no idea how to setup this, so any detailed and starting from the very beginning answer is appreciated. Thanks, 回答1: First you need to setup your CI and have some runners available so they can run your continuous integration jobs. The easiest way for this is to use gitlab-ci-multi

Git ssh 配置及使用方法

好久不见. 提交于 2019-12-07 02:25:24
这篇教程是在电脑上已经安装好git的前提之上的,要进行以下配置,请先确保你的电脑已经安装好git。以下配置步骤是在git bash里面进行配置的,可以通过 右键》 git bash here 打开 在管理Git项目上,很多时候都是直接使用https url克隆到本地,当然也有有些人使用SSH url克隆到本地。 这两种方式的主要区别在于:使用https url克隆对初学者来说会比较方便,复制https url然后到git Bash里面直接用clone命令克隆到本地就好了,但是每次fetch和push代码都需要输入账号和密码,这也是https方式的麻烦之处。 而使用SSH url克隆却需要在克隆之前先配置和添加好SSH key,因此,如果你想要使用SSH url克隆的话,你必须是这个项目的拥有者。否则你是无法添加SSH key的,另外ssh默认是每次fetch和push代码都不需要输入账号和密码,如果你想要每次都输入账号密码才能进行fetch和push也可以另外进行设置。前面的几篇介绍Git的博客里面采用的都是https的方式作为案例, 今天主要是讲述如何配置使用ssh方式来提交和克隆代码。 大概可以分为一下几个步骤 设置Git的user name和email:(如果是第一次的话)检查是否已经有SSH Key。生成密钥添加密钥到ssh-agent登陆Github, 添加 ssh 测试

git clone with http not working in gitlab

送分小仙女□ 提交于 2019-12-07 02:14:26
I have GitLab CE setup with my domain (Ubuntu) and the git clone with http not working but ssh works well. git clone git@gitlab.mydomain.com:anshad/test.git works. git clone http://gitlab.mydomain.com/anshad/test.git not working. Cloning into 'test'... Username for 'http://gitlab.mydomain.com': anshad Password for 'http://anshad@gitlab.mydomain.com': fatal: unable to access 'http://gitlab.mydomain.com/anshad/test.git/': The requested URL returned error: 500 sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production says System information System: Ubuntu 16.04 Current User: git Using

How to obtain GitLab Personal Access Token from command line

佐手、 提交于 2019-12-07 02:02:33
问题 Is there any possibility to get Personal Access Token for Gitlab API via command line rather than web interface? I'm working on some integration tests, and Gitlab deployment into the clean environment is a part of test session setup. After deployment test user is doing some work with Gitlab API. In order to access API, test user need to provide Personal Access Token. I managed to dump traffic, and I see that token is provided within a rendered HTML template in response to POST request: 00:06

Gitlab-Ci: How could I share data between jobs

六月ゝ 毕业季﹏ 提交于 2019-12-07 00:53:36
问题 I want to share a file between two jobs and modify it if there are changed files. The python script compare the cache.json file with changes and modify the cahce file sometimes. .gitlab-ci.yaml : image: ubuntu stages: - test cache: key: one-cache paths: - cache.json job1: stage: test script: # - touch cache.json - cat cache.json - python3 modify_json_file.py - cat cache.json The problem is that it the cache.json file not exist at the next job run. I get the error message: cat: cache.json: No