Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个 GIT 存储库。当我将 GIT 更改推送到 Gerrit 时,它会触发 jenkins 构建,如果成功,它将代码合并到 GIT 存储库。
但是,Jenkins 总是从 GIT repo 构建源代码。它没有选择推送到 Gerrit 的更改。
我应该在 Gerrit/Jenkins 中更改哪些设置?
在 git 源代码管理部分的 jenkins 配置中,单击高级按钮并将您的 refspec 设置为$GERRIT_REFSPEC将拾取已提交的更改集。
$GERRIT_REFSPEC