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: 1, 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 29418 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已經給出了解決意見。此時執行如下命令
1、gitdir=$(git rev-parse --git-dir); scp -p -P 29418 scm@127.0.0.1:hooks/commit-msg ${gitdir}/hooks/ 2、git ci --amend #此時會進入到vim中,直接退出或修改下log信息保存退出 3、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 29418 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 24:00:70:46:2e:32:1b:eb:bc:06:6a:66:a1:7c:b0:83. 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 29418 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