Omnibus GitLab documentation(中文安装说明)

在自己的服务器上部署 GitLab 社区版->较为全面

GIT & REPO & GERRIT (三)

gitlab+gerrit+jenkins持续集成框架 (安装后无法访问首页)

清华大学开源软件镜像站(ubuntu14.04)

离线包官方下载地址

gitlab / gitlab-ce / ubuntu / precise

GitLab Community Edition and GitLab CI (including NGINX, Postgres, Redis)

gitlab优势

Advantages

烤鸭的gerrit使用总结

Jenkins Gitlab持续集成打包平台搭建

转:Gerrit 学习

相关问题解决方案:

1、安装ee版本后,无法访问gitlab首页问题

原因分析:可能于apache已经占用80端口有关系。此时将默认安装的nginx端口号修改掉即可

1、修改/opt/gitlab/embedded/conf/nginx.conf中的 listen 80为8080
2、编辑/etc/gitlab/gitlab.rb 将external_url修改为external_url 'http://127.0.0.1/gitlab'
3、sudo gitlab-ctl reconfigure
4、此时即可访问http://127.0.0.1:8080/gitlab页面

Repo仓库搭建

如何搭建Repo服务器端

Git服务器在Ubuntu中的搭建

Gerrit代码审核服务器搭建全过程

Git服务器Gitosis安装设置

Linux - gitHub- Gitosis

Gerrit的搭建及第一次使用注意事项

烤鸭的gerrit使用总结

android repo中manifest.xml的详解

Gerrit工作流

Gerrit简易安装入门

Gerrit工作原理和流程

gerrit搭建及使用过程中碰到的问题:

1、将代码直接推送到git中(不经过gerrit审核)时,出现验证失败的错误(密码使用了gerrit的登陆密码):

yingc@yingc:~/gerrit_test/test$ git push -u origin master
Username for 'http://127.0.0.1:8081': scm
Password for 'http://scm@127.0.0.1:8081':
fatal: Authentication failed

解决方法: 此时不知道为何不能使用gerrit中的登陆密码,需要登陆到gerrit,然后切换到 用户名->Setting->Http Password,将其中的密码拷贝即可

2、将当前修改推送到gerrit审核时(命令如:git push origin HEAD:refs/for/master),有以下错误:

yingc@yingc:~/gerrit_test/test$ git push origin HEAD:refs/for/master
Username for 'http://127.0.0.1:8081': scm
Password for 'http://scm@127.0.0.1:8081':
remote: Processing changes: refs: , done
remote: ERROR: missing Change-Id in commit message footer
remote:
remote: Hint: To automatically insert Change-Id, install the hook:
remote: gitdir=$(git rev-parse --git-dir); scp -p -P scm@127.0.0.1:hooks/commit-msg ${gitdir}/hooks/
remote: And then amend the commit:
remote: git commit --amend
remote:
To http://127.0.0.1:8081/test
! [remote rejected] HEAD -> refs/for/master (missing Change-Id in commit message footer)
error: failed to push some refs to 'http://127.0.0.1:8081/test'

解决方法:此时其中的提示信息Hint已经给出了解决意见。此时执行如下命令

、gitdir=$(git rev-parse --git-dir); scp -p -P  scm@127.0.0.1:hooks/commit-msg ${gitdir}/hooks/
、git ci --amend #此时会进入到vim中,直接退出或修改下log信息保存退出
、amend后再次推送到gerrit服务器:git push origin HEAD:refs/for/master

参考网址:

remote: ERROR: missing Change-Id in commit message footer

相关说明:

在上面解决方法第一条命令执行后,出现如下错误:

yingc@yingc:~/gerrit_test/test$ gitdir=$(git rev-parse --git-dir); scp -p -P  scm@127.0.0.1:hooks/commit-msg ${gitdir}/hooks/
The authenticity of host '[127.0.0.1]:29418 ([127.0.0.1]:29418)' can't be established.
RSA key fingerprint is ::::2e::1b:eb:bc::6a::a1:7c:b0:.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '[127.0.0.1]:29418' (RSA) to the list of known hosts.
Permission denied (publickey).

此时执行cat ~/.ssh/id_rsa.pub命令(前提其已经生成,ssh-keygen -t rsa命令),将其中的内容拷贝粘贴到 用户名->Setting->SSH Public Keys中并保存。

保存之后再次执行该命令,发现有如下错误:

yingc@yingc:~/gerrit_test/test$ gitdir=$(git rev-parse --git-dir); scp -p -P  scm@127.0.0.1:hooks/commit-msg ${gitdir}/hooks/
Agent admitted failure to sign using the key.
Permission denied (publickey).

此时执行命令: ssh-add   ~/.ssh/id_rsa  ,参考网址如下:

解决 Agent admitted failure to sign using the key 问题 with ssh

使用git push命令提交到gerrit:

git push 远程地址 本地分支:refs/for/远程分支

gerrit添加新用户

aa

gitlab & gerrit & git & repo & jenkins的更多相关文章

  1. gitlab+gerrit+jenkins持续集成框架

    1.持续集成之gitlab+gerrit+jenkins 1.1. GitLab 1.1.1. 简介 GitLab 是一个使用使用Ruby on Rails搭建的,用于仓库管理系统的开源项目.使用Gi ...

  2. 配置gitlab gerrit jenkins

    配置gerrit 在gerrit创建jenkins用户 把jenkins用户加入Non-Interactive的组中 Projects -> List -> All-Projects Pr ...

  3. [原创]CI持续集成系统环境--Gitlab+Gerrit+Jenkins完整对接

    近年来,由于开源项目.社区的活跃热度大增,进而引来持续集成(CI)系统的诞生,也越发的听到更多的人在说协同开发.敏捷开发.迭代开发.持续集成和单元测试这些拉风的术语.然而,大都是仅仅听到在说而已,国内 ...

  4. CI持续集成系统环境--Gitlab+Gerrit+Jenkins完整对接

    原文地址https://www.cnblogs.com/kevingrace/p/5651447.html 近年来,由于开源项目.社区的活跃热度大增,进而引来持续集成(CI)系统的诞生,也越发的听到更 ...

  5. [原创]CI持续集成系统环境--Gitlab+Gerrit+Jenkins完整对接https://www.cnblogs.com/kevingrace/p/5651447.html

      近年来,由于开源项目.社区的活跃热度大增,进而引来持续集成(CI)系统的诞生,也越发的听到更多的人在说协同开发.敏捷开发.迭代开发.持续集成和单元测试这些拉风的术语.然而,大都是仅仅听到在说而已, ...

  6. Gitlab+Gerrit+Jenkins完整对接

    近年来,由于开源项目.社区的活跃热度大增,进而引来持续集成(CI)系统的诞生,也越发的听到更多的人在说协同开发.敏捷开发.迭代开发.持续集成和单元测试这些拉风的术语.然而,大都是仅仅听到在说而已,国内 ...

  7. git repo gerrit 的关系

    Git作为一个版本控制工具,功能很强大,新建分支,切换分支都很快,小团队用Git就能很好地管理好了,但如果是Android系统如此庞大的工程呢,我们知道全套Android源码是很大很大的,目录结构也很 ...

  8. jenkins+git部署环境,出现Failed to connect to repository : Command "git ls-remote -h http://gitlab.xxxxx.git HEAD" returned status code 128stdout: stderr: fatal: repository 'http://gitlab.xxxxx.git' not fou

    1.部署jenkins+git源码管理的方式,源码管理报128stdout 源码管理出现如下错误: Failed to connect to repository : Command "gi ...

  9. 腾讯工蜂Git关联Jenkins Hooks

    现在国内外Git平台非常多,最近维护的腾讯工蜂免费公网版本git.code.tencent.com,免注册(建议使用微信登录,舒服)即可使用私有仓库.对小型团队体验还不错,如果要关联Jenkins进行 ...

随机推荐

  1. 第一章 用记事本搭建C#程序

    1.新建记事本:using System;class Text{ Console.WriteLine("你好如鹏网"); Console.WriteLine("www.r ...

  2. php 条件查询和多条件查询

    条件循环 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3 ...

  3. iftop

    http://book.51cto.com/art/201409/452431.htm https://wiki.vpsmm.com/iftop/ http://www.cnblogs.com/Alo ...

  4. repo sync下载脚本

    #!/bin/sh echo "======start repo sync======" repo sync while [ $? -ne 0 ]do echo "=== ...

  5. ***PHP类型转换实例:$this->input->get()返回的结果是字符串类型(数字字符串转数字)

    一个GET的REST API,请求有三个参数,且都是数字 用$this->input->get()方法获取后的结果是字符串,需要转换为数字:如果没有获取到数据,则会返回false,需要用e ...

  6. 关于Qt的事件循环以及QEventLoop的简单使用

    1.一般我们的事件循环都是由exec()来开启的,例如下面的例子: 1 QCoreApplicaton::exec() 2 QApplication::exec() 3 QDialog::exec() ...

  7. linux su和sudo命令的区别(转)

    一. 使用 su 命令临时切换用户身份 1.su 的适用条件和威力 su命令就是切换用户的工具,怎么理解呢?比如我们以普通用户beinan登录的,但要添加用户任务,执行useradd ,beinan用 ...

  8. open(/dev/ietctl, O_RDWR) 参数含义(转载)

    这是文件I/O的常用函数,open函数,open函数用来打开一个设备,他返回的是一个整型变量,如果这个值等于-1,说明打开文件出现错误,如果为大于0的值,那么这个值代表的就是文件描述符.一般的写法是i ...

  9. Unrecognized Windows Sockets error: 0: JVM_Bind

    Unrecognized Windows Sockets error: 0: JVM_Bind [转帖]今天很是奇怪,在运行服务器端的时候,经常遇到这个异常: java.net.SocketExcep ...

  10. Android 利用Gson生成或解析json

    目前手机端和服务端数据交流格式一般是json,而谷歌提供了Gson来解析json.下载Gson:https://code.google.com/p/google-gson/ 下载的放在lib并导入,若 ...