gitlab & gerrit & git & repo & jenkins
Omnibus GitLab documentation(中文安装说明)
在自己的服务器上部署 GitLab 社区版->较为全面
GIT & REPO & GERRIT (三)
gitlab+gerrit+jenkins持续集成框架 (安装后无法访问首页)
gitlab / gitlab-ce / ubuntu / precise
GitLab Community Edition and GitLab CI (including NGINX, Postgres, Redis)
Advantages
- Unlimited repositories
- Unlimited private collaborators
- 10GB disk space per project (including Git LFS)
- Unlimited total disk space
- Completely free, no credit card required
- Unlimited CI Runners to do parallel testing
- Alternate SSH port for git+ssh (443)
烤鸭的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服务器端
Git服务器在Ubuntu中的搭建
Gerrit代码审核服务器搭建全过程
Git服务器Gitosis安装设置
Linux - gitHub- Gitosis
烤鸭的gerrit使用总结
android repo中manifest.xml的详解
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的更多相关文章
- gitlab+gerrit+jenkins持续集成框架
1.持续集成之gitlab+gerrit+jenkins 1.1. GitLab 1.1.1. 简介 GitLab 是一个使用使用Ruby on Rails搭建的,用于仓库管理系统的开源项目.使用Gi ...
- 配置gitlab gerrit jenkins
配置gerrit 在gerrit创建jenkins用户 把jenkins用户加入Non-Interactive的组中 Projects -> List -> All-Projects Pr ...
- [原创]CI持续集成系统环境--Gitlab+Gerrit+Jenkins完整对接
近年来,由于开源项目.社区的活跃热度大增,进而引来持续集成(CI)系统的诞生,也越发的听到更多的人在说协同开发.敏捷开发.迭代开发.持续集成和单元测试这些拉风的术语.然而,大都是仅仅听到在说而已,国内 ...
- CI持续集成系统环境--Gitlab+Gerrit+Jenkins完整对接
原文地址https://www.cnblogs.com/kevingrace/p/5651447.html 近年来,由于开源项目.社区的活跃热度大增,进而引来持续集成(CI)系统的诞生,也越发的听到更 ...
- [原创]CI持续集成系统环境--Gitlab+Gerrit+Jenkins完整对接https://www.cnblogs.com/kevingrace/p/5651447.html
近年来,由于开源项目.社区的活跃热度大增,进而引来持续集成(CI)系统的诞生,也越发的听到更多的人在说协同开发.敏捷开发.迭代开发.持续集成和单元测试这些拉风的术语.然而,大都是仅仅听到在说而已, ...
- Gitlab+Gerrit+Jenkins完整对接
近年来,由于开源项目.社区的活跃热度大增,进而引来持续集成(CI)系统的诞生,也越发的听到更多的人在说协同开发.敏捷开发.迭代开发.持续集成和单元测试这些拉风的术语.然而,大都是仅仅听到在说而已,国内 ...
- git repo gerrit 的关系
Git作为一个版本控制工具,功能很强大,新建分支,切换分支都很快,小团队用Git就能很好地管理好了,但如果是Android系统如此庞大的工程呢,我们知道全套Android源码是很大很大的,目录结构也很 ...
- 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 ...
- 腾讯工蜂Git关联Jenkins Hooks
现在国内外Git平台非常多,最近维护的腾讯工蜂免费公网版本git.code.tencent.com,免注册(建议使用微信登录,舒服)即可使用私有仓库.对小型团队体验还不错,如果要关联Jenkins进行 ...
随机推荐
- jsp 格式化变量
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%> <fmt:f ...
- python基础——迭代
python基础——迭代 如果给定一个list或tuple,我们可以通过for循环来遍历这个list或tuple,这种遍历我们称为迭代(Iteration). 在Python中,迭代是通过for .. ...
- C++动态内存管理之shared_ptr、unique_ptr
C++中的动态内存管理是通过new和delete两个操作符来完成的.new操作符,为对象分配内存并调用对象所属类的构造函数,返回一个指向该对象的指针.delete调用时,销毁对象,并释放对象所在的内存 ...
- 一、HTML和CSS基础--网页布局--实践--固定层效果
absolute和fixed的相同点: 第一,完全脱离标准文档流 第二,未设置偏移量时,都定位在父元素的左上角 absolute和fixed的不同点: 第一.当设置偏移量时,偏移参照基准不同 abso ...
- subversion 版本库数据迁移 从一台服务器迁移到另一台新有服务器
[root@NGINX-APACHE-SVN pro]# pwd /var/www/html/svn/pro [root@NGINX-APACHE-SVN pro]# svnadmin dump /v ...
- iptables 开启3306端口
[root@mysqld ~]# mysql -uroot -h 192.168.1.35 -p Enter password: ERROR 1130 (HY000): Host '192.168.1 ...
- undefined reference to 'typeinfo for android::Thread'
原因:工程使用了系统库libstagefright.so,而该库是Android系统用no-rtti方式编译出来的,因此我们的工程也必须要用no-rtti方式编译. 解决方法:在Application ...
- git branch -D 大写的D 删除分支
今天删除本地分支 git branch -d XXX 提示: the branch XXX is not fully merged 原因:XXX分支有没有合并到当前分支的内容 解决方法:使用大写的 ...
- SAE上传web应用(包括使用数据库)教程详解及问题解惑
转自:http://blog.csdn.net/baiyuliang2013/article/details/24725995 SAE上传web应用(包括使用数据库)教程详解及问题解惑: 最近由于工作 ...
- Windows计数器做性能监控(window server 2008服务器)
使用Windows计数器 一.创建数据收集器集 二.创建数据收集器 三.使用数据收集器 1.修改数据收集器的属性 2.手动启用.手动停止数据收集器集 3.计划任务 4.在性能监视器中查看 一.性能监视 ...