git - Gerrit - 如何在 Jenkins 运行后自动发布更改

标签 git jenkins continuous-integration gerrit

我正在使用 Git + Gerrit + Jenkins。 我希望 Gerrit 在 Jenkins 成功运行后自动提交更改。 有什么方法可以跳过审核部分(只需要验证)并在没有用户操作的情况下自动提交吗?

最佳答案

你可以做到这一点。

来自 gerrit 帮助页面。

http://gerrit-documentation.googlecode.com/svn/Documentation/2.5.1/cmd-review.html

ssh -p 29418 review.example.com gerrit review --verified +1 --code-review +2 --submit --project this/project commit

干杯

关于git - Gerrit - 如何在 Jenkins 运行后自动发布更改,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15721653/

相关文章:

git - 如何仅对暂存内容运行 git 预提交检查?

执行 ssh-add 后 Git 不断询问我的密码

git - 除了少数异常(exception),git 的 .gitattributes 可以将所有文件都视为二进制文件吗?

linux - 从 Hudson 运行时 Tomcat 脚本不工作

git - git Push Force 后删除的提交

c# - 使用 MSBuild 在 Jenkins 中构建 .net 应用程序

docker - 通过Docker部署失败

android - 在 Travis CI 上使用 keystore 对 Android 应用程序的发布版本进行签名的最佳实践是什么?

testing - Docker——它为我们团队带来了什么真正的值(value)?

docker - 在每次部署中,构建一个包含应用程序的新 docker 镜像而不是仅仅更新应用程序有什么好处?