gitlab

I can't commit (your branch is up-to-date with 'origin/master')

一世执手 提交于 2019-12-12 20:28:14
问题 I created a project on gitlab and i added a user as developer, So my colleague clone the project correctly and he created a new file but when he try to commit with the following command : git commit -a -m "update" he got this message : any explanation and help ? 回答1: after you do git init if you want submit all of you file code just type git add . after that you can do git commit -m "First commit" next -> git remote add origin remote repository URL in the end, git push origin master hope it's

Jenkins Branch Specifier Not Being Obeyed

混江龙づ霸主 提交于 2019-12-12 19:40:43
问题 I have a Jenkins build configured to pull from a Gitlab repo. I have specified in the build config, branch specifier to only pull from one specific branch: Branch Specifier (blank for 'any'): origin/development Yet regardless of which branch a commit is pushed to, the build still triggers and pulls the committed branch and builds it. Am I misunderstanding exactly what the branch specifier is supposed to do? I want to only build when a certain branch is committed to. I've also tried the

GitLab API: upload projects avatar

ぐ巨炮叔叔 提交于 2019-12-12 18:22:28
问题 Is it possible to upload an avatar for a specific project? I could not find anything about this in the documentation. 回答1: You can upload a file then set the avatar url. See edit-project docs for how to set the avatar URL. https://docs.gitlab.com/ce/api/projects.html#edit-project ... "avatar_url": "http://example.com/uploads/project/avatar/4/uploads/avatar.png" ... 回答2: It is true that there is a parameter avatar_url within the response of an edit or list request but it is not included as a

Gitlab CI how to deploy the latest to a specific directory

安稳与你 提交于 2019-12-12 18:17:29
问题 I have two projects in Gitlab where one is a submodule (let's call repo "frontend-templates") of the other (let's call this repo "main"). I have set up a Gitlab CI build for the "frontend-templates" repo. The thing is that I don't need testing or building. I only need deploying for this CI in the needed directory. So, I registered a runner for "frontend-templates" project and added .gitlab-ci.yml to the root directory: job_main: type: deploy script: echo "Do nothing" When I push to my

GitLab site is showing the plesk default page. What am i doing wrong?

六月ゝ 毕业季﹏ 提交于 2019-12-12 18:07:55
问题 so here is my setup: I have Ubuntu 14.04 and installed Gitlab omnibus. Then i basically just followed this guide: Setup for non-bundled Webserver (apache in my case) I successfully enabled the apache site with this config files: gitlab.rb (just those lines which are not commented): external_url "http://git.codefighters.org" nginx['enable'] = false web_server['external_users'] = ['www-data'] gitlab_workhorse['listen_network'] = "tcp" gitlab_workhorse['listen_addr'] = "127.0.0.1:8181" git

CentOS + Jenkins

让人想犯罪 __ 提交于 2019-12-12 16:53:47
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> CentOS + Jenkins 2018.09.14 15:04:04字数 507阅读 94 1. 安装JDK 确认此前未安装过JDK,如果安装过先确认jdk不是gcj版本,否则Jenkins可能运行异常,需要卸载重装JDK; 查看jdk版本 # java -version 卸载jdk # yum remove java 搜索open-jdk # yum search openjdk image.png 安装open-jdk # yum install java-1.8.0-openjdk 再检查JDK版本 [root @localhost ~]# java -version openjdk version "1.8.0_161" OpenJDK Runtime Environment (build 1.8.0_161-b14) OpenJDK 64-Bit Server VM (build 25.161-b14, mixed mode) 2. 安装GIT,如果已安装则跳过 yum install git 3. 开始安装Jenkins 下载依赖 wget -O /etc/yum.repos.d/jenkins.repo http://jenkins-ci.org/redhat/jenkins.repo

How to copy a file from the repository, into the Docker container used for a job, in gitlab-ci.yml

二次信任 提交于 2019-12-12 13:08:50
问题 How can I add a file from my project into a Docker using in a gitlab-ci job. Suppose I have below job in my .gitlab-ci.yml . build:master: image: ubuntu:latest script: - cp sample.txt /sample.txt stage: build only: - master How to copy a sample.txt inside Ubuntu image? I was thinking as it is already a running container so we can't perform copy command directly but have to run docker cp sample.txt mycontainerID:/sample.txt but again how will I get mycontainerID? because it will be running

Gitlab Omnibus: how to redirect all requests to another domain

情到浓时终转凉″ 提交于 2019-12-12 12:29:05
问题 I migrated my Gitlab to a new domain. I'd like to redirect all HTTP requests from the old URL to the new one. Both domains currently point to the same server (using A DNS records). I use Gitlab Omnibus package, with the bundled nginx install. How to do this? 回答1: First, create /etc/nginx/conf.d/redirect.conf : server { listen 80; server_name old-gitlab.mydomain.com; rewrite ^/(.*)$ http://new-gitlab.mydomain.com/$1 permanent; } (if the /etc/nginx/conf.d/ path does not exist, go ahead and

How do I get a Docker Gitlab CI runner to access Git on its parent host?

家住魔仙堡 提交于 2019-12-12 10:31:30
问题 Gitlab is setup on our internal network at http://gitlab Docker containers on the same machine can't connect to it. How do I configure docker so that it knows gitlab is its parent? The problem exhibits itself when Gitlab CI attempts to run a build (inside a Docker container): Cloning into '/builds/ns/project'... fatal: unable to access 'http://gitlab-ci-token:xxxxxx@gitlab/ns/project.git/': Couldn't resolve host 'gitlab' I've tried adding the network's DNS servers to DOCKER_OPTS in /etc

BitNami GitLab Stack 5.1.0-2 with LDAP

强颜欢笑 提交于 2019-12-12 09:07:01
问题 I am configuring LDAP for BitNami GitLab Stack 5.1.0-2 I use following settings for /opt/bitnami/apps/gitlab/htdocs/config/gitlab.yml ## LDAP settings ldap: enabled: true host: '192.168.1.14' base: 'DC=company,DC=com' port: 389 uid: 'sAMAccountName' method: "plain" bind_dn: 'gitlab-ldap@company.com' Example at GitHub https://github.com/gitlabhq/gitlabhq/blob/master/config/gitlab.yml.example#L82-L91 After restart I see LDAP Sign in as default button, but I can't login. Could not authorize you