gerrit自动同步到bitbucket

由于bitbucket的ssh一直抽风,所以这一篇采用password验证

基础配置可以参考《如何完成github和gerrit的双向同步》

只贴关键的:

#/var/gerrit/review_site/etc/replication.config
[remote "bitbucket"]
  url = https://coder4@bitbucket.org/coder4/${name}.git 
  push = +refs/heads/*:refs/heads/*
  push = +refs/tags/*:refs/tags/*
  timeout = 30
  threads = 3
  remoteNameStyle = dash
  authGroup = BitBucket Replication
  rescheduleDelay = 15

密码存储到另外的文件:

#/var/gerrit/review_site/etc/secure.config

[remote "bitbucket"]
  password = passwordhehe

 

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *